question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Interstitial Ads fail to load with wifi

See original GitHub issue

Plugin Version

0.13.0

Describe the bug

Interstitial Ads fail to load with wifi but load with mobile data. I have add a test device in the AdMob UI and I use the correct ad format and AdMob App ID. I have followed the example app

void _createInterstitialAd() {
    InterstitialAd.load(
        adUnitId: '<my ad Interstitial id>',
        request: AdRequest(),
        adLoadCallback: InterstitialAdLoadCallback(
          onAdLoaded: (InterstitialAd ad) {
            _interstitialAd = ad;
          },
          onAdFailedToLoad: (LoadAdError error) {
            _interstitialAd = null;
            },
        )
    );
  }

  void _showInterstitialAd() {
    if (_interstitialAd == null) {
      return;
    }
    _interstitialAd.fullScreenContentCallback = FullScreenContentCallback(
      onAdDismissedFullScreenContent: (InterstitialAd ad) {
        ad.dispose();
      },
      onAdFailedToShowFullScreenContent: (InterstitialAd ad, AdError error) {
        ad.dispose();
        _createInterstitialAd();
      },
    );

Error

I/flutter (28543): InterstitialAd failed to load: LoadAdError(code: 0, domain: com.google.android.gms.ads, message: Internal error., responseInfo: ResponseInfo(responseId: 72KnYPHREJaY3gOE2aEQ, mediationAdapterClassName: , adapterResponses: [AdapterResponseInfo(adapterClassName: com.google.ads.mediation.admob.AdMobAdapter, latencyMillis: 522), description: {
I/flutter (28543):   "Adapter": "com.google.ads.mediation.admob.AdMobAdapter",
I/flutter (28543):   "Latency": 522,
I/flutter (28543):   "Credentials": {},
I/flutter (28543):   "Ad Error": {
I/flutter (28543):     "Code": 0,
I/flutter (28543):     "Message": "Internal error.",
I/flutter (28543):     "Domain": "com.google.android.gms.ads",
I/flutter (28543):     "Cause": "null"
I/flutter (28543):   }
I/flutter (28543): }, credentials: Bundle[{}], adError: AdError(code: 0, domain: com.google.android.gms.ads, message: Internal error.))])).

flutter doctor

[√] Flutter (Channel stable, 2.0.6, on Microsoft Windows [Versione 10.0.19042.844], locale it-IT)
    • Flutter version 2.0.6 at C:\Users\Antonio\flutter
    • Framework revision 1d9032c7e1 (3 weeks ago), 2021-04-29 17:37:58 -0700
    • Engine revision 05e680e202
    • Dart version 2.12.3

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Antonio\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Antonio\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] VS Code (version 1.55.2)
    • VS Code at C:\Users\Antonio\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 90.0.818.62

• No issues found!
Process finished with exit code 0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
apietroluongocommented, Aug 27, 2021

Hi @maheshmnj, it seems solved with google_mobile_ads 0.13.4 on flutter stable 2.2.3.

0reactions
maheshmnjcommented, Aug 27, 2021

Thanks for confirming.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAN ads: Interstitial ad failed to load: No fill on one network ...
While testing my ads on my Android 7.0 tablet I'm getting Interstitial ad failed to load: No fill on home WIFI and if...
Read more >
MobileAdvert Interstitial Ads Fail To Load · Issue #5891 - GitHub
Problem description I am using the MobileAdvert plugin in my C3 project. On Android device, sometimes interstitial ads are not shown because ...
Read more >
I/Ads: Ad failed to load : 2 even i have good internet connection.
I have the same issue on my apps-- my new app not working and my 2-year-old app stopped working. I am using interstitial...
Read more >
Problem to show Ads when WIFI is ON. - Google Groups
I have a problem with Ads on my apps, when I turn 3g/4g ON and WIFI OFF i see ads, but if i...
Read more >
Interstitial Ad - Android - Release notes - GitBook
When an ad fails to load or to be displayed, the SDK calls the onAdError callback with an OguryError object. The OguryError object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found