我的应用显示测试广告,但没有真实广告(AdMob Google)

时间:2017-12-07 10:09:14

标签: android admob

我使用Android Studio创建了一个应用。完成后,我添加了广告,然后将其发布到Play商店。它大约在10天内工作正常。谷歌误解了我的应用程序(我已经支付了他们的版权),所以我上诉了他们恢复了它。当应用程序不在Play商店(3天)时,广告仍显示在我的手机上。在他们恢复我的应用程序后的几天,广告停止显示,直到现在。

我尝试了一切,ID单位写得很好。我创建了一个新的ID横幅,它是一样的。出现测试广告但不是真实广告。

logcat位于下方(使用word&#34过滤; gms"广告库)。

PDT:我有依赖性和所有需要的东西。请记住,它运作良好,突然没有。

12-07 10:18:56.726 22503-22097/? W/ctxmgr: [EventHandler]Dropping runnable, delay=9223370524216439082, runnable=dbe@d4e7bc, workInfo=pkg=com.google.android.gms, lbl=FenceScheduler, start=unspec, stop=unspec
12-07 10:18:56.977 32342-32431/? E/GmsUtils: Failed to connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
12-07 10:18:59.854 32342-32444/? E/GmsUtils: Failed to connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
12-07 10:19:01.425 32092-32092/? W/Finsky: [1] com.google.android.finsky.wear.al.run(9): Dropping command=send_installed_apps due to Gms not connected
12-07 10:19:36.226 22480-25542/? I/Icing: IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=people serviceId=32
12-07 10:23:24.579 1410-2604/? W/ActivityManager: Unable to start service Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms } U=999: not found
12-07 10:23:24.582 2267-2318/? E/GmsClient: unable to connect to service: com.google.android.gms.measurement.START on com.google.android.gms

2 个答案:

答案 0 :(得分:0)

我建议您先检查您的AdMob帐户。您的旧广告单元ID可能已被撤销,您可能需要创建一个新广告单元。

之后,您可以检查XML布局中是否有正确的adUnitId(不是测试ID)。

    <com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto"
        ads:adSize = "BANNER"
        ads:adUnitId = "ca-app-pub-###/###"/>

答案 1 :(得分:0)

谢谢你的回答。最后,这是AdMob帐户的问题。如果测试ID正常,并且常规Id否,则会导致帐户出现问题(计算您没有正确使用TestDevice或ID)