Ads not showing in Simulator and iPhone

67 views
Skip to first unread message

ral1970

unread,
Mar 17, 2014, 11:21:30 AM3/17/14
to google-adm...@googlegroups.com
Hi, i'm implementing the GADbanner but i'm able to get any test banner. My code for one of the views is:


// Create a view of the standard size at the top of the screen.

    // Available AdSize constants are explained in GADAdSize.h.

    self.bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner origin:CGPointMake(self.view.bounds.size.height-kGADAdSizeBanner.size.height, self.view.bounds.size.width-kGADAdSizeBanner.size.width)];

    

    NSLog(@"meu banner %@",self.bannerView);

    

    // Specify the ad unit ID.

    self.bannerView.adUnitID= MY_BANNER_UNIT_ID;

    

    

    // Let the runtime know which UIViewController to restore after taking

    // the user wherever the ad goes and add it to the view hierarchy.

    self.bannerView.rootViewController = self;

    [self.view addSubview:self.bannerView];

    

    

    // Make the request for a test ad. Put in an identifier for

    // the simulator as well as any devices you want to receive test ads.

    

    GADRequest *myRequest = [GADRequest request];

    

    // Make the request for a test ad. Put in an identifier for

    // the simulator as well as any devices you want to receive test ads.

    myRequest.testDevices = [NSArray arrayWithObjects:

                             GAD_SIMULATOR_ID,

                             @"e76321d9683a7ca3d5a8aad71b9f386f",

                             nil];

    

    

    // Initiate a generic request to load it with an ad.

    [self.bannerView loadRequest:myRequest];



Is it anything wrong with it? Help would be appreciated!

Eric Leichtenschlag

unread,
Mar 17, 2014, 10:59:41 PM3/17/14
to google-adm...@googlegroups.com
Hello,

This code looks good. What kind of error are you getting in the logs? Just a no-fill? What is the language setting on your device?

Thanks,
Eric

ral1970

unread,
Mar 18, 2014, 6:20:58 AM3/18/14
to google-adm...@googlegroups.com
Hi Eric,

Thanks for your help, anyway, just from nothing i started to receive the adds. I had no error in the logs and the language is en.

But it's solve now :D

Cheers.

Fabrizzio Dagnino

unread,
Mar 17, 2014, 11:30:12 AM3/17/14
to google-adm...@googlegroups.com
The simulator don't support ads, try telephone.
Regards


--

---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Saludos!

Fabrizzio Dagnino V.
 Juntos por el medio ambiente, prefiera los medios digitales al papel impreso.

Reply all
Reply to author
Forward
0 new messages