React-native-admob: The ad request was successful, but no ad was returned due to lack of ad inventory.

Created on 9 Aug 2018  ·  34Comments  ·  Source: sbugert/react-native-admob

Hi, I faced a problem when using react-native-admob with reward ads. The error code here { [Error: The ad request was successful, but no ad was returned due to lack of ad inventory.] framesToPop: 1, code: 'ERROR_CODE_NO_FILL' }. Do you have any idea?

Most helpful comment

It such a pain how they never said anything on waiting for days before showing ads. In my case, I have to wait 3 days before ads start showing. During that wait period you could be trying to fix something that is not broken.

All 34 comments

It worked with the test ads, but when I replace with my ads I received an error.

Then problem is in your ads not in code

How about another problem? I had created ads on Admob, wait 6 hours after that replace ads id. Where I wrong?

I don't know what you did in admob panel, but i can say that if test ads showing up then code is ok

As @sergiongit says; this had to do with the ads, not this library

Thank you very for help!. I have already found out the problem. Sometimes we have to wait several days for the ads delivery.

I'm having this same issue but with the test ads and only on my phone (iPhone 6).. rewarded test ads are working all other phones (iOS and android)including iOS simulators and android Emulators except for my phone, which is pretty weird and funny at the same time.

It such a pain how they never said anything on waiting for days before showing ads. In my case, I have to wait 3 days before ads start showing. During that wait period you could be trying to fix something that is not broken.

I am having the same problem, but my app is already in production.
And the match rate is 0%. But the behavior is the same that you described!
One thing that should be noted is that I have already created the ad units, one month ago.
And it already worked with real ads, from one week to now, it just works with test ads...
Do you guys have any suggestion?

I have same issue just on android. I tried on test id and got this error.
Do you guys have any suggestion?

If your app is getting few requests to ads, from my personal experience, it can take a while to return ads. If the test ads are working fine, you don't need to worry, you'll have ad inventory soon. It may take 2/3 days after releasing to play store or getting some meaningful real ads requests.

Thanks for quick response! I also used test ads ... still same result(

On 9 Jan 2019, at 01:45, ricardoneves93 notifications@github.com wrote:

If your app is getting few requests to ads, from my personal experience, it can take a while to return ads. If the test ads are working fine, you don't need to worry, you'll have ad inventory soon. It may take 2/3 days after releasing to play store or getting some meaningful real ads requests.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

I don't know what you did in admob panel, but i can say that if test ads showing up then code is ok

@SergiOnGit hey iam facing the same error in test ads also please help me with this

facing same issue... its been 2 days i created the ad unit but still this error occurs.. It works with test ads.

any update?

I solved the issue ..
You have to verify your address by submitting id card to google. Check your linked adsense account. They will ask you to fill a form, after that you can serve ads.

I tried a blank expo app and installed their version of admob and used the ids i have and it shows the ads there properly.

I have some problem.How did you solve?

The ad request was successful, but no ad was returned due to lack of ad inventory.

Hey @fernando-pascoal!
That is a normal behavior, it usually means that everything is good with your configuration.
You'll need to wait a few days so that google starts delivering ads.
I've already had this problem with app released to the Google Play Store.

I have some problem.How did you solve?

The ad request was successful, but no ad was returned due to lack of ad inventory.

You have to submit your address and other information they ask..
And wait for couple of days

@Sanan4li Thank you. But my adUnitID is used in another app build with Swift and Java. Both are in the store and works. I created my app with react-native now and need admanager.

If you are using the same ads in another app.. don't do it.. make a new app in admob and use new ads..

If you are using the same ads in another app.. don't do it.. make a new app in admob and use new ads..

It's not in stores yet. I will replace the two with a react-native app.

How can I fix lack of inventory issues in my admob

How can I fix lack of inventory issues in my admob

How many days you have been seeing this error?
You have to wait for couple of days before ads start working.

You have to wait for couple of days before ads start working.

please help me,

even test ids are not working

@Revathicolourmoon0140 the test ids works. Maybe you set something wrong. In my repositories has a fork of this project and works fine. (customTargets also). https://github.com/fpgce/react-native-admob

AdMobBanner                AdMobBanner      
Hello sir,
thank you for your reply.
i am doing this way as i mention the above attachment . but i got an error can u help me please,

The ad request was successful, but no ad was returned due to lack of ad inventory.

this only iam getting.
Thanks and Regards,
Revathi

On Wednesday, September 23, 2020, 06:34:32 PM GMT+5:30, Fernando Pascoal <[email protected]> wrote:

@Revathicolourmoon0140 the test ids works. Maybe you set something wrong. In my repositories has a fork of this project and works fine. (customTargets also). https://github.com/fpgce/react-native-admob


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

SoMe PrObLeM

I have same issue in my project with test unit in banner app . see my app.js if any kind of error in that ?
I m new in react native so please help me for that

import React, { Component } from 'react';
import {
Button,
StyleSheet,
View,
} from 'react-native';
import admob, { MaxAdContentRating, BannerAd, TestIds, BannerAdSize } from '@react-native-firebase/admob';

export default class App extends Component {

componentDidMount() {
admob()
.setRequestConfiguration({
// Update all future requests suitable for parental guidance
maxAdContentRating: MaxAdContentRating.G,

    // Indicates that you want your content treated as child-directed for purposes of COPPA.
    tagForChildDirectedTreatment: true,

    // Indicates that you want the ad request to be handled in a
    // manner suitable for users under the age of consent.
    tagForUnderAgeOfConsent: true,
  })
  .then(() => {
    // Request config successfully set!
  });

}

render() {
return (
unitId={TestIds.BANNER}
size={BannerAdSize.SMART_BANNER}
requestOptions={{
requestNonPersonalizedAdsOnly: true,}}
onAdLoaded={() => {
console.log('Advert loaded');}}
onAdFailedToLoad={(error) => {
console.error('Advert failed to load: ', error);}}
/>

I have same issue in my project with test unit in banner app . see my app.js if any kind of error in that ?
I m new in react native so please help me for that

import React, { Component } from 'react';
import {
Button,
StyleSheet,
View,
} from 'react-native';
import admob, { MaxAdContentRating, BannerAd, TestIds, BannerAdSize } from '@react-native-firebase/admob';

export default class App extends Component {

componentDidMount() {
admob()
.setRequestConfiguration({
// Update all future requests suitable for parental guidance
maxAdContentRating: MaxAdContentRating.G,

    // Indicates that you want your content treated as child-directed for purposes of COPPA.
    tagForChildDirectedTreatment: true,

    // Indicates that you want the ad request to be handled in a
    // manner suitable for users under the age of consent.
    tagForUnderAgeOfConsent: true,
  })
  .then(() => {
    // Request config successfully set!
  });

}

render() {
return (
unitId={TestIds.BANNER}
size={BannerAdSize.SMART_BANNER}
requestOptions={{
requestNonPersonalizedAdsOnly: true,}}
onAdLoaded={() => {
console.log('Advert loaded');}}
onAdFailedToLoad={(error) => {
console.error('Advert failed to load: ', error);}}
/>

Please check this comment https://github.com/sbugert/react-native-admob/issues/349#issuecomment-603538984
If your admob account is new you have to submit address for verification. Also wait for 2,3 days after verification.

I have same issue in my project with test unit in banner app . see my app.js if any kind of error in that ?
I m new in react native so please help me for that
import React, { Component } from 'react';
import {
Button,
StyleSheet,
View,
} from 'react-native';
import admob, { MaxAdContentRating, BannerAd, TestIds, BannerAdSize } from '@react-native-firebase/admob';
export default class App extends Component {
componentDidMount() {
admob()
.setRequestConfiguration({
// Update all future requests suitable for parental guidance
maxAdContentRating: MaxAdContentRating.G,

    // Indicates that you want your content treated as child-directed for purposes of COPPA.
    tagForChildDirectedTreatment: true,

    // Indicates that you want the ad request to be handled in a
    // manner suitable for users under the age of consent.
    tagForUnderAgeOfConsent: true,
  })
  .then(() => {
    // Request config successfully set!
  });

}
render() {
return (

unitId={TestIds.BANNER}
size={BannerAdSize.SMART_BANNER}
requestOptions={{
requestNonPersonalizedAdsOnly: true,}}
onAdLoaded={() => {
console.log('Advert loaded');}}
onAdFailedToLoad={(error) => {
console.error('Advert failed to load: ', error);}}
/>

Thanks for reply but it is also necessary in testad also? and this account is also used in android project previously

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MohsinTariq10 picture MohsinTariq10  ·  6Comments

jonigl picture jonigl  ·  4Comments

aligenc picture aligenc  ·  3Comments

lydongray picture lydongray  ·  4Comments

ozmaat picture ozmaat  ·  3Comments