AdMob Interstitial 停止工作
AdMob Interstitial stopped working
Interstitial 广告正常工作,经过两天的测试后停止工作。我有错误:Possible Unhandled Promise Rejection (id: 0): Error: Request Error: No ad to show from all configured ad networks
。此错误仅适用于插页式广告。我有 AdMobBanner,但它运行良好。对于两者,我都使用 https://developers.google.com/admob/ios/test-ads. I have tried to create different app but it's the same. Also have tried with real ad but again not working. It's not working on both platform - iOS & Android. My AdMob account is not banned or showing any warning messages. I am using https://github.com/sbugert/react-native-admob 中的测试 ID,代码如下:
AdMobInterstitial.setAdUnitID('ca-app-pub-3940256099942544/4411468910');
AdMobInterstitial.setTestDevices([AdMobInterstitial.simulatorId]);
AdMobInterstitial.requestAd().then(() => AdMobInterstitial.showAd());
正如我所说,它已经工作了两天。
插页式广告服务器似乎存在问题,导致此问题似乎是跨平台的。它与无广告填充问题有关,即使是测试广告也是如此。我在 Android 上遇到了同样的问题。像许多其他人一样,我已经用 Google 标记了这个问题,他们已经做出回应并且似乎正在处理它,我们希望如此!
请继续关注此主题,希望我们能尽快得到更新:Google AdMob Forum
Try,
if (AdMobInterstitial.isLoaded() || AdMobInterstitial.isLoading()) {
AdMobInterstitial.showAd()
}
- 添加 上一行添加并勾选。
- 删除
AdMobInterstitial.setTestDevices([AdMobInterstitial.simulatorId]);
这一行并检查。
检查两种情况。
Interstitial 广告正常工作,经过两天的测试后停止工作。我有错误:Possible Unhandled Promise Rejection (id: 0): Error: Request Error: No ad to show from all configured ad networks
。此错误仅适用于插页式广告。我有 AdMobBanner,但它运行良好。对于两者,我都使用 https://developers.google.com/admob/ios/test-ads. I have tried to create different app but it's the same. Also have tried with real ad but again not working. It's not working on both platform - iOS & Android. My AdMob account is not banned or showing any warning messages. I am using https://github.com/sbugert/react-native-admob 中的测试 ID,代码如下:
AdMobInterstitial.setAdUnitID('ca-app-pub-3940256099942544/4411468910');
AdMobInterstitial.setTestDevices([AdMobInterstitial.simulatorId]);
AdMobInterstitial.requestAd().then(() => AdMobInterstitial.showAd());
正如我所说,它已经工作了两天。
插页式广告服务器似乎存在问题,导致此问题似乎是跨平台的。它与无广告填充问题有关,即使是测试广告也是如此。我在 Android 上遇到了同样的问题。像许多其他人一样,我已经用 Google 标记了这个问题,他们已经做出回应并且似乎正在处理它,我们希望如此!
请继续关注此主题,希望我们能尽快得到更新:Google AdMob Forum
Try,
if (AdMobInterstitial.isLoaded() || AdMobInterstitial.isLoading()) {
AdMobInterstitial.showAd()
}
- 添加 上一行添加并勾选。
- 删除
AdMobInterstitial.setTestDevices([AdMobInterstitial.simulatorId]);
这一行并检查。
检查两种情况。