我正在尝试至少 6 小时如何为 admob 横幅广告。 横幅仅在 activity_main.xml 的图形 View 中可见。那里只显示空白文本:Google 提供的广告。 如果我在真实设备上启动它,什么都没有出现,甚至连一个盒子都没有,你不能点击它。 我的 LogCat 输出:
01-21 18:59:26.768: I/Ads(26882): Use AdRequest.Builder.addTestDevice("7DC393B415BE44EB0BBB77E514CE33C3") to get test ads on this device.
01-21 18:59:26.778: I/Ads(26882): Starting ad request.
01-21 18:59:26.898: W/(26882): init htc webcore
01-21 19:00:27.168: W/Ads(26882): Timed out waiting for ad response.
01-21 19:00:27.178: I/Ads(26882): Scheduling ad refresh 60000 milliseconds from now.
01-21 19:00:27.183: W/Ads(26882): Failed to load ad: 2
01-21 19:01:27.208: I/Ads(26882): Starting ad request.
01-21 19:02:27.363: W/Ads(26882): Timed out waiting for ad response.
01-21 19:02:27.413: I/Ads(26882): Scheduling ad refresh 60000 milliseconds from now.
01-21 19:02:27.418: W/Ads(26882): Failed to load ad: 2
01-21 19:01:27.363: E/GooglePlayServicesUtil(26882): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
我确信我包含的所有内容都是正确的,但如果您有任何想法我做错了什么,请直说。
所以我希望任何人都可以帮助我解决 admob。
最佳答案
这是一篇旧文章,但谁知道呢,它可能会对某些人有所帮助。
禁用您的广告拦截器
是的,这种情况很讽刺,但这并不是第一个想到的事情。
关于java - admob 不工作是因为(我认为)google play 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21269998/