Interstitial test ad not showing

348 views
Skip to first unread message

Lauri

unread,
Jan 24, 2022, 4:52:40 AM1/24/22
to Google Mobile Ads SDK Developers
Hi!

I'm building a game with Unity. I implemented Google AdMob recently, got everything else working perfectly (banner ads and rewarded ads) but interstitial is not showing.
 They do show up when I try it on editor but not when I build the game and download it (doing internal testing)(My phone is white listed - It shows "test ad" when ever an ad pops up)
 I tried making a button, when I press it the ad should show up, but nothing. In editor it shows but not when I build. (Right now I have 1 button set up. Like when the button is pressed the interstitial is requested and after the request is done, it loads the showing function.) Should it be done separately, like 2 buttons or with a coroutine, like after 3 seconds show interstitial ad? Or is there something I have missed entirely?
 I checked the test ad ID, its whats given in the instruction page (ca-app-pub-3940256099942544/1033173712)

Lauri

unread,
Jan 24, 2022, 6:49:43 AM1/24/22
to Google Mobile Ads SDK Developers
I guess I will answer it myself and for everyone else who is having this issue.

Starting a Coroutine is the way to go but not by having a magical 3 seconds wait time.
Instead do a while loop like:
while(!interstitial.IsLoaded()){ yield return new WaitForSeconds(0.2f); } interstitial.Show();

This way the while loop goes on until the ad is loaded and once it is it will show.
Use it with Rewarded ad as well!

Hope this helps anyone who needs this!

Mobile Ads SDK Forum Advisor

unread,
Jan 24, 2022, 10:13:51 AM1/24/22
to purrr...@gmail.com, google-adm...@googlegroups.com

Hi Lauri,

Thank you for reaching out to us and sharing a fix to your concern. If you're unable to test your ads you can use our sample ad unit id or use our Sample App Unity. Let me know if you need anything else.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2VOr86:ref
Reply all
Reply to author
Forward
0 new messages