0

私は Eclipse で Android 用のアプリを開発していますが、この xml コードがページの下部に admob を表示するかどうか疑問に思っていました。

これをエミュレーターで起動しましたが、admob は表示されませんでしたが、コードが原因なのか、admob が表示されるまで約 2 分待たなければならないのかはわかりません。

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent" android:id="@+id/rltvLayout1"
android:layout_height="fill_parent">

    <WebView android:id="@+id/web_engine"
        android:layout_width="fill_parent" android:layout_height="fill_parent"
        android:fitsSystemWindows="true" />



        <com.google.ads.AdView
            android:id="@+id/adView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            ads:adSize="BANNER"
            ads:adUnitId="my code"
            ads:refreshInterval="60" >
        </com.google.ads.AdView>

</RelativeLayout>
4

1 に答える 1

0

私はあなたが行方不明だと思います

ads:loadAdOnCreate="true"

助けにならない場合はこれを試してから、Javaファイルを配置してください。

于 2013-08-21T11:49:22.893 に答える