Interstitial广告运行正常,经过两天的测试,它停止了工作。我有一个错误:Possible Unhandled Promise Rejection (id: 0): Error: Request Error: No ad to show from all configured ad networks
。此错误仅适用于Interstitial广告。我有AdMobBanner,但它运行得很好。对于这两种情况,我都使用来自https://developers.google.com/admob/ios/test-ads的测试ids。我试图创建不同的应用程序,但它是一样的。也尝试过用真正的广告,但又不起作用。它并不能同时在iOS和Android平台上运行。我的AdMob帐户不被禁止或显示任何警告信息。我使用的https://github.com/sbugert/react-native-admob代码如下:
AdMobInterstitial.setAdUnitID('ca-app-pub-3940256099942544/4411468910');
AdMobInterstitial.setTestDevices([AdMobInterstitial.simulatorId]);
AdMobInterstitial.requestAd().then(() => AdMobInterstitial.showAd());
就像我说的,它已经用了两天了。
发布于 2017-11-18 00:49:40
似乎有一个问题的间隙广告服务器,是导致这个问题,似乎是跨平台。它与无广告填充问题有关,甚至与测试广告有关。我在安卓系统上也遇到了同样的问题。和其他许多人一样,我已经用谷歌( Google )标记了这一点,他们已经做出了回应,并且在我们的谈话中,我们希望他们正在努力解决这个问题!
请继续关注这个线程,希望我们很快就能得到更新:谷歌AdMob论坛
发布于 2017-11-18 07:37:50
Try,
if (AdMobInterstitial.isLoaded() || AdMobInterstitial.isLoading()) {
AdMobInterstitial.showAd()
}
AdMobInterstitial.setTestDevices([AdMobInterstitial.simulatorId]);
这一行并检查。检查这两种情况。
https://stackoverflow.com/questions/47346403
复制相似问题