gpt4 book ai didi

android - Admob 不断返回 AdRequest.ERROR_CODE_NO_FILL?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:11:17 24 4
gpt4 key购买 nike

将我的 Admob 迁移到 Google Play 服务后。我总是得到这个错误代码

AdRequest.ERROR_CODE_NO_FILL

解释如下:

ERROR_CODE_NO_FILL The ad request was successful, but no ad was returned due to lack of ad inventory.

而且我认为它实现成功,我等了很长时间(3 天)但没有广告返回,而是空白 T.T

enter image description here

这是我的代码详情:

    <LinearLayout
android:id="@+id/ad_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"

</LinearLayout>

adLayout = (LinearLayout) view.findViewById(R.id.ad_layout);

    adView = new AdView(getActivity());
adView.setAdUnitId(Config.AD_PUBLISH_KEY);
adView.setAdSize(AdSize.SMART_BANNER);
adLayout.addView(adView);
AdRequest adRequest = new AdRequest.Builder()
.build();
adView.loadAd(adRequest);
03-09 12:46:50.765: I/Ads(2453): Use AdRequest.Builder.addTestDevice("28F0E937BC5EDD2ED24E3F7540AE8251") to get test ads on this device.
03-09 12:46:50.765: I/Ads(2453): Starting ad request.
03-09 12:46:50.867: W/ResourceType(2453): getEntry failing because entryIndex 13 is beyond type entryCount 8
03-09 12:46:50.867: W/ResourceType(2453): Failure getting entry for 0x7f0c000d (t=11 e=13) in package 0 (error -2147483647)
03-09 12:46:50.867: E/GooglePlayServicesUtil(2453): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
03-09 12:46:51.265: I/Ads(2453): No fill from ad server.
03-09 12:46:51.265: W/Ads(2453): Failed to load ad: 3

它看起来不错但没有广告返回,但是当我将 Admob 代码提取到新的干净的 Android 项目时,它工作正常,我认为这是配置问题,非常感谢任何帮助:D

最佳答案

感谢您的关注和帮助。

我发现如果我修改package id, Ads show, 可能是被加入了Admob blacklist, 所以没有返回任何Ads, 我也附上了my code为了证明我的说法,再次感谢大家

大陈

关于android - Admob 不断返回 AdRequest.ERROR_CODE_NO_FILL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22006719/

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