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] Release Mode Error: Ad failed to load: LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config.)

See original GitHub issue

Bug report

Describe the bug With flutter_admob I am able to show Interstitial ad with my app id, but when I migrated to googleads-mobile-flutter, my ad is not displayed and gives me this error:

Ad failed to load: LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config.)

Same thing applies to banner ads, too.

Steps to reproduce

Steps to reproduce the behavior:

  1. Use a real ad id with googleads-mobile-flutter for banner or interstitial (these are the ones that I tested)
  2. Use AdListener to log callbacks.
  3. flutter run --release and see the error.

Expected behavior

Ads should be displayed.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
PASTE OUTPUT INSIDE HERE

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
PASTE OUTPUT INSIDE HERE

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:28
  • Comments:55

github_iconTop GitHub Comments

7reactions
houdayeccommented, Mar 16, 2021

Same problem.

Debug ads are showing using test ids (for example: ca-app-pub-3940256099942544/2247696110)

However, when using those from my Admob config, it is not working.

Admob account is working, verified and ad units have been created more than 15 days ago. No idea where the problem might come from.

6reactions
Vakil-Parthcommented, Sep 20, 2021

solution for me is to set up an app-ads.txt file exact shown below. Then I have to wait for 24 hours to get it working.

Screenshot 2021-09-15 at 11 32 00 AM

reference : https://developers.google.com/admob/android/test-ads

Read more comments on GitHub >

github_iconTop Results From Across the Web

LoadAdError(code: 3, domain: com.google.android.gms.ads ...
I've found the cause of the problem and the solution. ... LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config., ...
Read more >
LoadAdError(code: 3, domain: com.google.android ... - GitHub
Run your app in debug mode, and check if the ads are shown (which is happening in my case); Remove your device ID...
Read more >
Error Code 3 'No Ad Config' on Android - Google Help
I have a published app on the app store and got admob account approval but ads are getting Error Code 3 'No Ad...
Read more >
Problem showing Ads: Code 3, No ad config - Google Groups
Hello Im having difficulty getting test ads AND real ads to show in my Android app, when my device is set to be...
Read more >
Interstitial ads | Android - Google Developers
When an app shows an interstitial ad, the user has the choice to either tap on the ad and continue to its destination...
Read more >

github_iconTop Related Medium Post

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