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 victorlucss opened this issue 8 years ago • 30 comments

Since yesterday this error occurs for me. I tried the proposed solutions from the issue #220 but I don't get it solved.

My code: <AdMobBanner adSize="mediumRectangle" adUnitID="my ad unit id" testDevices={[AdMobBanner.simulatorId]} onAdFailedToLoad={error => console.error(error)} />

The error:

Internal error, an invalid response was received from the ad server. handleAdFailedToLoad C:\Users\victo\Desktop\app1\node_modules\react-native-admob\RNAdMobBanner.js:45:59 proxiedMethod C:\Users\victo\Desktop\app1\node_modules\react-proxy\modules\createPrototypeProxy.js:44:35 _invokeGuardedCallback C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:73:23 invokeGuardedCallback C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:47:40 invokeGuardedCallbackAndCatchFirstError C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:50:60 executeDispatch C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:125:132 executeDispatchesInOrder C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:130:283 executeDispatchesAndRelease C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:3255:62 executeDispatchesAndReleaseTopLevel C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:3259:43 forEachAccumulated C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:3252:69 processEventQueue C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:3309:147 runEventQueueInBatch C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:3535:83 handleTopLevel C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:3539:33 C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:3560:55 batchedUpdates C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:2754:26 batchedUpdates C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:202:35 batchedUpdatesWithControlledComponents C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:209:34 _receiveRootNodeIDEvent C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:3559:50 receiveEvent C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\Renderer\ReactNativeFiber-dev.js:3564:60 __callFunction C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:299:47 C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:111:26 __guard C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:262:6 callFunctionReturnFlushedQueue C:\Users\victo\Desktop\app1\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:110:17

Someone have a soluction for this? Thanks.

victorlucss avatar Feb 04 '18 12:02 victorlucss

I'm tired of saying this, I have the same problem!

sametpalitci avatar Feb 04 '18 13:02 sametpalitci

I still have the problem.

victorlucss avatar Feb 04 '18 23:02 victorlucss

my problem is still going on, have you found a @victoorlucas solution?

sametpalitci avatar Feb 08 '18 14:02 sametpalitci

I too have the same problem. Can someone please help us out?

r0hit-gupta avatar Feb 09 '18 17:02 r0hit-gupta

Resolved when you approve the error on the AdMob homepage!

solved, by confirming the "confirm your information" error on the AdMob homepage!

sametpalitci avatar Feb 09 '18 18:02 sametpalitci

@hyorax can you please explain that in detail or provide a link?

r0hit-gupta avatar Feb 09 '18 18:02 r0hit-gupta

1)Click Home page, error this:

Your ad units are not displaying ads because you haven't provided your account payments information yet.

2)Click Fix It. 3)Click Select Payment, 4)And Submit. Finish, solved for me!

sametpalitci avatar Feb 09 '18 18:02 sametpalitci

I am glad you have finally solved the issue. However, there is no such warning on my account. Gotta find some other solution.

r0hit-gupta avatar Feb 09 '18 18:02 r0hit-gupta

Glad that these solution worked for you @hyorax, but I still get the error.

victorlucss avatar Feb 10 '18 09:02 victorlucss

Guys, Any fixes??

muzammil-triffort avatar Feb 18 '18 17:02 muzammil-triffort

I created a new react native project and relinked the libraries. Everything worked after.

r0hit-gupta avatar Feb 18 '18 17:02 r0hit-gupta

I am having the same problem @r0hit-gupta @victoorlucas did you find a solution?

matheusrocha89 avatar Mar 20 '18 18:03 matheusrocha89

@matheusrocha89 I created a new project from scratch. Installed admob and linked it. Then copy pasted the react code from my original project. I also created a new Ad Unit on Admob and used a real device to test the ads. Ads were not showing on the emulator for some reason.

r0hit-gupta avatar Mar 20 '18 18:03 r0hit-gupta

I am trying on a real device and still getting this error on my console when I activate the debug mode on react native. When you were testing you used the release version or the test version of your app @r0hit-gupta ?

matheusrocha89 avatar Mar 20 '18 18:03 matheusrocha89

@hyorax After you confirm your information took some time to start to work?

matheusrocha89 avatar Mar 20 '18 18:03 matheusrocha89

@r0hit-gupta after I confirm my informations took some minutes to start to work. Now The error is The ad request was successful, but no ad was returned due to lack of ad inventory. I guess I need to configure something on my AdMOB to put some ads on my inventory, I am not sure, I will make some research about that

matheusrocha89 avatar Mar 20 '18 18:03 matheusrocha89

@matheusrocha89 try changing the banner size.

r0hit-gupta avatar Mar 20 '18 18:03 r0hit-gupta

I am using AdMobInterstitial don't have size.

matheusrocha89 avatar Mar 20 '18 18:03 matheusrocha89

@matheusrocha89 I suggest you wait for some more time. It usually takes some time for new ad units to show up.

r0hit-gupta avatar Mar 20 '18 18:03 r0hit-gupta

I guess could be that too, BTW I will keep this issue updated If I have some success. Thanks for the help @r0hit-gupta

matheusrocha89 avatar Mar 20 '18 18:03 matheusrocha89