测试奖励广告未显示 - 广告加载失败:LoadAdError(代码:3,域:com.google.android.gms.ads,消息:无广告配置.) [英] Test Rewarded ad not displaying - Ad failed to load: LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config.)

查看:24
本文介绍了测试奖励广告未显示 - 广告加载失败:LoadAdError(代码:3,域:com.google.android.gms.ads,消息:无广告配置.)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前无法展示测试激励广告.我正在使用 中提供的激励广告示例广告单元 ID文档:ca-app-pub-3940256099942544/5224354917.

I'm currently unable to display a test rewarded ad. I am using the rewarded ad Sample ad unit ID provided in the doc: ca-app-pub-3940256099942544/5224354917.

我收到错误代码 3,根据 文档:

I am getting error code 3, which according to the documentation:

广告请求成功,但由于缺少广告资源而没有返回任何广告.

The ad request was successful, but no ad was returned due to lack of ad inventory.

哪个似乎没有意义,因为这是一个测试广告,应该始终可用?

Which doesn't seem to make sense as this is a test ad, and should always be available?

完整错误:

广告加载失败:LoadAdError(代码:3,域:com.google.android.gms.ads,消息:无广告配置.)=>无广告配置.

Ad failed to load: LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config.) => No ad config.

作为参考,我还打开了一个问题 在带有完整日志输出的 googleads-mobile-flutter 存储库上.

For reference, I've also opened an issue on the googleads-mobile-flutter repo with the full log outputs.

知道为什么我连测试广告都无法获取吗?

Any ideas why I wouldn't be able to fetch even a test ad?

如果您最近能够使用此插件成功展示测试激励广告或真实激励广告,请留下评论.

Also please leave a comment if you've been able to successfully display test rewarded ads or real rewarded ads with this plugin lately.

推荐答案

更新:该问题已自行解决,无需对代码进行任何更改.我只能假设 Google AdMob 方面存在问题.

UPDATE: The issue has resolved itself without any changes to the code. I can only assume that there was an issue on Google AdMob's side.

尽管如此,下面的答案仍然允许在示例广告单元不工作时测试广告.

Nonetheless, the answer below still allowed to test ads while the sample ad unit was not working.

如果您到达这里是因为此处提供的示例广告不起作用,请参阅此答案的其余部分以获取替代解决方案.

If you get here because the sample ad provided here does not work, see the rest of this answer for an alternative solution.

与示例激励广告单元 ca-app-pub-3940256099942544/5224354917 相比,使用真实的广告单元似乎有效.谢谢@Kurt Lee Kalbus

It seems that using a real ad unit works, as opposed to the sample rewarded ad unit ca-app-pub-3940256099942544/5224354917. Thank you @Kurt Lee Kalbus

我不确定为什么示例广告单元目前不起作用,但它似乎是来自服务器的错误.

I am not sure why the sample ad unit doesn't work at the moment, but it seems like an error from the server.

如果您需要立即测试激励广告而不投放真实广告:

If you need to test rewarded ads right now, without serving real ads:

  • 来自 Android 模拟器:使用真正的激励广告单元.这将投放一个测试广告.根据文档:Android 模拟器会自动配置为测试设备."
  • from an Android emulator: use a real rewarded ad unit. This will serve a test ad. As per the docs: "Android emulators are automatically configured as test devices."

否则,在使用真正的广告单元之前,您应该将您的设备添加到您的测试设备列表中.请参阅在 AdMob 用户界面中添加您的测试设备

Otherwise, you should add your device to your list of test devices before using a real ad unit. See Add your test device in the AdMob UI

这篇关于测试奖励广告未显示 - 广告加载失败:LoadAdError(代码:3,域:com.google.android.gms.ads,消息:无广告配置.)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆