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.

[Android] Test ads are not working

See original GitHub issue

Plugin Version

0.13.5

Steps to Reproduce

Just create an ad and you will see that the ad is not loading. I’m using banner ads.

Expected results: A test Ad

Actual results: Nothing!

Logs
There is a message saying "Ad failed to load : 3"
No issues found! (ran in 2.8s)
[✓] Flutter (Channel stable, 2.5.3, on Pop!_OS 21.04 5.13.0-7614-generic, locale en_US.UTF-8)
    • Flutter version 2.5.3 at /home/dipansh/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (9 days ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /home/dipansh/Android/Sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /home/dipansh/Softwares/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /home/dipansh/Softwares/android-studio
    • 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.10+0-b96-7249189)

[✓] IntelliJ IDEA Community Edition (version 2021.2)
    • IntelliJ at /home/dipansh/Softwares/intelliJ
    • 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

[✓] VS Code (version 1.61.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.27.0

[✓] Connected device (2 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 12 (API 31) (emulator)
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 95.0.4638.54

• No issues found!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:30

github_iconTop GitHub Comments

3reactions
gabrielglbhcommented, Dec 12, 2021

Is this still being researched on? Seems a little funky to me that no test ads are showing with everything as it should be.

This is also happening to me, no test ads are dropping for me and the code is exactly as the one shared here. The error code is 3 and the error message prompted on the onAdFailedToLoad callback is No ad config.. This is very odd as my app in production is consuming ads perfectly (using 0.11.0+3), but in the newer version that I am working on the test ads are not even showing (using 1.0.1).

Update

I have just tested the app with different combinations of app and banner IDs, here is a table demonstrating the outputs I got:

Test 1 Test 2 Test 3
App ID Test App ID Personal App ID Personal App ID
Banner ID Test Banner ID Test Banner ID Personal Banner ID
Expected Output Test Ads Displaying Test Ads Displaying Real Ad Displaying
Actual Output Test Ads Displaying No ad config. Error code: 3 Real Ad Displaying

It seems that the banner test ID does not like being called within the personal app ID, thus resulting in the no config error.

3reactions
imyogisinghcommented, Nov 10, 2021

still test ads are not showing giving me the error code 3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common reasons for ads not showing - Google AdMob Help
Is your ad implementation code working properly ? Test your implementation code to check that ads can show. You can also use ad...
Read more >
admob - Android: Test Ads not displaying - Stack Overflow
i am trying to add Ads to my current activity but the activity is not showing any Ad . i have also add...
Read more >
Test Ads are Not Working · Discussion #102 - GitHub
Hello, AdMob Test ads are not loading in my game. I tried to implement the plugin by using default test ids provided by...
Read more >
Enabling test ads | Android - Google Developers
This guide explains how to enable test ads in your ads integration. It's important to enable test ads during development so that you...
Read more >
Test ads not showing in emulator when using Test Unit IDs
Noticed this while development of my app that I am not seeing test ads in my emulator. While development I am using the...
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