0
이 질문은 전에 질문했을 수도 있지만 그 대답을 사용하여 문제를 해결할 수는 없습니다.Android Ads 누락 된 XML 속성
내 문제는 이클립스를 사용하여 레이아웃에 내 AdView를 추가 할 때 메시지가 나타납니다. 필수 XML 속성 인 "adSize"가 누락되었습니다.
이 나의 현재 활동의 XML입니다 :
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/content"
xmlns:ads= "http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:orientation="vertical" >
<android.support.v4.view.ViewPager
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pager"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="0.9"
android:background="@drawable/background">
</android.support.v4.view.ViewPager>
<com.google.android.gms.ads.AdView
xmlns:ads= "http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.1"
ads:adSize="BANNER"
ads:adUnitId="mycodehidden">
</com.google.android.gms.ads.AdView>
이 또한 내가이 프로그램을 실행할 때 표시에는 광고가 없다.