AdMob causing ANRs?

249 views
Skip to first unread message

delightga...@gmail.com

unread,
Dec 2, 2022, 1:34:49 AM12/2/22
to Google Mobile Ads SDK Developers

Google Play has recently instituted a new policy where developers need to stay under a certain ANR threshold or else be punished by Google Play (your app or game becomes less discoverable on Google Play because it is considered lower quality). ANR stands for “Application Not Responding” and instances of this are reported on the Google Play Console. Currently, my games that use AdMob have ANRs that are above the threshold that Google considers “bad behavior”. The problem is that I can’t do anything about it because the majority of my ANRs appear to be from AdMob ads. Many of these have to do with “android.os.MessageQueue.nativePollOnce” which, from the research I have done, is not within my control and is an AdMob thing.

Note that my premium game that doesn’t have ads practically has no ANRs and I’m WAY below the threshold of bad ANRs. My premium game is very similar to my ad supported game and they share a lot of code. The largest difference is the ads.

Note that I’m using the most up to date ad SDK (com.google.firebase:firebase-ads:21.3.0) and I’m even using a new advanced Beta feature from AdMob that is supposed to optimize initialization and loading of ads (see manifest code below), yet I’m still seeing ANRs.

        <meta-data

            android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"

            android:value="true"/>

        <meta-data

            android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING"

            android:value="true"/>

 

Any help you can give me is much appreciated.

Mobile Ads SDK Forum Advisor

unread,
Dec 2, 2022, 12:07:56 PM12/2/22
to delightga...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for reaching out to us.

So that we could the issue that you're reporting further, would you able to provide/confirm the following?
  • You AdMob app ID
  • Full stack trace of the crash log (text copy)
  • Affected devices
  • percentage occurrence of the crash
Kindly send the requested information via reply privately to author option.

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


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