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