Annonces Admob ne s'affiche pas

J'ai un problème avec Admob ne s'affiche pas de publicité...

Voici le LogCat:

WARN/AdMobSDK(502): Ignoring requestFreshAd() because we are requesting an ad right now already.
INFO/AdMobSDK(502): No fill.  Server replied that no ads are available (1164ms)
INFO/AdMobSDK(502): No fill.  Server replied that no ads are available (846ms)

J'ai essayé le mode de test, pas de test en mode émulateur, vrai téléphone, etc. Il ne montre jamais rien, mais je reçois des demandes et des impressions sur Admob stats, comme si elle l'a jamais travaillé...

Autant que je sache, j'ai tout fait dans le Admob Android SDK... la seule chose qui pourrait être la cause de tous les problèmes, à mon humble avis, serait le fait que je suis à l'aide des onglets de mise en page avec le scrollview et puis un relativelayout où la diffusion de l'annonce...

Voici un exemple de mise en page d'un onglet:

<?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>

Et voici le main.xml, non pas que je pense que vous en avez besoin:

<?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>

J'ai lu dans Annonces Admob n'affiche pas lorsqu'il est placé à l'intérieur d'un tabview que le problème pourrait être le 10px rembourrage je me suis lancer dans, mais même si je les désactiver, il ne fonctionne pas.

J'ai même essayé de déplacer la xmlns:myapp à RelativeLayout, mais, évidemment, n'a rien changé....

Aussi, j'ai fait mon premier live de la demande d'annonce plus de 24 heures...

MODIFIER

Ok, maintenant, je suis quelque part, j'ai réussi à obtenir de test publicités montrant (mon setTestDevices était trop tard dans le onCreate de code, je l'ai poussé jusqu'à la première ligne), mais pas de vrais... j'ai loupé quelque chose? J'ai bien évidemment commenté le setTestDevices ligne et sans annonces apparaissent

EDIT 2

Bien, j'ai ajouté deux annonces (j'ai déjà eu interne annonces activée, mais aucun des publicités internes), et soudain annonces a commencé à montrer sur mon application (pas seulement les annonces).

Je suppose que tout ce qui au total fait le travail?! 🙂

Merci à tous!

OriginalL'auteur Bruno Bernardino | 2010-12-02