私はAdmobのは、広告を表示されないとの問題を持って表示されません、実際の携帯電話などそれが何かを示したことがないが、私はAdmobの上の要求やプリントを得るは、それが今まで働いていた場合のように、統計...AdMob広告はここ <p></p>はLogCatだ...
私の知る限り、私は... AdmobのAndroidのSDKにすべてをしましたどんな問題の原因にもなりうるのは、IMHOだけです
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="http://schemas.android.com/apk/res/com.xxx.xxx"
android:id="@+id/tababout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FF000000">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FF000000"
android:padding="10px">
<ImageView
android:id="@+id/label_img"
android:src="@drawable/about_header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="centerInside" />
<TextView android:id="@+id/label_know_more_desc"
style="@style/Desc"
android:layout_below="@id/label_img"
android:text="@string/tab_about_know_more_desc" />
<Button android:id="@+id/bt_know_more"
style="@style/Button"
android:gravity="center_vertical|center_horizontal"
android:layout_below="@id/label_know_more_desc"
android:text="@string/tab_about_know_more_bt" />
<com.admob.android.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" myapp:backgroundColor="#000000" myapp:primaryTextColor="#FFFFFF" myapp:secondaryTextColor="#CCCCCC" />
</RelativeLayout>
</ScrollView>
そしてここmain.xml、ではないことだ。私が使用している時にここで
は、タブのレイアウトのサンプルです...その後scrollviewと広告が表示さrelativelayoutとレイアウトをタブ付き私はあなたがそれを必要だと思う:<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FF000000">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FF000000"
android:paddingTop="5px">
</FrameLayout>
</LinearLayout>
</TabHost>
私はこの問題は私が投げてる10pxのパディングすることができることをAdmob ads will not display when placed inside a tabviewで読んだが、私はそれが動作しない、ことを無効にしても。
私ものxmlnsを動かしてみました:RelativeLayoutにmyappのを、しかし、明らかにまた....
を何も変更しませんでした、私は24時間以上前に私の最初のライブの広告リクエストを作った...
EDIT
[OK]を、(、私は最初の行にそれを押し上げ、私setTestDevicesが遅すぎるのonCreateコードであった)今、私はどこかに取得しています、私はテスト広告が現れて得ることができましたが、本当のものではない...私は何かが欠けている?私は明らかにsetTestDevicesラインをコメントアウトし、何の広告が表示されなかっ
まあ、私は(私はすでに内部広告が有効になっていたが、ない内部の広告セット)2つの内部の広告を追加し、突然広告が開始EDIT私のアプリに表示されます(内部広告だけでなく)。
私はすべてが完全にそれを働かせたと思います! :)
おかげでみんな!あなたはRelativeLayoutで広告のを配置していない
今日に後でチェックして、あなたはそれがどのようになるお知らせします。 ;) –
あなたのアドバイスを受けてメインブロックに広告ブロックを置いて、背景色を白に変更して高さを設定すると白いブロックが見えますが、内側には何も表示されませんブロック... –
また、ビュー/インプレッションのクリックはありませんが、admobレポートのリクエストがあります。 –