加载广告失败:3 [英] failed to load ad : 3

查看:709
本文介绍了加载广告失败:3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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 :

广告:无广告服务器填充

W/Ads: No fill from ad server

广告:无法加载广告: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>

有什么问题吗?

首先感谢您的回答.

推荐答案

广告:无法加载广告:3

W/Ads: Failed to load ad: 3

根据文档您将收到以下错误代码:

As per the Documentation you are getting the following error code:

公共静态最终int ERROR_CODE_NO_FILL

广告请求成功,但由于缺少广告请求,未返回任何广告 广告资源.

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

恒定值:3

基于帖子 onFailedToReceiveAd -广告请求成功,但由于将admob与adwhirl结合使用时,由于缺少广告资源而没有广告退回:

如果遇到此错误,则您的代码是正确的.问题是 该AdMob并不总是有一个广告可为每个请求返回. 如果您刚刚注册了AdMob,则可能会发生这种情况 发布商ID,因为它需要一些时间和多次请求, 新的ID开始返回广告.

If you are getting this error, then your code is correct. The issue is that AdMob does not always have an ad to return for every request. This may happen particularly if you have just registered your AdMob publisher ID, as it takes some time and multiple requests before the new ID starts returning ads.

您的填充率较低的另一个原因是您没有 已启用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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆