AdMob interstitial ads load but do not show (test or production)

48 views
Skip to first unread message

Zack Black

unread,
Jan 31, 2020, 3:33:29 PM1/31/20
to Google Mobile Ads SDK Developers
Using:

• Unity 2019.2
• Google Mobile Ads Unity Plugin v4.2.1
• Google Play services 18.3.0
• Google Version Handler / Jar Resolver 1.2.135

I have all function implemented:

MobileAds.Initialize( initStatus => { } );
RequestInterstitial();

...

if( instance.interstitial.IsLoaded() )
     instance.interstitial.Show();

...

public void HandleOnAdFailedToLoadobject sender, AdFailedToLoadEventArgs args )
    {
        Debug.LogError"Interstitial failed to load: " + args.Message );
     }

When I try to show the ad, sometimes it shows and sometimes nothing happens, even tho IsLoaded() returns true and no error is caught in HandleOnAdFailedToLoad() - it simply fails silently and seemingly randomly. Please help and thanks in advance!

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 3, 2020, 12:27:08 AM2/3/20
to zsculp...@gmail.com, google-adm...@googlegroups.com

Hi Zack,

 

Thank you for reaching out to us.

 

Could you kindly provide the details below (via Reply privately to author) so that I can investigate the issue?

 

Regards,

Ziv Yves Sanchez

Mobile Ads SDK Team



ref:_00D1U1174p._5001UUztUc:ref

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 4, 2020, 12:16:33 AM2/4/20
to zsculp...@gmail.com, google-adm...@googlegroups.com

Hi Zack,

 

Thank you for providing the requested details in private. These have proven to be very helpful in the investigation.

 

I was able to build and run the project in question, although I could not replicate the same issue after at least 10 iterations of making the ad appear and shutting the app down. Kindly see screenshots for some of the ads I received. I also investigated the code of your ad manager script, and it seems that everything is in order as well. That being said, I suspect that this may be a race condition stemming from the initialization of the AdMob SDK. You may want to create an "initialized" flag for the SDK (which would then be triggered by the callback from MobileAds.Initialize()), and only start requesting ads after the SDK is confirmed to have finished initialization (instead of immediately requesting from Start()).

ad_interstitial_4_png.html
ad_interstitial_2_png.html
ad_interstitial_1_png.html
ad_interstitial_3_png.html

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 4, 2020, 8:01:21 PM2/4/20
to zsculp...@gmail.com, google-adm...@googlegroups.com

Hi Zack,

 

I understand your concern, and thank you for the suggestion. The AdMob SDK Unity SDK is in fact a bit more complex than the ones for Android or iOS, and thus requires a bit more trial-and-error than the other two. That said, don't hesitate to reach out to us again if you have any more technical concerns on the AdMob SDK. We will be happy to assist you.

Reply all
Reply to author
Forward
0 new messages