用於admob siteAndroid的AdMob聯播沒有足夠的空間來展示廣告
這裏提供的代碼是我的XML
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_img"
android:orientation="vertical"
android:id="@+id/atozlayout"
>
<GridView
android:id="@+id/gridView1"
android:numColumns="auto_fit"
android:gravity="center"
android:columnWidth="55dp"
android:stretchMode="columnWidth"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
>
</GridView>
</LinearLayout>
但logcat的顯示 E /廣告(4244):沒有足夠的空間來顯示廣告!想要:< 480,75>,具有:< 800,0>
似乎佈局正在產生問題。請建議修復方法。非常感謝。
是的,我正在編程adtrop ...可以請你張貼片段使用XML的地方? – RDX 2013-03-22 20:50:08
用示例更新。 – 2013-03-22 20:53:13
非常感謝這真的很棒! b/w可以解釋ds的要求:testDevices =「TEST_EMULATOR,TEST_DEVICE_ID」。我們需要在部署應用程序之前刪除它們嗎?很多謝謝 – RDX 2013-03-22 20:55:56