Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. botBanner = [[GADBannerView alloc] initWithAdSize:GADAdSizeFullWidthPortraitWithHeight(50)];
  2. botBanner.adUnitID = kGADKey;
  3. botBanner.delegate = self;
  4. botBanner.rootViewController = self;
  5. [_adBannerBotView addSubview:botBanner];
  6.  
  7. adRequest = [GADRequest request];
  8.  
  9. // Make the request for a test ad. Put in an identifier for
  10. // the simulator as well as any devices you want to receive test ads.
  11. adRequest.testDevices = [NSArray arrayWithObjects:@"<I add my device id>", GAD_SIMULATOR_ID, nil];
  12. [botBanner loadRequest:adRequest];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement