react-native-admob: Internal error, an invalid response was received from the ad server.
When I test banner ads with test with test ad id everything works great, but when I use my real ad unit id, I receive this error: Internal error, an invalid response was received from the ad server.
How can I make it work with real id?
EDIT: For me it was solved by removing these two lines:
testDevices={[AdMobBanner.simulatorId]}
onAdFailedToLoad={error => console.error(error)}
Hope it helps someone!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 30
I think we should keep this issue open. There are many others(including me) who are still searching for a solution. Removing
onAdFailedToLoad
did not solve it for me.Login to your admob account and follow the following steps
1)Click Home page,
In the dialog with this message
2)Click Fix It. 3)Click Select Payment, 4)And Submit.
and then within 24 hours it will verify your details and will start serving ads for your ad units
Create a new project and copy all files of old project to this new. This worked for me
This problem is because the ad unit was just created. It takes some time for it to start working so you just have to wait a bit
I had the same error using my cod UnitId, but when i did use the test code delivered for google i could work fine
For me it was solved by removing these two lines:
Banner | ca-app-pub-3940256099942544/6300978111 Interstitial | ca-app-pub-3940256099942544/1033173712 Interstitial Video | ca-app-pub-3940256099942544/8691691433 Rewarded Video | ca-app-pub-3940256099942544/5224354917 Native Advanced | ca-app-pub-3940256099942544/2247696110 Native Advanced Video | ca-app-pub-3940256099942544/1044960115
Had the same issue and tried everything mentioned everywhere. It wasn’t until I went into Google Developer Console -> My App -> Pricing & Distribution: checked
Contains ads
that it started working after half an hour.+1 Also got this when trying to use my own adUnitId from my admobs accouny
@bvv218 no errors but no ads.
After setting your payment details, first test with test ad unit id . then change your own ad unit id. then if you get this error
[Error: The ad request was successful, but no ad was returned due to lack of ad inventory.]
if your app is created recently. you need to wait for some time to verify the appThanks to @artemukolov
I managed to solve this. For me, it was the emulator was offline. Try opening the browser app inside your emulator and try to navigate to a website (e.g. www.google.com). If you can open the site then re-run
react-native run-ios
orreact-native run-android
.This worked for me. https://imgur.com/a/ZlD5e