Note that there are some explanatory texts on larger screens.

plurals
  1. POImplementations on AdMob (iOS)
    text
    copied!<p>How going, dudes? So today it's a really ridiculous question, but i just can't get it to work the way i want. I'm implementing the AdMob stuff but i want to get some additional information.</p> <p>They gave the instructions on the <a href="http://code.google.com/mobile/ads/docs/ios/intermediate.html" rel="nofollow">GoogleCodes/AdMob</a> but i can't make it give me the logs i want.</p> <p>This is on the .h</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import "GADBannerView.h" #import "GADBannerViewDelegate.h" @interface AppForAllTestsViewController : UIViewController&lt;GADBannerViewDelegate&gt; </code></pre> <p>This is on the .m</p> <pre><code>-(void)adViewDidReceiveAd:(GADBannerView *)bannerView{ NSLog(@"RECEIVED"); [UIView beginAnimations:@"BannerSlide" context:nil]; bannerView.frame = CGRectMake(0.0, self.view.frame.size.height - bannerView.frame.size.height, bannerView.frame.size.width, bannerView.frame.size.height); [UIView commitAnimations]; } -(void)adView:(GADBannerView *)view didFailToReceiveAdWithError:(GADRequestError *)error{ NSLog(@"FAILURE RECEIVING AD: %@", [error localizedDescription]); } -(void)adMobProcess{ adMobBanner = [[GADBannerView alloc]initWithFrame:CGRectMake(0.0, self.view.frame.size.height-GAD_SIZE_320x50.height, GAD_SIZE_320x50.width, GAD_SIZE_320x50.height)]; adMobBanner.adUnitID = my_id; adMobBanner.rootViewController = self; [self.view addSubview:adMobBanner]; [adMobBanner loadRequest:[GADRequest request]]; } -(void)awakeFromNib{ NSLog(@"GOOD MORNING"); [adMobBanner setDelegate:self]; } - (void)viewDidLoad{ [self adMobProcess]; [super viewDidLoad]; } </code></pre> <p>You can see that i'm setting the delegate to "self" but nothing happens, none of the changes, can any one, please, help me? (:</p>
 

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