2011-09-20 77 views
0

我那裏有以下XML代碼一個非常基本的Android活動和權限來訪問互聯網/網絡狀態在我的清單,但IM仍然得到以下錯誤:問題越來越AdMob廣告設置

09-20 15: 58:00.896:WARN/Ads(748):XML佈局中的adSize參數無效:-1。默認爲BANNER。 09-20 15:58:00.906:錯誤/廣告(748):AdView缺少必需的XML屬性adUnitId。

繼承人我的xml:

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" 
      android:orientation="vertical" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent"> 
    <com.google.ads.AdView android:id="@+id/adView" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        ads:adUnitId="a14e7524ca3db03" 
        ads:adSize="BANNER" 
        ads:loadAdOnCreate="true"/> 

回答