为什么AdMob的返回无填充 [英] Why does AdMob return NO FILL

查看:3339
本文介绍了为什么AdMob的返回无填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Android应用程序的AdMob的观点,但我无法得到任何的广告到应用程序。

I'm using an AdMob view in an android app, but I'm unable to get any ad into the app.

有关的参考,我已经添加了查看到ListView丹代尔<作为一个解释href="http://blog.uncommons.org/2011/05/09/embedding-admob-adverts-in-android-listviews/">here

For reference, I've added the view to a ListView as explained by Dan Dyer here

编辑: 我使用GoogleAdMobAdsSdk-4.1.1。谷歌对AdMob的广告SDK的4.1.0版的发行说明说:

I'm using GoogleAdMobAdsSdk-4.1.1. The release notes of Google AdMob Ads SDK for version 4.1.0 says:

... - 增加了对AdRequest.addTestDevice()和AdRequest.setTestDevices支持()。需要注意的是AdRequest.setTesting()现在去precated。 ...

"... - Added support for AdRequest.addTestDevice() and AdRequest.setTestDevices(). Note that AdRequest.setTesting() is now deprecated. ..."

这是怎样的广告插入到我的ListView:

This is how the ad is inserted to my ListView:

public View getView(int position, View convertView, ViewGroup parent) {

  // Some other code
  // Reusing convertView etc.

  AdView adView = 
     new AdView((Activity) getContext(), AdSize.BANNER, 
     "/xxxxxx/ca-pub-xxxxxxx/my_ad_unit");
  for (int i = 0; i < adView.getChildCount(); i++) {
    adView.getChildAt(i).setFocusable(false);
  }
  adView.setFocusable(false);
  float density = getContext().getResources().getDisplayMetrics().density;
  int height = Math.round(50 * density);
  AbsListView.LayoutParams params = new AbsListView.LayoutParams(
    AbsListView.LayoutParams.FILL_PARENT, height);

  adView.setLayoutParams(params);
  AdRequest request = new AdRequest();
  request.addTestDevice("xxxxxxxxxxxxxxxxx");
  adView.loadAd(request);

  // other stuff
  // returning convertView
}

我还添加了一个AdListener到AD浏览报,并在每一个loadAd的onFailedToReceiveAd回调方法被调用:

I've also added an AdListener to the adview, and on every loadAd, the onFailedToReceiveAd callback method is called:

public void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {
  Log.d(TAG, "AdMob in list failed to receive ad: " + arg1.name());
}

在logcat中我得到这个消息:

In logcat I get this message:

08-17 15:22:18.065: AdMob in list failed to receive ad: NO_FILL

谁能告诉我这是什么错误code意味着什么?

Can anyone tell me what this errorcode means?

推荐答案

要回答这个问题:

NO_FILL从AdMob的返回时,有没有留下来盘点 服务于AdMob的/ DFP后端。

NO_FILL is returned from AdMob when there is no inventory left to serve in the AdMob/DFP backend.

首先,这意味着我被要求尺寸AXB的广告,但后端没有广告这种规模的左侧显示。重要的是,你请求大小已经离开在的AdMob / DFP的后端系统库存

First of all this meant I was requesting an ad of size AxB, but the backend had no ads of this size left to show. It is important that the size you request has inventory left in the backend systems of AdMob/DFP.

二,他们的API指出,第一次请求广告到一个特定的广告单元,你应该会长达两分钟的广告开始投放前。我不知道这是否是因为我不是驻扎在美国,但这些2分钟往往成为至少20分钟,如果不是几个小时我的。

Second, their API states that the first time you request an ad to a specific ad unit, you should expect up to two minutes before the ads start serving. I don't know if it is because I am not stationed in the US, but these two minutes often becomes at least 20 minutes if not several hours for me.

这篇关于为什么AdMob的返回无填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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