Whenever I try to load an ad using AdMob, I get the following error
W/Ads (23418): There was a problem getting an ad
response.ErrorCode: 0
W/Ads (23418): Failed to load ad: 0
W/flutter (23418): onAdFailedToLoad: 0
I/flutter (23418): BannerAd event is MobileAdEvent.failedToLoad
I am using the android emulator and I am using only banner ads and I don't know why this error is occurring.
When I used firebase_admob 0.9.0+3, I encountered this error, this resolution worked for me, below:
You need to add "admob_app_id" value into ..android/app/google-services.json file, after the "services" tag.
"admob_app_id": "ca-app-pub-your app~id" *(*change your admob app id here)
You can find this file also admob panel/ your app / your banner name / Implementation instructions / bullet nr. 3
(if you already have this file, add only this line)
By the way, meaning the other fail numbers are :
The remaining fail numbers can be found Here
Check this explanation first from community Google community explanation of error codes
if still doesn't work, It could be because of unimplemented steps in the AdMob account. Example. Payment verification or account verification.
Go to your AdMob account home Admob Home and check for these notifications
Detailed info about error codes is given here
If everything in AdMob account is okay, It should show something like this in home page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With