sbugert / react-native-admob

A react-native component for Google AdMob banners
BSD 2-Clause "Simplified" License
1.13k stars 532 forks source link

Interstitial Unhandled promise rejection: Error: ERROR_CODE_NO_FILL id0 #547

Open Deivesilvaka opened 3 years ago

Deivesilvaka commented 3 years ago

my code is

const showInterstitial = async() => {

    const keys = {
        production: 'production key',
        development: 'development key'
    }

    await AdMobInterstitial.setAdUnitID(keys.production)

    await AdMobInterstitial.requestAdAsync({ servePersonalizedAds: true}).then(async(log) => {
        await AdMobInterstitial.showAdAsync().catch(err => console.log(err))
    }).catch(err => console.log(err))
}

and this error appears

[Unhandled promise rejection: Error: ERROR_CODE_NO_FILL]