🐛 [Android] Release Mode Error: Ad failed to load: LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config.)
See original GitHub issueBug 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:
- Use a real ad id with googleads-mobile-flutter for banner or interstitial (these are the ones that I tested)
- Use AdListener to log callbacks.
- 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:
- Created 3 years ago
- Reactions:28
- Comments:55
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.
reference : https://developers.google.com/admob/android/test-ads