AdMob Banner Ads Failing to Load in Flutter App with Internal Error Code 0 When Using TabBarView with AutomaticKeepAliveClientMixin

117 views
Skip to first unread message

Siu Kei Tang

unread,
Sep 20, 2024, 12:23:14 AM9/20/24
to Google Mobile Ads SDK Developers

Hi, HI am experiencing an issue with loading banner ads in my Flutter application using the google_mobile_ads plugin version 5.0.0

The ads are failing to load, and I'm receiving an internal error with code 0

This error occurs specifically when using a TabBarView containing views that implement AutomaticKeepAliveClientMixin with wantKeepAlive set to true. 

The ads work fine on the initial page load, but the error occurs after changing tabs 3-4 times. I would like assistance in diagnosing and resolving this problem.

Details of the Issue:

  • Platform: Flutter (Dart)

  • Plugin: google_mobile_ads version 5.0.0

  • Ad Format: Banner Ads

  • Error Details from Console Logs:

    I/flutter (12006): Failed to load banner ad: LoadAdError(code: 0, domain: com.google.android.gms.ads, message: Internal error., responseInfo: ResponseInfo(responseId: _m3sZvXeEMmLid4PotSroQ0, mediationAdapterClassName: , adapterResponses: [ AdapterResponseInfo(adapterClassName: com.google.ads.mediation.admob.AdMobAdapter, latencyMillis: 60001, description: { "Adapter": "com.google.ads.mediation.admob.AdMobAdapter", "Latency": 60001, "Ad Error": { "Code": 0, "Message": "Internal error.", "Domain": "com.google.android.gms.ads", "Cause": "null" } }, ...)
  • Scenario:

    • I am using a TabBarView that contains several views (tabs).
    • Each tab view implements AutomaticKeepAliveClientMixin with wantKeepAlive set to true to keep the screens alive and preserve their state.
    • The ads load and display correctly on the first tab initially.
    • After switching tabs 3-4 times, the banner ads fail to load, and the internal error code 0 occurs.
    •   This issue seems to be related to the interaction between the ad loading and the AutomaticKeepAliveClientMixin in the context of TabBarView.

Mobile Ads SDK Forum Advisor

unread,
Sep 20, 2024, 7:22:43 AM9/20/24
to samta...@gmail.com, google-adm...@googlegroups.com
Hi,

Newly created Ad Units can take up to 2 hours to become active (SpinUp Time). Any Ad requests from newly created Ad Units would also receive Error Code 0 in response to Ad requests until they are ready to serve live ads. Can you confirm you are able to reproduce the issue with sample ad unit as well?

Could you try once by enabling the Ad Inspector ? And then share the export request and response file generated from Ad Inspector to us along with App Id,Ad Unit Id via "Reply to author" option.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGNZG:ref" (ADR-00268833)

Thanks,
 
Google Logo Mobile Ads SDK Team

 

Emmanuel Emeka

unread,
Sep 22, 2024, 3:50:09 PM9/22/24
to Google Mobile Ads SDK Developers
Thanks we're working on it 

Emmanuel Emeka

unread,
Sep 22, 2024, 3:50:10 PM9/22/24
to Google Mobile Ads SDK Developers
We are working on it thanks 

On Friday 20 September 2024 at 11:22:43 UTC Mobile Ads SDK Forum Advisor wrote:
Reply all
Reply to author
Forward
0 new messages