This week I upgraded my AdMob plugin and all networks, and noticed that Unity Ads rewarded videos are not calling AdMob events after the video starts.
It calls OnAdLoaded, OnAdOpening, the video plays, but then it will never call OnAdRewarded or OnAdClosed.
AdMob videos calls everything perfectly, OnAdRewarded when it finishes and OnAdClosed when it closes. Just Unity Ads that won’t call them.
Is there any known problem around here?
My setup…
Building for Android (Gradle)
Unity 5.6.3
Google Mobile Ads Plugin 3.7.0
Unity Ads 2.1.1 (from the asset store)
Unity Ads adaptor for Android 2.1.1
macOS 10.12.7
I’ve sent a full project with the problem isolated, complete sources, compiled APK and logs showing the problem, and one week later the Mobile Ads support engineer don’t know what to do with it.
Can anyone on the Unity Ads team take a look at this?
Unity Ads mediation on AdMob is broken.
The AdMob team sent me a new updated project to test. It works perfectly.
If I import the test script and add to my game scene, it also works.
I started removing things and guess what was causing the problem…
Calling Advertisement.Initialize(appId) !!!
AdMob already initializes Unity Ads, calling it twice messes it up.
Please Unity Ads team, fix this!!!
Just check if already initialized and don’t mess up.
Such a simple bug caused me so much trouble.
I think the problem was that I was initializing Unity Ads with Advertisement.Initialize().
The mediation module initializes it again later and nothing works.
When I removed my Advertisement.Initialize(), the problem stopped.
Sorry for necroing an old post, but might help someone in the future. Yours might be a different problem. Still, might worth checking my solution to a similar problem here .