好吧,我在市场上上传了一个应用程序,但广告只显示在平板电脑上,而不是手机上。但是后来我将手机倾斜为横向而不是纵向并且广告弹出?我不明白为什么这是我的 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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/blue_final2"
>
<com.google.ads.AdView android:id="@+id/ad"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="ID"
ads:loadAdOnCreate="true"
ads:adSize="BANNER"
/>
<ScrollView android:layout_weight="30"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="9" >
<ImageButton
android:id="@+id/ibOne"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
android:src="@drawable/one"
android:background="@null"
android:layout_marginTop="60dp" />
<ImageButton
android:id="@+id/ibTwo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
android:src="@drawable/two"
android:background="@null"
android:layout_marginTop="60dp"/>
<ImageButton
android:id="@+id/ibThree"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
android:src="@drawable/three"
android:background="@null"
android:layout_marginTop="60dp" />
</LinearLayout>
<TextView
android:id="@+id/textView1"
android:padding="30dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Click on the picture you like the most and see your result!"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@android:color/white" />
</LinearLayout>
</ScrollView>
</LinearLayout>