Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zymethyang opened this issue Aug 9, 2018 · 45 comments

Comments

@zymethyang
Copy link

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?

@SergiOnGit
Copy link

Use test ads https://developers.google.com/mobile-ads-sdk/docs/dfp/android/test-ads

@zymethyang
Copy link
Author

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

@SergiOnGit
Copy link

Then problem is in your ads not in code

@zymethyang
Copy link
Author

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

@SergiOnGit
Copy link

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

@koenpunt
Copy link
Collaborator

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

@zymethyang
Copy link
Author

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

@ahmdsdk
Copy link

ahmdsdk commented Sep 19, 2018

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.

@vision669
Copy link

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.

@ricardoneves93
Copy link

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?

@Viktor19931
Copy link

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

@ricardoneves93
Copy link

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.

@Viktor19931
Copy link

Viktor19931 commented Jan 9, 2019 via email

@vamsi920
Copy link

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

@Sanan4li
Copy link

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

@anasalsaadi14
Copy link

any update?

@Krasnovyd
Copy link

Just use test ads id
https://developers.google.com/admob/android/test-ads

@Sanan4li
Copy link

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.

@genesy
Copy link

genesy commented Mar 29, 2020

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.

@fernandopascoalbr
Copy link

fernandopascoalbr commented May 20, 2020

I have some problem.How did you solve?

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

@ricardoneves93
Copy link

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.

@Sanan4li
Copy link

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

@fernandopascoalbr
Copy link

@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.

@Sanan4li
Copy link

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

@fernandopascoalbr
Copy link

fernandopascoalbr commented May 20, 2020

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.

@eflez
Copy link

eflez commented Jun 7, 2020

How can I fix lack of inventory issues in my admob

@Sanan4li
Copy link

Sanan4li commented Jun 7, 2020

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.

@Revathicolourmoon0140
Copy link

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

please help me,

even test ids are not working

@fernandopascoalbr
Copy link

@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

@Revathicolourmoon0140
Copy link

Revathicolourmoon0140 commented Sep 23, 2020 via email

@Mrjavaci
Copy link

SoMe PrObLeM

@ankitpatel7225
Copy link

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 (

<BannerAd
unitId={TestIds.BANNER}
size={BannerAdSize.SMART_BANNER}
requestOptions={{
requestNonPersonalizedAdsOnly: true,}}
onAdLoaded={() => {
console.log('Advert loaded');}}
onAdFailedToLoad={(error) => {
console.error('Advert failed to load: ', error);}}
/>
<Button title="Click here" onPress={() => {

  }}></Button>
  </View>
);

}
};

const styles = StyleSheet.create({
body: {
backgroundColor: '#fff',
}
});

same issue :

Advert failed to load: [Error: [admob/error-code-no-fill] The ad request was successful, but no ad was returned due to lack of ad inventory.]

please any one help in firebase dashboard show my app was install in steam view but in app no ad load in real device

@Sanan4li
Copy link

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 (

<BannerAd
unitId={TestIds.BANNER}
size={BannerAdSize.SMART_BANNER}
requestOptions={{
requestNonPersonalizedAdsOnly: true,}}
onAdLoaded={() => {
console.log('Advert loaded');}}
onAdFailedToLoad={(error) => {
console.error('Advert failed to load: ', error);}}
/>
<Button title="Click here" onPress={() => {

  }}></Button>
  </View>
);

}
};

const styles = StyleSheet.create({
body: {
backgroundColor: '#fff',
}
});

same issue :

Advert failed to load: [Error: [admob/error-code-no-fill] The ad request was successful, but no ad was returned due to lack of ad inventory.]

please any one help in firebase dashboard show my app was install in steam view but in app no ad load in real device

Please check this comment #349 (comment)
If your admob account is new you have to submit address for verification. Also wait for 2,3 days after verification.

@ankitpatel7225
Copy link

ankitpatel7225 commented Jan 19, 2021

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 (

<BannerAd
unitId={TestIds.BANNER}
size={BannerAdSize.SMART_BANNER}
requestOptions={{
requestNonPersonalizedAdsOnly: true,}}
onAdLoaded={() => {
console.log('Advert loaded');}}
onAdFailedToLoad={(error) => {
console.error('Advert failed to load: ', error);}}
/>
<Button title="Click here" onPress={() => {

  }}></Button>
  </View>
);

}
};
const styles = StyleSheet.create({
body: {
backgroundColor: '#fff',
}
});
same issue :
Advert failed to load: [Error: [admob/error-code-no-fill] The ad request was successful, but no ad was returned due to lack of ad inventory.]
please any one help in firebase dashboard show my app was install in steam view but in app no ad load in real device

Please check this comment #349 (comment)
If your admob account is new you have to submit address for verification. Also wait for 2,3 days after verification.

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

@sangolariel
Copy link

sangolariel commented May 17, 2021

I wait for 3 days but it not running. It works well on IOS Simulator?

@Sanan4li
Copy link

I wait for 3 days but it not running. It works well on IOS Simulator?

Please check this #349 (comment)

@sangolariel
Copy link

sangolariel commented May 18, 2021

I wait for 3 days but it not running. It works well on IOS Simulator?

Please check this #349 (comment)

@Sanan4li I wait for 4 days. and the ads did not show for me. My card is verified. My APP has not released on App Store. I just run local and add a device for testing. the simulator works well on IOS but on a real device, it seems not to work. Should I continue to wait for show ads? I am not sure but I don't have an idea for now :(.

@jorgegvallejo
Copy link

I got this same "lack of inventory" error in production, while test ads and my ads show just fine in dev...

@sangolariel
Copy link

@jorgegvallejo I fixed this problem. you have to wait until the app be summited on OS and Android. Or you can add device test id on AdMod setting page. You can see the ad in dev because the device is considered as a device test.

@Eloquence01
Copy link

I am also facing the same issue though my app is yet to be submitted on play store pls can anyone help

@sangolariel
Copy link

@Eloquence01 you maybe need to wait for 3-4 days after release.

@Eloquence01
Copy link

Eloquence01 commented Oct 1, 2021 via email

@jorgegvallejo
Copy link

I have been waiting for more than 3-4days now. What do I do pls??

@Eloquence01 were you able to solve it?

@Eloquence01
Copy link

Eloquence01 commented Oct 24, 2021 via email

@juniordnts
Copy link

I created the app and tested with the test ca-app-pub and it worked. But has passed 5 days now and I still getting the The ad request was successful, but no ad was returned due to lack of ad inventory error. How can I check if I already have the ads?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests