gpt4 book ai didi

android - Admob:没有 "impression"(安卓)

转载 作者:行者123 更新时间:2023-11-29 21:03:56 25 4
gpt4 key购买 nike

我关注了所有 the necessary steps使用 Admob 在我的 android 应用程序中添加横幅。

我已经将我的设备注册为测试设备,横幅显示如下:

game over screen

但是,在 Google Play 上发布 5 天后,我明白了:

admob screen

在我的测试设备中,广告从不显示:

enter image description here

有人知道为什么印象率这么低吗?

我的安卓代码:

 // 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

谢谢

最佳答案

admob 中的

请求 表示您在应用中转换的广告被调用的次数(链接命中)

admob 中的

印象 是指您调用的广告向用户显示的次数

clicks 在 admob 中是指用户点击您显示的广告的次数

现在在您的案例中,请求是 3527 表示您的广告被调用了 3527 次,但在此期间只有一次展示发生意味着只有一个广告会显示给您的应用用户

没有点击计数器意味着没有任何用户点击它

现在您需要等待 48 小时才能更新数据(根据 admob 政策),但在您的情况下已经完成了 5 天,因此根据我的理解,您的代码中可能存在错误,例如您正在使用测试模式

在 xml ADVIEW 标签中你提到了 TEST 模式所以它处于测试模式而不是真实模式我不确定但你可以检查它希望它能帮助你

关于android - Admob:没有 "impression"(安卓),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25112850/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com