AdMob非页内广告停止了工作

问题描述 投票:1回答:2

插页式广告工作正常,经过两天的测试后,它停止了工作。我有错误: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的测试ID。我试图创建不同的应用程序,但它是相同的。也试过了真正的广告,但再次没有工作。它不适用于这两个平台 - 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());

正如我所说它工作了两天。

android ios react-native admob interstitial
2个回答
2
投票

插页式广告服务器似乎存在问题,导致此问题似乎是跨平台的。它与无广告填充问题有关,即使是测试广告也是如此。我在Android上遇到了同样的问题。像许多其他人一样,我已经向谷歌提出了这一点,他们已经做出回应,并且在我们发言时似乎正在努力,我们希望!

请继续关注这个主题,希望我们能尽快得到更新:Google AdMob Forum


0
投票
Try,
if (AdMobInterstitial.isLoaded() || AdMobInterstitial.isLoading()) {
  AdMobInterstitial.showAd()
}
  1. 添加以上行添加并检查。
  2. 删除AdMobInterstitial.setTestDevices([AdMobInterstitial.simulatorId]);这一行并检查。

检查两种情况。

© www.soinside.com 2019 - 2024. All rights reserved.