Coder Social home page Coder Social logo

ANDROID: error: { message: 'The ad request was successful, but no ad was returned due to lack of ad inventory.' about react-native-admob-native-ads HOT 11 CLOSED

ammarahm-ed avatar ammarahm-ed commented on June 1, 2024
ANDROID: error: { message: 'The ad request was successful, but no ad was returned due to lack of ad inventory.'

from react-native-admob-native-ads.

Comments (11)

pperron avatar pperron commented on June 1, 2024

Just did an other test and installed the demo app on the Android emulator (Pixel 2 API 25 x86 running Android 7.1.1) and has the same result. For the real device, I'm using a Samsung Galaxy Tab A 2019 tablet, so Android OS is recent...

from react-native-admob-native-ads.

ammarahm-ed avatar ammarahm-ed commented on June 1, 2024

@pperron did you test the demo app? I have no such issue in the demo app. Try it out there. The lack of inventory error occurs due to server not returning the ads, its not related to this library. You can clear the build folders etc and try again, remove the app from your phone/emulator then install fresh.

from react-native-admob-native-ads.

pperron avatar pperron commented on June 1, 2024

Hi,
yes I was using the demo app for my testing. Tested the IOS version on my Iphone 11 and was working OK, stopped and restarted the app and get the ad displayed each time. Right now I'M trying to compile my project with your lib for IOS, getting some errors, will finish make it work and see if integrated to my project it is working OK.

After that will come back to Android to see if still have the problem. That way I will know if my network is responsible for some reason (will take that possibility off the problem list at least !).

I working on that tonight, so will keep you informed.

Thanks !

from react-native-admob-native-ads.

perrosnk avatar perrosnk commented on June 1, 2024

@pperron Have you found any solution?

I am having the same problem.

from react-native-admob-native-ads.

pperron avatar pperron commented on June 1, 2024

@perrosnk I have been testing on IOS to see if I have same problem. So far I tested the example app and it was working OK. Then waisted long time to make my project (that in using in part the lib but was not the cause of me having problems to compile) compile for IOS. When I succedded, the ads were displaying OK too. Working again on that tonight, will see if I have time to get back to the Android version to see if problem still there.

Would be useful to know if any other users have the same problem for the Android version...

from react-native-admob-native-ads.

albertocubero avatar albertocubero commented on June 1, 2024

I using only Android and I have Admob configured:

  • React Native 0.61.5 version like the example
  • Always removing the App in the simulator and removing the build folder in android folder.

I did 2 tests (in simulator, mac)

  • using my Admob IDs configuration:
    - In my app: NOT show Ads
    - In Example app: YES, show Ads
  • using the example Admod configuration:
    - In my app: NOT show Ads
    - In Example app: YES, show Ads

I have followed all the needed steps, I have reviewed all the example gradle configuration files, etc. and with the same configuration and I don't understand why with the same Admod IDs in the example I get Ads and in my app don't.

from react-native-admob-native-ads.

ammarahm-ed avatar ammarahm-ed commented on June 1, 2024

@albertocubero delete your app from the phone/clean build folders. Thats the only way I have fixed it ever. in android folder run ./gradlew clean and run build again

from react-native-admob-native-ads.

yaroslavnikiforov avatar yaroslavnikiforov commented on June 1, 2024

It loads on Android only ones after installing the app (use this unit id: ca-app-pub-3940256099942544/1044960115). After I have the same error. Only with this test native video unit id. If I delete the app and install it again it will load.

from react-native-admob-native-ads.

yaroslavnikiforov avatar yaroslavnikiforov commented on June 1, 2024

So this happens if you don't immediately render the ad components inside the NativeAdView, for example:
<NativeAdView> {isVisible && <MediaView />} </NativeAdView>

from react-native-admob-native-ads.

1729patrick avatar 1729patrick commented on June 1, 2024

Same issue. It loads on Android only ones after installing the app, after I have the same error "The ad request was successful, but no ad was returned due to lack of ad inventory."

from react-native-admob-native-ads.

Birat77 avatar Birat77 commented on June 1, 2024

Same issue here too. Ad loads for given example ad on the documentation example, doesn't work for other created ads

from react-native-admob-native-ads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.