Problems AdMob mediation integration on Unity

579 views
Skip to first unread message

Osman ŞENOL

unread,
Apr 12, 2017, 7:46:30 AM4/12/17
to Google Mobile Ads SDK Developers
Hi everyone i'm using AdMob mediation on my Unity Game and also i 'm using C#. 

Here is my questions ;

1 - How can i see my integration status for every ad network? I checked logs but i couldn't find much information.
2 - How can i know which ad network provides current loaded ad(Interstitial,Rewarded and Banner)? I checked sdk source code but i couldn't find the answer.

Thanks.


Joshua Lagonera (Mobile Ads SDK Team)

unread,
Apr 12, 2017, 9:36:55 AM4/12/17
to Google Mobile Ads SDK Developers
Hi there,

To directly answer your concerns:
  1. It would depend. For iOS, there will be no logs displayed. However, for Android, a warning log with the "Ads" tag preceded by "Server parameters" would be displayed showing the necessary information you provided on the AdMob Dashboard when mediating. For example, if you mediated with UnityAds, it will show the gameID, as well as zoneID of the placement you mediated with, as shown below:
W/Ads: Server parameters: {"gameId":"1234567","gwhirl_share_location":"1","zoneId":"myZoneID"} 
W/Ads: Server parameters: {"gwhirl_share_location":"1","pubid":"myPubID"} 
W/Ads: Server parameters: {"gwhirl_share_location":"1","pubid":"myPubID"}
  1. You can look at the logs and check which Ad Network returned a successful response. The log tag is usually the name of the Ad Network you mediated with. For example, if you mediated with UnityAds, you can see the following logs:
    • For Android:
          I/UnityAds: com.unity3d.ads.api.Sdk.logInfo() (line:70) :: Unity Ads server returned game advertisement for AB Group 0
          I/Ads: Ad finished loading.
    • For iOS:
          RewardedVideoExample[31529:5770737] I/UnityAds: +[UADSApiSdk WebViewExposed_logInfo:callback:] (line:59) :: Unity Ads server returned game advertisement for AB Group 0
          RewardedVideoExample[31529:5770737] HandleRewardBasedVideoRewarded
Hope this clears up some confusion on your end.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Osman ŞENOL

unread,
Apr 12, 2017, 10:18:07 AM4/12/17
to Google Mobile Ads SDK Developers
Hi,

Thank you for your response. 

Actually i need to get this ad network information with code. Because i want to send this information to some other tools like analytics. Is there any way to do it?

Thanks.

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Apr 12, 2017, 10:56:52 AM4/12/17
to Google Mobile Ads SDK Developers
Hi there,

Currently, there is no way for you to check this information programmatically using the Unity Plugin. However, if you wish to verify the analytics of which ad network your ads get served from, you may contact the Product Support Team for insights.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Abyte Entertainment

unread,
Apr 25, 2017, 8:55:01 AM4/25/17
to Google Mobile Ads SDK Developers
Hi Joshua,
thank you for this info, I am struggling with AdMob mediation with UnityAds in Unity and this is the first detailed info I have found about checking logs for verifying a correct implementation of the mediation.

I am testing on my tablet the 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?

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.

Additional info:
- 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).
- 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, in the code I already removed all related initialization and all calls and now the only initialization and the only calls are the one for AdMob.
- 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.
- Unity version is 5.5.1f1.

Abyte Entertainment

unread,
Apr 25, 2017, 9:12:46 AM4/25/17
to Google Mobile Ads SDK Developers
Another additional info:
- AdMob Unity plugin latest version 3.4.0, which I updated in this release from version 3.3.0.

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Apr 25, 2017, 10:29:22 PM4/25/17
to Google Mobile Ads SDK Developers
Hello there,

Seeing as you are raising a new issue, kindly re-open a new thread describing your issue and we will continue our discussion from there.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Abyte Entertainment

unread,
Apr 26, 2017, 5:41:49 AM4/26/17
to Google Mobile Ads SDK Developers
Hi Joshua,
I am sorry, I thought it was better writing in an existing thread with similar requests, I'll open a new one right now.

Thanks!
Reply all
Reply to author
Forward
0 new messages