Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS AdMob ads not showing up unless on Test Device

I have followed the tutorial provided by Google here: https://developers.google.com/mobile-ads-sdk/docs/admob/ios/quick-start in order to setup admob banner ads.

My code is exactly how it is shown in the guide from the link above, so when I run the app on my test device or simulator a 'Smart Banner' 'Test Ad' appears..however, the second I remove the line of code below no banner appears at all..

 request.testDevices = @[ @"70b9ee4e66c8e6fa26cb84def25706d9" ];

Also, I've loaded the app on another device and still there is no ad banner appearing, which makes me wonder when I submit the app to the App Store it only makes sense that all my users won't be seeing ads on their devices. Why is this happening? I've been scratching my head on this one! I don't want to submit it for review until I am certain everything is working correctly and I know that ads will appear not only on test devices but when the app goes LIVE as well. Thanks in advance! :)

like image 348
Mike Simz Avatar asked Nov 18 '14 15:11

Mike Simz


People also ask

Why is my AdMob app not showing ads?

Ads won't show if you haven't integrated the Google Mobile Ads SDK correctly. Is your ad implementation code working properly? Test your implementation code to check that ads can show. You can also use ad inspector to test your app's ad serving.

How long does it take for AdMob to show ads?

When apps are newly registered with AdMob, it typically takes up to an hour and a few ad requests to allow inventory to build. Because of this, you may not see live impressions immediately. Note: In some cases, it may take longer than an hour. Please wait 24 hours before seeking additional help.

Can Google AdMob work on Iphone?

In future, if you already have an app on the App Store, you can let AdMob retrieve your app information. Set the app name to GoogleAdMobDemo and choose iOS for the platform option. Click Add to proceed to the next step. AdMob will then generate an App ID for the app.

Why are ads not working on my phone?

MOBILE ADS TROUBLESHOOTINGEnsure you don't have too many apps running in the background. Check to see if there are any privacy settings/settings on your device that restrict you from viewing ads. Check that your Internet provider/region does not restrict ads, or your modem/provider doesn't throttle ads or ad content.


1 Answers

-(void)adViewDidReceiveAd:(GADBannerView *)bannerView;
-(void)adView:(GADBannerView *)bannerView didFailToReceiveAdWithError:(GADRequestError *)error;

There can be number of reasons for not showing the Live ads.

  1. Check your google admob account for the payment info. If not filled, fill it.
  2. Check if your device is registered as test device, else you may get suspension from the google for 30 days or so.
  3. You can check the delegate methods and print the logs:

In my case, I was getting error as { 'error': 'Request Error: No ad to show.', 'adType':'banner' }

But it showed at the client side, after I delivered to the client. So, I think that this issue was due to the reason that google had no advertisements in my region.

like image 151
Dheeraj Gupta Avatar answered Sep 19 '22 20:09

Dheeraj Gupta