问题描述
我正在使用DoubleClick在我的Android应用程序中设置广告,但无法显示最终广告,有人可以帮助我吗?
I'm setting an ad to my Android application using DoubleClick and can't manage to show the final ad, can someone help me?
当我通过添加".addTestDevice(" xxx ...)"来测试广告时,我得到了测试广告,但是当我删除此行时,出现了以下错误:
When I test an ad by adding ".addTestDevice("xxx...")" I get the test ad but when I remove this line I get the following error :
广告:无法加载广告:3
W/Ads: Failed to load ad: 3
我将广告设置为:
PublisherAdRequest adRequest = new PublisherAdRequest.Builder().build();
mPublisherAdView.loadAd(adRequest);
我的PublisherView看起来像这样:
And my publisherView look like this :
<com.google.android.gms.ads.doubleclick.PublisherAdView
android:id="@+id/pronostics_ad"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
ads:adSize="BANNER"
ads:adUnitId="@string/ad_unit_pronostic">
</com.google.android.gms.ads.doubleclick.PublisherAdView>
有什么问题吗?
首先感谢您的回答.
推荐答案
根据文档您将收到以下错误代码:
As per the Documentation you are getting the following error code:
广告请求成功,但由于缺少广告请求,未返回任何广告 广告资源.
The ad request was successful, but no ad was returned due to lack of ad inventory.
恒定值:3
基于帖子 onFailedToReceiveAd -广告请求成功,但由于将admob与adwhirl结合使用时,由于缺少广告资源而没有广告退回:
您的填充率较低的另一个原因是您没有 已启用AdSense补余功能,或者您过滤掉了一些广告.查看 您的应用程序设置,看是否是这种情况.
Another reason your fill rate may be low is that you don't have AdSense backfill enabled, or you have filtered out some ads. Check your app settings to see if that is the case.
这篇关于加载广告失败:3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!