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

135 views
Skip to first unread message

Mark Wong

unread,
Mar 8, 2024, 10:21:55 AM3/8/24
to Google Mobile Ads SDK Developers
I am confused as. As I'm trying to debug this issue. I make a brand new react native project.
Install 'react-native-google-mobile-ads' 
put in the banner on the page:
const adUnitId = TestIds.GAM_BANNER;
...
<BannerAd
size={BannerAdSize.BANNER}
unitId={adUnitId}
onAdLoaded={() => {
console.log('Ad loaded');
}}
onAdFailedToLoad={error => {
console.error('Advert failed to load: ', error);
}}
/>
 and the test ad works on the emulator.

but I'm trying to figure out why I have another project and the test ad doesn't show up on the emulator, instead I get:

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

which shouldn't be happening for a test ad. Any ideas? I guess last resort I could try to move all my app code into the new project..

Mobile Ads SDK Forum Advisor

unread,
Mar 8, 2024, 10:28:01 AM3/8/24
to ma...@projectmw.net, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

After looking at your issue as you said, you were able to load previously and now getting no ads in new project which means an ad serving issue which indicates there are no ads available at request time. The next step for you would be to reach out to the Product Support Team for further assistance regarding the ad serving concern. Also if you were able to load ads in previous project but not in new continuously, then contact your third part SDK owner.

According to the Mobile Ads SDK documentation, we support the following platforms: 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzni1:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team




 

Reply all
Reply to author
Forward
0 new messages