Google admob未显示。 我使用的是Android工作室。我首先尝试android studio内置的广告活动功能 - 横幅广告和插页式广告(新项目>新AdActivity),但它不会向我展示广告。
之后我尝试了许多来自互联网的广告项目示例下载并试用,但没有人可以向我展示广告。
我不知道为什么?
logcat的:
10-02 13:29:45.082 30269-30413/com.example.materialwallpaper W/art: Long monitor contention event with owner method=void java.lang.Object.wait!(long, int) from Object.java:4294967294 waiters=0 for 1.940s
10-02 13:29:46.962 30269-30447/com.example.materialwallpaper I/Ads: No fill from ad server.
10-02 13:29:46.963 30269-30269/com.example.materialwallpaper I/Ads: Scheduling ad refresh 60000 milliseconds from now.
10-02 13:29:46.964 30269-30269/com.example.materialwallpaper W/Ads: Failed to load ad: 3
10-02 13:30:47.029 30269-30269/com.example.materialwallpaper I/Ads: Starting ad request.
10-02 13:30:47.030 30269-30269/com.example.materialwallpaper I/Ads: Use AdRequest.Builder.addTestDevice("B3EEABB8EE11C2BE770B684D95219ECB") to get test ads on this device.
10-02 13:30:47.030 30269-30269/com.example.materialwallpaper I/Ads: Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
10-02 13:30:47.766 30269-31344/com.example.materialwallpaper I/Ads: No fill from ad server.
10-02 13:30:47.767 30269-30269/com.example.materialwallpaper I/Ads: Scheduling ad refresh 60000 milliseconds from now.
10-02 13:30:47.767 30269-30269/com.example.materialwallpaper W/Ads: Failed to load ad: 3
答案 0 :(得分:0)
这个错误是图,兄弟。请尝试以下方法:
如果您的应用支持专为家庭设计。
Bundle extras = new Bundle(); extras.putBoolean(“is_designed_for_families”,true);
AdRequest request = new AdRequest.Builder() .addNetworkExtrasBundle(AdMobAdapter.class,extras) .build();
更改应用包名称或/和addid(可能是您被禁止)
更改与Internet的和/或IP连接
等一下。 (如果你最近发了id)
request.setTesting(真);
这些问题可以诚实地写出to the support admob。