Hi,
I am struggling with AdMob mediation for UnityAds in Unity and I'm trying to verify my correct (or incorrect) implementation of the mediation.
I am testing on my tablet a build which will be released very soon in Beta but I was never able to see a UnityAds ad to test/verify that the mediation is actually taking place, nor any logs that can confirm that mediation is implemented correctly. But of course I want to be sure before releasing in Beta and then in Production.
My question is: is it possible that the mediation is "prevented" in some cases? May be my device is seen as a test device? This is my best guest, just because I see this log:
"04-25 14:15:06.910: I/Ads(19896): Use AdRequest.Builder.addTestDevice("[...]") to get test ads on this device."
Or may be there is anything else which I am missing?
Additional info / what I have done:
- Mediation is correctly configured in AdMob Dashboard, I correctly see "2 ad sources" and one is UnityAds (with auto eCPM correctly extracted), I also disabled "auto eCPM" for both and in order to force the network to choose UnityAds I manually set its eCPM to 20$ on all country and, on the other hand, the AdMob eCPM to 0.01$ only on another country (so that here it can not be chosen, with the option "Disable Ad requests to all other countries"). The Ad unit ID is: ca-app-pub-6020355779254219/
4436300287 , which is a rewarded video with no cap limits and it is currently not implemented in production as currently we have only interstitials with AdMob (and so it's useful for this kind of testing, I can modify the settings in the dashboard without having impacts on production ads).
- AdMob Unity plugin latest version 3.4.0, which I updated in this release from version 3.3.0. The plugin is correctly integrated and initialized as soon as there is internet connection, which is right at the start of the game, in my tests, I see the logs for the ads ready and I see with no problems AdMob ads.
- UnityAds (latest version, 2.1.0 plugin from Unity Asset Store) is correctly configured and integrated in my game, as a matter of fact in this very release I am switching (or trying to switch) from "code mediation" (with means direct calls to UnityAds and AdMob with a configured hierarchy to check for available ads) to AdMob mediation to increase the efficiency of this process. So the UnityAds plugin is already integrated in my game, I already removed all related initialization and all calls for UnityAds in the code and now the only initialization and the only calls are the ones for AdMob. A doubt here: is it necessary to keep the initialization of UnityAds in order for the mediation to work? I found no evidence of this anywhere on the documentation, but it's better to ask here.
- UnityAds adapter (last version, unity-2.1.0.0.aar) is in "Assets\Plugins\Android\GoogleMobileAdsPlugin\libs", never had any kind of error on logs that can make me think that this integration has any issue but also no confirmation that the mediation is actually taking place. The readme on the adapter page refers to Android (for example it refers to a build.gradle which is not present on Unity, no information about any change to AndroidManifest.xml) and there are no instruction on what to do in Unity, I just put it in that directory and I have not done anything else.
- Unity version is 5.5.1f1.
AdMob Integration was very easy but this inability to test properly the mediation is costing me a lot of hours, any help on this will be very appreciated.