admob广告不再有效

时间:2013-12-12 21:19:43

标签: java android admob ads

我几个月内没有更新我的应用程序,当我尝试浏览广告时不加载。这是logcat显示的内容:

12-12 16:12:54.975: INFO/Ads(23032): Request scenario: Online server request.
    12-12 16:12:55.526: ERROR/Ads(23032): AdLoader can't parse gWhirl server configuration.
12-12 16:12:55.526: INFO/Ads(23032): The following was caught and handled:
    org.json.JSONException: No value for ad_networks
    at org.json.JSONObject.get(JSONObject.java:354)
    at org.json.JSONObject.getJSONArray(JSONObject.java:544)
    at com.google.ads.c.a(SourceFile:102)
    at com.google.ads.internal.c.b(SourceFile:994)
    at com.google.ads.internal.c.run(SourceFile:902)
    at java.lang.Thread.run(Thread.java:864)
12-12 16:12:55.526: INFO/Ads(23032): onFailedToReceiveAd(There was an internal error.)

是什么导致这种情况发生?

1 个答案:

答案 0 :(得分:0)

上个月左右,Admob发生了很多变化。

其中一个主要变化是通过Google Play服务库分发Admob SDK,以及更改包和随之更改的界面。建议你看看https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals

另一个是迁移到新的Admob信息中心,以及您应该在广告中添加AdUnitId的更改。它现在看起来像'ca-pub-XXXXXXXXX-YYYYYYYY'

但话虽如此,我仍然有应用程序尚未进行更改,他们继续运行得很好。如果您已经在使用Google Play服务并对其进行了升级,那么您可能处于一种奇怪的状态。如果是这种情况,那么我强烈建议您将Admob向前滚动以使用GPS类。