我已经跟随所有the necessary steps在我的Android应用程序中使用Admob添加横幅。
我已将设备注册为测试设备,横幅显示如下:
然而,在Google Play上发表后5天,我得到了这个:
在我的测试设备中,广告永远不会显示:
有人知道为什么展示率如此之低?
我的安卓代码:
// CREATING a Smart Banner View
adView = new AdView(this);
adView.setAdUnitId("ca-app-pub-xxxxxxxxxxx");
adView.setAdSize(AdSize.FULL_BANNER);
adView.refreshDrawableState();
AdRequest adRequest = new AdRequest.Builder().addTestDevice("xxxxxxxxx").build();
adView.loadAd(adRequest);
frameLayout.addView(adView, adViewLayoutParams);
编辑:
这是日志(在没有addTestDevice方法的情况下调用广告时)
08-05 10:30:51.244: I/Ads(31127): No fill from ad server.
08-05 10:30:51.244: I/Ads(31127): Scheduling ad refresh 60000 milliseconds from now.
08-05 10:30:51.244: W/Ads(31127): Failed to load ad: 3
08-05 10:31:51.300: I/Ads(31127): Starting ad request.
08-05 10:31:51.302: I/Ads(31127): Use AdRequest.Builder.addTestDevice("xxxxxxxxxxxxxxxxxxxx") to get test ads on this device.
08-05 10:31:51.313: I/Ads(31127): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
08-05 10:31:51.322: E/GooglePlayServicesUtil(31127): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-05 10:31:51.369: E/GooglePlayServicesUtil(31127): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-05 10:31:51.411: E/GooglePlayServicesUtil(31127): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-05 10:31:51.417: E/GooglePlayServicesUtil(31127): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-05 10:31:51.881: I/Ads(31127): No fill from ad server.
08-05 10:31:51.883: I/Ads(31127): Scheduling ad refresh 60000 milliseconds from now.
08-05 10:31:51.883: W/Ads(31127): Failed to load ad: 3
08-05 10:32:51.935: I/Ads(31127): Starting ad request.
08-05 10:32:51.937: I/Ads(31127): Use AdRequest.Builder.addTestDevice("xxxxxxxxxxxxxxxxxxxx") to get test ads on this device.
08-05 10:32:51.951: I/Ads(31127): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
08-05 10:32:51.964: E/GooglePlayServicesUtil(31127): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-05 10:32:52.007: E/GooglePlayServicesUtil(31127): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-05 10:32:52.058: D/dalvikvm(31127): GC_CONCURRENT freed 1010K, 45% free 6137K/11120K, paused 4ms+7ms, total 46ms
08-05 10:32:52.080: E/GooglePlayServicesUtil(31127): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-05 10:32:52.088: E/GooglePlayServicesUtil(31127): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-05 10:32:52.587: I/Ads(31127): No fill from ad server.
08-05 10:32:52.588: I/Ads(31127): Scheduling ad refresh 60000 milliseconds from now.
08-05 10:32:52.588: W/Ads(31127): Failed to load ad: 3
谢谢
答案 0 :(得分:2)
见
admob中的请求表示您的应用广告被调用的次数(链接命中)
admob中的展示表示您的被叫广告向用户显示的次数
admob中的点击次数表示用户点击显示的广告的次数
现在在您的情况下请求 3527 表示您的广告被调用了3527次,但在此期间只发生一次展示意味着只有一个广告会显示给您的应用用户
并且没有点击计数器意味着没有任何用户点击它
现在你需要等待48小时来更新数据(asper admob政策)但是在你的情况下已经有5天完成了,所以根据我的理解可能在你的代码中存在你正在使用测试模式的错误
在xml ADVIEW标签中你提到TEST模式所以它处于测试模式而不是真实模式我不确定但你可能会感谢它希望它能帮到你
答案 1 :(得分:0)
很简单,没有广告可以展示。
您正在发出广告请求。他们收到的回复没有错误。但回应是“没有广告显示”。
当您在所使用的广告网络无法提供良好服务的区域投放广告时,可能会出现这种情况。广告填写似乎在某种程度上取决于您拥有的流量。因此,如果您每天只收到几百个请求,则可能无法访问很多/很多广告。
你可以做两件事来纠正:
答案 2 :(得分:0)
有时由于您的应用程序的潜力而发生。 尝试访问Admob中介组中的某些广告网络以获得更多的展示次数。