react-native-admob icon indicating copy to clipboard operation
react-native-admob copied to clipboard

Internal error, an invalid response was received from the ad server.

Open bvv218 opened this issue 9 years ago • 30 comments

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!

bvv218 avatar Nov 22 '17 07:11 bvv218

This is probably not an issue with this library, but with your admob configuration. How do you use the library?

koenpunt avatar Nov 22 '17 17:11 koenpunt

+1. I got this error when my phone is offline, presumably. I didn't see it in version 1.*

artemukolov avatar Nov 28 '17 17:11 artemukolov

+1 Also got this when trying to use my own adUnitId from my admobs accouny

SanchezQb avatar Nov 28 '17 20:11 SanchezQb

+1. I got this error when my phone is offline, presumably. I didn't see it in version 1.*

@artemukolov that's sound like a reasonable error message for when you're offline don't you think?

koenpunt avatar Nov 28 '17 20:11 koenpunt

@koenpunt Correct

artemukolov avatar Nov 29 '17 06:11 artemukolov

@artemukolov I also have the same problem as @bvv218 , and I don't think it's because of the admob configuration, because I test the real ad unit id in native code (java) and it works.

gaaragots avatar Dec 25 '17 21:12 gaaragots

Same problem

m-brtn avatar Jan 07 '18 08:01 m-brtn

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

SanchezQb avatar Jan 07 '18 08:01 SanchezQb

same problem

sametpalitci avatar Jan 26 '18 11:01 sametpalitci

I have the same problem. Ads were working fine on version 1 though. Any help on this would be appreciated. Thanks.

r0hit-gupta avatar Jan 27 '18 18:01 r0hit-gupta

For me it was solved by removing these two lines:

testDevices={[AdMobBanner.simulatorId]}
  onAdFailedToLoad={error => console.error(error)}

bvv218 avatar Jan 27 '18 19:01 bvv218

@bvv218 no errors but no ads.

sametpalitci avatar Jan 28 '18 11:01 sametpalitci

I have the same error, someone have solved this?

victorlucss avatar Feb 02 '18 22:02 victorlucss

Closing since @bvv218 managed to solve it by removing the onAdFailedToLoad property.

koenpunt avatar Feb 03 '18 12:02 koenpunt

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.

r0hit-gupta avatar Feb 03 '18 12:02 r0hit-gupta

A common case for the adserver returning an incorrect response is when the AdMobBanner/PublisherBanner is not sized properly. If you have this error, you better test if you also have this error when you place the banner for example at the root of your app, without applying any styles.

koenpunt avatar Feb 03 '18 12:02 koenpunt

I am getting the same error for interstitials as well.

r0hit-gupta avatar Feb 03 '18 13:02 r0hit-gupta

I still get the same error.

sametpalitci avatar Feb 04 '18 13:02 sametpalitci

Thanks to @artemukolov

+1. I got this error when my phone is offline, presumably. I didn't see it in version 1.*

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 or react-native run-android.

This worked for me. https://imgur.com/a/ZlD5e

nicholaslie90 avatar Feb 15 '18 03:02 nicholaslie90

How to solve the problem. Thanks.

krkmzugur avatar May 13 '18 17:05 krkmzugur