react-native-admob icon indicating copy to clipboard operation
react-native-admob copied to clipboard

Interstitial Unhandled promise rejection: Error: ERROR_CODE_NO_FILL id0

Open Deivesilvaka opened this issue 4 years ago • 0 comments

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]

  • node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:103:50 in promiseMethodWrapper
  • node_modules@unimodules\react-native-adapter\build\NativeModulesProxy.native.js:15:23 in moduleName.methodInfo.name
  • node_modules\expo-ads-admob\build\AdMobInterstitial.js:17:15 in
  • node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch
  • node_modules\regenerator-runtime\runtime.js:293:29 in invoke
  • node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch
  • node_modules\regenerator-runtime\runtime.js:154:27 in invoke
  • node_modules\regenerator-runtime\runtime.js:189:16 in PromiseImpl$argument_0
  • node_modules\react-native\node_modules\promise\setimmediate\core.js:45:6 in tryCallTwo
  • node_modules\react-native\node_modules\promise\setimmediate\core.js:200:22 in doResolve
  • node_modules\react-native\node_modules\promise\setimmediate\core.js:66:11 in Promise
  • node_modules\regenerator-runtime\runtime.js:188:15 in callInvokeWithMethodAndArg
  • node_modules\regenerator-runtime\runtime.js:211:38 in enqueue
  • node_modules\regenerator-runtime\runtime.js:238:8 in exports.async
  • node_modules\expo-ads-admob\build\AdMobInterstitial.js:17:15 in
  • node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch
  • node_modules\regenerator-runtime\runtime.js:293:29 in invoke
  • node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch
  • node_modules\regenerator-runtime\runtime.js:154:27 in invoke
  • node_modules\regenerator-runtime\runtime.js:164:18 in PromiseImpl.resolve.then$argument_0
  • node_modules\react-native\node_modules\promise\setimmediate\core.js:37:13 in tryCallOne
  • node_modules\react-native\node_modules\promise\setimmediate\core.js:123:24 in setImmediate$argument_0
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:130:14 in _callTimer
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:181:14 in _callImmediatesPass
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:441:30 in callImmediates
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:387:6 in __callImmediates
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:135:6 in __guard$argument_0
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:364:10 in __guard
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:134:4 in flushedQueue
  • [native code]:null in flushedQueue
  • [native code]:null in invokeCallbackAndReturnFlushedQueue

Deivesilvaka avatar Dec 27 '20 16:12 Deivesilvaka