AdMob窃取3个像素?

时间:2012-01-19 21:16:52

标签: java android layout

我有这个布局

<LinearLayout android:id="@+id/mainlayout"  android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads">
  <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent"  android:layout_weight="1">
    <TableLayout android:id="@+id/tableLayout1" android:layout_width="fill_parent" adroid:layout_height="wrap_content"  android:gravity="center_horizontal" >
     ...
     ...
    </TableLayout>
  </ScrollView>

广告添加如下

LinearLayout mainLayout = (LinearLayout)findViewById( R.id.mainlayout );
AdView adView = new AdView(...);
LinearLayout.LayoutParams llParam = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.WRAP_CONTENT,nearLayout.LayoutParams.WRAP_CONTENT);
llParam.gravity = Gravity.CENTER_HORIZONTAL ;               
mainLayout.addView(adView, llParam);

我真的无法弄清楚为什么广告下面有3个像素(在图片中显示为薄的白色检查器)。我认为tehre对此毫无疑问,但我在图像中添加了黑白图案以突出我正在谈论的区域。原来它全黑了。

enter image description here

1 个答案:

答案 0 :(得分:0)

IIRC,许多广告公司将这些“像素”添加到他们的形象中,以保持广告经销商的诚实。

许多公司都会销售此服务(example):他们会为您提供一个像素的图片以添加到您的广告中,然后他们可以跟踪(独立于AdMob)加载广告的人数计算他们要求1x1像素的次数。这样,广告客户就可以确保AdMob不会夸大广告的观看次数,从而从广告客户那里获得更多收益。

这可能不是您特定情况下的原因 - 但这听起来像是一个合理的解释。