I cannot fix this error for the life of me. I looked at Google and around, and no solutions worked. My ad seems to work fine on Android 1.5 and 1.6, but above version 2 I get this error.
I placed my ad inside LinearLayout, which is the first scroll arrangement.
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:orientation="vertical" android:background="@drawable/bg_wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content"> <LinearLayout android:orientation="vertical" android:id="@+id/drillactivity" android:layout_width="fill_parent" android:layout_gravity="bottom" android:layout_height="340dp"> <com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adUnitId="my id goes here" ads:adSize="BANNER" ads:loadAdOnCreate="true"/>
I do not use any code in my class to declare. I prefer to do this only through xml.
user427390
source share