Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Download the Google Admob Library <a href="https://developers.google.com/mobile-ads-sdk/download#downloadios" rel="nofollow">https://developers.google.com/mobile-ads-sdk/download#downloadios</a></p> <p>Except the Add-ons and readme.txt file drag the all file to your project </p> <p>Build Settings -> Search path -> Library Search Path and Header Search Path add the Google Admob File Link as <strong>RECURSIVE</strong> $(SRCROOT)/Folder_Name Folder_Name Specifies where the Library Placed</p> <p>Dont Use self.view.frame.size.height for iPhone and iPad this differs the banner height...</p> <p>Use [[UIScreen mainScreen] bounds].size.height this will automatically identify the iPhone and iPad display Screen Bounds </p> <p>Adjust the Height place the banner in Correct Position</p> <p>adViewDidReceiveAd its a delegate method so in .h file u must call the delegate method </p> <pre><code>&lt;GADBannerViewDelegate&gt; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(0.0, [[UIScreen mainScreen] bounds].size.height - 150, GAD_SIZE_728x90.width + 50, GAD_SIZE_728x90.height)]; } else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(0.0, [[UIScreen mainScreen] bounds].size.height - 113, GAD_SIZE_320x50.width, GAD_SIZE_320x50.height)]; } // Specify the ad unit ID. bannerView_.adUnitID = @"****************"; [bannerView_ setDelegate:self]; bannerView_.rootViewController = self; [bannerView_ loadRequest:[GADRequest request]]; } - (void)adViewDidReceiveAd:(GADBannerView *)view { [self.view addSubview:bannerView_]; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload