Lag 3 seconds after invoke show interstitial on Android

127 views
Skip to first unread message

Igor G

unread,
Mar 4, 2022, 5:56:49 AM3/4/22
to Google Mobile Ads SDK Developers
  • Unity version: 2020.3.20f1
  • Google Mobile Ads Unity plugin version: 6.1.2
  • Platform: Android (iOS, Android, Unity Editor)
  • Platform OS version: 11(eg iOS 10, Android 9)
  • Any specific devices issue occurs on: Samsung, Xioami
  • Mediation ad networks used, and their versions:
    mopub:5.18.0.0
    applovin:10.3.2.0
    chartboost:8.2.1.0
    facebook:6.7.0.0
    tapjoy:12.8.1.0
    unity-ads:3.7.5
    vungle:6.9.1.1
    inmobi:9.2.0.0
    fyber:7.8.3.0
    ironsource:7.1.8.0
[REQUIRED] Step 2: Describe the problem

After we click to show the interstitial -we have a lag on the main thread for 3 seconds. After this - the interstitial is shown
What can be the reason?


Relevant Code:

We use usual code to requests and load ads

var request = new GoogleMobileAds.Api.AdRequest.Builder().Build(); _interstitialAd.LoadAd(request);
Screenshot 2022-03-03 at 7.59.22 PM.png

Mobile Ads SDK Forum Advisor

unread,
Mar 4, 2022, 9:43:42 AM3/4/22
to ig...@fm-games.com, google-adm...@googlegroups.com
Hi Igor,

Thank you for reaching out to us.

With regard to your concern, could you kindly confirm the following?
  • Are you requesting an interstitial ad when needed or are you preloading it?
  • Is the issue occurs on a specific ad or occurs even using our demo ad units?
Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2XlOHK:ref

Igor G

unread,
Mar 4, 2022, 2:04:25 PM3/4/22
to Google Mobile Ads SDK Developers

Hi Teejay
This issue is occurring on all mediations 
demo ad units don't work for our application, don't know why
Could you please check in the source code why and under what circumstances this log appears?

Igor G

unread,
May 4, 2022, 7:07:58 AM5/4/22
to Google Mobile Ads SDK Developers
ping

Mobile Ads SDK Forum Advisor

unread,
May 31, 2022, 1:49:39 AM5/31/22
to ig...@fm-games.com, google-adm...@googlegroups.com
Hello Igor,


As mentioned in the previous email, it doesn't look like a Unity plugin issue, but there are tasks that are blocking the thread to show the interstitial ad, so it gets timeout eventually.

From the screenshot you provided previously, you are calling `interstitialAd.show(activity);` within `activity.runOnUiThread`. From its API description:
"If the current thread is the UI thread, then the action is executed immediately. If the current thread is not the UI thread, the action is posted to the event queue of the UI thread."

Can you follow this system tracing guide to inspect/capture the thread activity, and make sure nothing is blocking the thread from showing the interstitial ad?


Regards,
Joshua

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