AdMob sample AD works in Unity, but doesn't work on actual android device

My game implements rewarded ad. I’m using sample ad unit ID from admob. It works perfectly in Unity. But when I compliling aab file, upload it to google play console and enable internal testing - it just doesn’t work. Ad doesn’t show.

Please, help me to figure out, how to fix this issue.

I had the same issue. Still do actually. You can try asking the dev support team here: https://groups.google.com/g/google-admob-ads-sdk. They basically told me “Hurr, ads are working for us using your IDs on our application” not helpful at all. Seriously about to just give up and go to a in-app purchase model. I’ve literally spent the past two weeks trying to figure out admob. It’s so bad.

In fact I’ve not even tried my own IDs yet. What I’m using is AdMob sample IDs, that should work everywhere. And they work in editor like no problem. But when I install the app from google play to my device it doesn’t work.

Thank you for the link to admob support. Will try my luck there too.

I’ve tested this issue further. And it looks like callback of MobileAds.Initialize(Callback) is never invoked on actual android device, while working as a charm in Unity editor.

Here is my implementation:

void Start()
{
        MobileAds.Initialize(AdsInitialized);
}

private void AdsInitialized(InitializationStatus obj)
{
        //Code to load an actual ad here. But this method is is never invoked on android device
}

Any ideas why initialization is never completed?

Same issue using test device and actual ad and app ids

Same here! Just updated to Google Mobile Ads Unity plugin version 8.5.2 → Works perfectly fine in Editor. As soon as built to Android, the initialization callback gets never called. Ads also won’t show up. I’m using sample ad unit IDs from admob.

Have you set up an Ad Sense account?

Thanks a lot for your answer, @anycolourulike . Yes, I did set up an AdSense account as well. However I’m not sure about the connection between AdMob and AdSense. In my opinion, these should work independently from each other.

Thanks again for your support. :slight_smile:

having the same issue now, very frustrating, any ideas?

yooooo i fixed it, you need to set

MobileAds.RaiseAdEventsOnUnityMainThread = true;

before initializing the SDK.

found the google unity sample project was doing this too so copied it and it works!

Here is 100% working solution.

AdMob Ads In Unity 2024 | Banner, Interstitial & Rewarded Ads | Create Google AdMob Account

:warning:THIS IS THE REAL FIX :warning: Thank you!

I have the same problem, I did everything step by step like in this video https://www.youtube.com/watch?v=PUc5elZk_5I&lc=Ugxv0YzJZAeFKR4uYPd4AaABAg.ACxWrhYRhiyAK6ySpsVn8G and everything works great in Unity. But nothing happens on Android. I use Unity 6000.1.9F1. I thought it was hard to make a game but I was wrong.