奖励视频广告服务器未填满。无法加载? Android

时间:2018-08-03 11:41:28

标签: android admob ads reward

我正在尝试分批实施admob广告,但是已经过去了一个月,我仍然遇到错误3(没有广告可填充)。

我尝试使用新ID,但仍收到相同错误,测试广告运行正常。 日志猫:

 
    08-03 16:59:21.653 9892-10265/? W/AdvertisingIdClient: Error while reading from SharedPreferences
    java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
    at android.app.ContextImpl.checkMode(ContextImpl.java:2134)
    at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:354)
    at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:349)
    at 
 com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(Unknown Source)
    at com.duapps.ad.base.GoogleAdvertisingIdHelper.getAdIdNormal(GoogleAdvertisingIdHelper.java:46)
        at com.duapps.ad.base.GoogleAdvertisingIdHelper.getAdId(GoogleAdvertisingIdHelper.java:33)
        at com.duapps.ad.base.HttpParamsHelper.commonParams(HttpParamsHelper.java:118)
        at com.duapps.ad.stats.ToolStatsCore.pushToServer(ToolStatsCore.java:370)
        at com.duapps.ad.stats.ToolStatsCore.report(ToolStatsCore.java:325)
        at com.duapps.ad.stats.ToolStatsCore.handleMessage(ToolStatsCore.java:217)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:154)
        at android.os.HandlerThread.run(HandlerThread.java:61)
        08-03 16:59:24.873 26224-26246/? D/DynamitePackage: Instantiating 
        com.google.android.gms.ads.adshield.ChimeraAdShieldCreatorImpl
        08-03 16:59:25.489 25315-25315/com.nsdeveloper.apppromotion I/Ads: 
        Starting ad request.
        08-03 16:59:25.489 25315-25315/com.nsdeveloper.apppromotion I/Ads: Use 
       AdRequest.Builder.addTestDevice("10C9D896CF812C194BD949D82F766C9B") 
        to get test ads on this device.
        08-03 16:59:25.850 25315-25332/com.nsdeveloper.apppromotion I/Ads: No fill from ad server.
        08-03 16:59:25.850 25315-25315/com.nsdeveloper.apppromotion W/Ads: Failed to load ad: 3
 

我正在分段实施广告,因此在上下文中我传递了getActivity(): 08-03 16:59:21.653 9892-10265/? W/AdvertisingIdClient: Error while reading from SharedPreferences java.lang.SecurityException: MODE_WORLD_READABLE no longer supported at android.app.ContextImpl.checkMode(ContextImpl.java:2134) at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:354) at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:349) at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(Unknown Source) at com.duapps.ad.base.GoogleAdvertisingIdHelper.getAdIdNormal(GoogleAdvertisingIdHelper.java:46) at com.duapps.ad.base.GoogleAdvertisingIdHelper.getAdId(GoogleAdvertisingIdHelper.java:33) at com.duapps.ad.base.HttpParamsHelper.commonParams(HttpParamsHelper.java:118) at com.duapps.ad.stats.ToolStatsCore.pushToServer(ToolStatsCore.java:370) at com.duapps.ad.stats.ToolStatsCore.report(ToolStatsCore.java:325) at com.duapps.ad.stats.ToolStatsCore.handleMessage(ToolStatsCore.java:217) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:154) at android.os.HandlerThread.run(HandlerThread.java:61) 08-03 16:59:24.873 26224-26246/? D/DynamitePackage: Instantiating com.google.android.gms.ads.adshield.ChimeraAdShieldCreatorImpl 08-03 16:59:25.489 25315-25315/com.nsdeveloper.apppromotion I/Ads: Starting ad request. 08-03 16:59:25.489 25315-25315/com.nsdeveloper.apppromotion I/Ads: Use AdRequest.Builder.addTestDevice("10C9D896CF812C194BD949D82F766C9B") to get test ads on this device. 08-03 16:59:25.850 25315-25332/com.nsdeveloper.apppromotion I/Ads: No fill from ad server. 08-03 16:59:25.850 25315-25315/com.nsdeveloper.apppromotion W/Ads: Failed to load ad: 3

MobileAds.initialize(getActivity(), "xxxxxxxxxxxxxxxxxxx");
mRewardedVideoAd = MobileAds.getRewardedVideoAdInstance(getActivity());
    mRewardedVideoAd.setRewardedVideoAdListener(rewardAdListener);
    loadRewardedAdVideo();
RewardVideoAdListener  MobileAds.initialize(getActivity(), "xxxxxxxxxxxxxxxxxxx"); mRewardedVideoAd = MobileAds.getRewardedVideoAdInstance(getActivity()); mRewardedVideoAd.setRewardedVideoAdListener(rewardAdListener); loadRewardedAdVideo();

2 个答案:

答案 0 :(得分:0)

尝试在测试模式下运行广告,如果它会向您显示错误,则您的代码一定是错误的,请阅读admob实施Google docs for video ads的文档

我注意到您可能会尝试在公共模式下阅读共享的偏好,这是在私有模式下编写的,这就是为什么出现错误的原因。

如果您在测试模式下看到广告,则可能有两件事,一是您的应用程序ID可能不正确,二是您所在的区域没有像这样的奖励广告,所以Google无法填充广告

答案 1 :(得分:0)

我遇到了同样的问题-我在网上阅读了内容,谷歌稍后可以决定是否打开您的广告。

有时,由于开发人员点击广告,他们关闭了广告。过去许多开发人员都这样做,因此Google对此似乎很谨慎。

最后,我没有解决Google的问题-我也写信给他们的支持,并在Facebook网络受众群体中注册-就是一样,只是facebook。现在我得到他们。还有一个系统可以让您注册测试设备-这意味着-通过手机的ID,然后您还可以点击广告,这样就不会有问题-因为它现在是测试设备。

FB Rewarded Video