Mediation with Multiple ID, how to set up ?

220 views
Skip to first unread message

Clement Vitroly

unread,
Mar 4, 2020, 11:03:43 AM3/4/20
to Google Mobile Ads SDK Developers
Hey there,

I have an issue using multiple Id for my second network (unity ads) using mediation Group.
I need two ID to link my app for a COPPA compliant version and for other users.

To make it more clear my set up is like this for a mediation group :
Mediation Group 1
Admob Ad Unit 1 is link to Unity ads ID 1
Mediation Group 2
Admob Ad Unit 2 (COPPA) is link to Unity ads ID 2 (COPPA)

I Initialize Admob Using only Admob AdUnit 1 or AdUnit 2. Then I expect the Mediation group then the Unity ads ID corresponding to be initialize.
The problem now is when I launch my game I receive this message from log :

"UnityMediationAdapter: Multiple 'gameId' entries found: [UnityAdsID1, UnityAdsID2]. Using 'UnityAdsID1' to initialize the UnityAds SDK"

And whatever if the Admob AdUnit 1 or 2 is initialize, it always return the first Unity ads ID.

I tried to disable every network initialization from my code an I even try to disable any internet connection and the result is that I still get the warning :

"UnityMediationAdapter: Multiple 'gameId' entries found: [UnityAdsID1, UnityAdsID2]. Using 'UnityAdsID1' to initialize the UnityAds SDK"

It's very weird to still have this warning while nothing is initialized and there is no internet connection.

And even with chartboost and adColony, the mediation adapter always detect 2 Ids and choose always the first one for initialize the networks...

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 4, 2020, 4:29:21 PM3/4/20
to neufoct...@gmail.com, google-adm...@googlegroups.com
Hello Clement,

Thanks for reaching out to us. This forum deals with technical Mobile Ads SDK related implementation issues only. You can go through this article  for more information and please reachout to AdMob Product Support Team through the Help Forum  for all account related Ad unit Id setup issues. Also, you can also go through this post and see if you can find any related information.

Regards,
Deepika Uragayala
Mobile Ads SDK Team


 

ref:_00D1U1174p._5001UXU4ca:ref

Clement Vitroly

unread,
Mar 4, 2020, 4:38:06 PM3/4/20
to Google Mobile Ads SDK Developers
Thank you for your answer.

I don't understand how the first link is related to my problem. I also already post a topic without any answer on the adMob product forum, and the last link is my oen topic on Unity too without answer too :)
I thought the problem was related to adMob sdk as I followed exactly the mediation tutorial from this link
I can't integrate mediation with that problem and I'm sure many people face this issue specially for kids game as we have to manage different ID for players to be COPPA and non COPPA compliant.
Thanks !

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 4, 2020, 8:06:52 PM3/4/20
to neufoct...@gmail.com, google-adm...@googlegroups.com

Hi Clement,

 

Just to provide context here: The various AdMob mediation adapters, if applicable, will always choose the first gameId that they would retrieve from the AdMob servers. This is intended behavior, and this was implemented in order to prevent other issues related to mismatched ad unit and game IDs and mis-initialization of the mediation adapters.

 

That being said, I would suggest that you use Targeting parameters to fulfill the COPPA requirements for your app, instead of using 2 ad unit IDs to satisfy the same (which might introduce a few issues down the road). With this method, you will be to afford using only one ad unit ID, while simply switching COPPA compliance for your ad requests on or off, depending on user consent.

 

Let me know if you have any questions on this.

 

Regards,

Ziv Yves Sanchez

Clement Vitroly

unread,
Mar 5, 2020, 3:18:11 AM3/5/20
to Google Mobile Ads SDK Developers
Hi,

Thank you for your answer.
The setup mentionned above would be perfect but actually I already post a thread here to know if the Targeting parameters are forwarded to any adNetwork. Here is my thread, the answer was any targeting setup at adMob initialization are not forwarded to the other SDK. But may be now this is the case. Can you confirm me that if I set "setTagForChildDirectedTreatment" and "MAX_AD_CONTENT_RATING_G" in my code it will be forwarded to any other sdk ?

Le mercredi 4 mars 2020 17:03:43 UTC+1, Clement Vitroly a écrit :

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 5, 2020, 4:40:40 AM3/5/20
to neufoct...@gmail.com, google-adm...@googlegroups.com

Hi Clement,

 

Thank you for providing additional context on your concern.

 

I'll be discussing this with the rest of the team to gather their insights on this. Rest assured that we'll get back to you shortly on this.

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 9, 2020, 6:59:28 PM3/9/20
to neufoct...@gmail.com, google-adm...@googlegroups.com
Hi Clement,

Thank you for reaching out to us. I understand the inconvenience for setting up multiple mediation groups to accommodate mixed audience when other ad networks don't support targeting setting on per request level. One workaround I could suggest is skipping initializing GoogleMobileAdsSDK upon launch, that would stop the initialize() in http://https://github.com/googleads/googleads-mobile-android-mediation/blob/master/ThirdPartyAdapters/unity/unity/src/main/java/com/google/ads/mediation/unity/UnityMediationAdapter.java from calling. Then in the load methods GMA would initialize third party SDK when it finds it uninitialized, where you could specify with the gameID that should be used based on the AdMob ad unit ID.

That being said, it is not an advised practice, because skipping initializing GMASDK will stop other networks from being initialized also if there are any. In addition, this is more on the other parties side that they don't offer mixed audience support, and maybe one day that will change which I hope they do.

Best,
Jill
Google Mobile Ads SDK Team

ref:_00D1U1174p._5001UXU4ca:ref

Eswat

unread,
Mar 10, 2020, 3:32:27 AM3/10/20
to Google Mobile Ads SDK Developers
Thank you very much for your answer.
Yes That's a long time I'm stuck at trying to set up a mediation for a mixed audience. That's why I decided to create my own mediation system.
I have an other question, it's a bit out of topic though. Is it a bad practice to load several ads without showing them in one player's session ? ( for example I load 4 interstitials and 4 rewarded video in case of my needs)
Thanks

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 11, 2020, 8:07:56 PM3/11/20
to neufoct...@gmail.com, google-adm...@googlegroups.com
Hi Clement,

Also in our latest iOS release 7.56.0 there's a disableMediationInitialization method you could use instead of the workaround I suggested last time.

For you question regarding loading multiple ads, I wouldn't suggest loading more than 2 full screen ads for one show (if that's what you meant by player's session). You can only show 1 full screen ad at a time, and they are more intrusive than native or banner ad, so hopefully you are not showing full screen ads faster than you can load them. In addition, if your show rate is low, that might hurt you CPM therefore revenue.

Hope it helps,
Reply all
Reply to author
Forward
0 new messages