AdMob “Pas assez d'espace pour afficher l'annonce” erreur

Je suis nouveau sur Android.
J'ai ajouté AdMob dans mon application android en faisant les changements suivants dans main.xml:

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <LinearLayout
        xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >
        <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" />

        <com.google.ads.AdView
            xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
            android:id="@+id/adView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            ads:adSize="BANNER"
            ads:adUnitId="XXXXXXXXX"
            ads:loadAdOnCreate="true" />
    </LinearLayout>
</TabHost>

Mon projet est en cours d'exécution sans erreur, mais je ne reçois pas l'annonce.

WARN/Ads(3805): Not enough space to show ad! Wants: <320, 50>, Has: <320, 0>.
Cet avertissement clairement vous dire que pour l'affichage de la publicité qu'il n'a pas assez d'espace. Il nécessite 320x50 de l'espace et sa hauteur est de 0. Veuillez vérifier que votre adview obtenir suffisamment d'espace.

OriginalL'auteur Madhumitha | 2012-11-21