Admob Mediation Unity Adapter

551 views
Skip to first unread message

Hayrullah Mutlu

unread,
Jun 13, 2022, 5:58:47 AM6/13/22
to Google Mobile Ads SDK Developers
Hi,

We are using Admob mediation.

Added Unity and Meta as network.
We are encountering the problem I mentioned below in Unity ads.
In fact, we encounter this problem in almost every 2-3 Unity ads.

'' mAd.OnUserEarnedReward += Ad_OnAdRewarded;
        mAd.OnAdClosed += Ad_OnAdClosed;
white_check_markeyesraised_hands

onAdClosed is called before OnUserEarnedReward even though the reward time has finished ''


We are waiting your suggestions for solutions in this regard.
I am attaching the ticket of a different person who has the same problem below.

https://github.com/googleads/googleads-mobile-unity/issues/1689

Thank you.



Screenshot_20220613-113135_Merge Shell.jpg

Nevena Čumić

unread,
Jun 13, 2022, 7:51:15 AM6/13/22
to Google Mobile Ads SDK Developers
Hi,
We had the same issue with Unity ads and we fixed it by delaying code that was executing in OnClose method for 1 frame (for all mediation providers). With this workaround code in OnUserEarnedReward callback is always called before code in OnClose callback. We didn't have any issues due to this change.

Mobile Ads SDK Forum Advisor

unread,
Jun 13, 2022, 10:25:18 AM6/13/22
to hayrull...@silevel.com, google-adm...@googlegroups.com

Hi Hayrullah,

Thank you for reaching out to us.

For us to further investigate this, we would like to request the following details below privately. You may follow the guide below on where you can send it privately.

  • Sample app project
  • Steps to replicate
  • Device name and versions affected
  • SDK version
  • Other mediation adapter used

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

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=5004Q00002bvjP5QAI&entry.80707362=00110739
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
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2bvjP5:ref

Mobile Ads SDK Forum Advisor

unread,
Jun 13, 2022, 10:26:06 AM6/13/22
to google-adm...@googlegroups.com
Hi Nevena,

Thank you for sharing your work around on this. If you have any other concerns related to the implementation of Google Mobile Ads SDK, kindly provide us the details. We'll be happy to assist you.

Hayrullah Mutlu

unread,
Jun 14, 2022, 5:49:28 AM6/14/22
to Google Mobile Ads SDK Developers
Hi Nevena, thank you for your answer.

In addition, we have another problem.

We are using Admob mediation. We only added unity and facebook as network. Although the ad button is sometimes active in our game, it cannot show ads when we press it. Then, when we click the button a few more times, it becomes active and shows ads.

It's a problem that can cause a lot of trouble in terms of user experience. Could you share with us what could be causing this issue?

Mobile Ads SDK Forum Advisor

unread,
Jun 14, 2022, 10:27:04 AM6/14/22
to hayrull...@silevel.com, google-adm...@googlegroups.com

Hi Hayrullah,

Thank you for your response.

Since you mentioned that your unable to load ads with unity and facebook network, I would suggest to try the Ad inspector it is an in-app overlay that enables authorized devices to perform real-time analysis of test ad requests directly within a mobile app. It is included with the Google Mobile Ads SDK version 20.0.0 and higher, and can be enabled with no coding required.

Reply all
Reply to author
Forward
0 new messages