googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.37k stars 1.08k forks source link

OnAdClosed and OnAdRewarded are sometimes called twice in a row. #396

Closed icyh4mmer closed 7 years ago

icyh4mmer commented 7 years ago

Sometimes it happens that OnAdClosed and OnAdRewarded events are called twice in a row. Is this a plugin bug or am I missing something?

rampara commented 7 years ago

The ad events should only be invoked once for an single ad. Is this issue consistently reproducible for you? Are you deploying to Android or iOS? Which version of the GMA SDK are you using?

icyh4mmer commented 7 years ago

We haven't find a way to reproduce ti yet, it happens mabe once or twice every 100 video watches. We are only deploying to android atm. Regarding the version, is there any way I could check that up? I'd guess that I've updated this plugin around 2 months ago and I didn't see any fix regarding that in the latest commits.

rampara commented 7 years ago

The version of the plugin can be found in the AdRequest class, located at Assets/GoogleMobileAds/Api of your Unity project. The version of the Android GMA Ads SDK can be determined by looking in the Assets/Plugins/Android directory of your Unity project to see which version of Play Services AARs are being used. iOS builds should be pulling in the latest version of the iOS GMA SDK via Cocoapods when generating the Xcode project from Unity.

Also, are you using mediation for rewarded video as well or are all ads strictly from AdMob?

icyh4mmer commented 7 years ago

Version in AdRequest class: Version = "3.2.0" AAR version: 10.0.1

I am using mediation for rewarded video; Unity, Vungle, Chartboost, Applovin and default AdMob.

rampara commented 7 years ago

@icyh4mmer Narrowing down which ad network returned the ad that is causing the issue for you would help figure out the cause of the issue.

icyh4mmer commented 7 years ago

If I manage to reproduce the issue on specific provider I'll let you know.

rampara commented 7 years ago

@icyh4mmer I'm having trouble reproducing the issue on my end so I'll wait till you get back to me. Also, if the network isn't AdMob, can you also share the adapter and SDK version for the third party ad network.

rampara commented 7 years ago

Closing this issue due to non-response. If this issue persists for you, please re-open it.