[Unity] Using AdMod-Plugin with AdManager and Unity Ads mediation

131 views
Skip to first unread message

Ben@theGoodEvil

unread,
Sep 30, 2022, 5:40:21 AM9/30/22
to Google Mobile Ads SDK Developers
Hello,

for a long time now we use the GoogleMovilesAds-Unity plugin in combination with the
AdManager to serve ads to our users and it's working like a charm.
Now we want to add unity ads mediation to the project as well.
We followed this guide to the best of our knowledge.

The problem is that our app doesn't initialize an additional ads adapter when we call
MobileAds.Initialize().

We are currently using the following code as callback to the initialize function:
-----------------
var adapterStatusMap = initStatus.getAdapterStatusMap();
if (adapterStatusMap == null || adapterStatusMap.Count == 0)
{
    Debug.LogWarning("No ads adapters found!");
} else {
    foreach (var pair in adapterStatusMap)
    {
        string adapterName = pair.Key;
        var adapterStatus = pair.Value;
        string description = string.IsNullOrEmpty(adapterStatus.Description)
        ? "No description"
        : adapterStatus.Description;
        Debug.Log($"Stats of adapter {adapterName} =>                                                                     {adapterStatus.InitializationState.ToString()} ({description})");
    }
}

-----------------

The only logs we get through this is:
"2022/09/30 11:22:04.340 30328 30328 Info Unity Stats of adapter com.google.android.gms.ads.MobileAds => Ready (No description)"

Shouldn't we get at least another Log showing us that the adapter for unity ads is ready or not ready?

Please note that the unity ads sdk and the adapter are imported manually into the project.

Kind regards,
Ben

Mobile Ads SDK Forum Advisor

unread,
Sep 30, 2022, 2:39:07 PM9/30/22
to b...@thegoodevil.com, google-adm...@googlegroups.com
Hi Ben,

Thank you for reaching out to us. Let me do the best I can to assist you in this.

With regard to your concern, your app should be fine as long as you've followed importing the unity ads mediation adapter as stated on this guide. I've also added the said mediation adapter on our sample app, and didn't encounter the reported issue on my end. With that, would it be possible for you to provide at least a sample app where the issue is reproducible? This will greatly help us in our investigation. Kindly send it to us via Reply privately to author option.
 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002evGazQAE&entry.80707362=00151937

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.



Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2evGaz:ref
Reply all
Reply to author
Forward
0 new messages