title: Admob ads not showing up
body: <p>I've got a problem with Admob not showing up Ads...</p>
  
  <p>Here's the LogCat:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>I've tried test mode, no test mode, emulator, real phone, etc. It never shows anything up, but <strong>I get requests and prints on Admob stats</strong>, like if it ever worked...</p>
  
  <p>AFAIK, I did everything in the Admob Android SDK... the only thing that could be the cause of any problems, IMHO, would be the fact that I'm using tabbed layout with scrollview and then a relativelayout where the ad shows...</p>
  
  <p>Here's a sample of the layout for a tab:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;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"&gt;
  &lt;RelativeLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#FF000000"
      android:padding="10px"&gt;
  
      &lt;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" /&gt;
  
      &lt;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" /&gt;
  
      &lt;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" /&gt;
  
      &lt;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" /&gt;
  &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>And here's the main.xml, not that I think you need it:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;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"&gt;
  
  &lt;LinearLayout
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;TabWidget
          android:id="@android:id/tabs"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" /&gt;
  
      &lt;FrameLayout
          android:id="@android:id/tabcontent"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:background="#FF000000"
          android:paddingTop="5px"&gt;
  
      &lt;/FrameLayout&gt;
  &lt;/LinearLayout&gt;
  &lt;/TabHost&gt;
  </code></pre>
  
  <p>I've read in <a href="https://stackoverflow.com/questions/3705651/admob-ads-will-not-display-when-placed-inside-a-tabview">Admob ads will not display when placed inside a tabview</a> that the problem could be the 10px padding I'm throwing in, but even if I disable that, it doesn't work.</p>
  
  <p>I even tried moving the xmlns:myapp to RelativeLayout, but obviously didn't change anything....</p>
  
  <p>Also, I've made my first live ad request over 24 hours ago...</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Ok, now I'm getting somewhere, I've managed to get test ads showing up (my setTestDevices was too late in the onCreate code, I pushed it up to the first lines), but not real ones... am I missing something? I obviously commented out the setTestDevices line and no ads show up</p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>Well, I added two internal ads (I already had internal ads enabled, but no internal ads set), and suddenly ads started showing on my app (not only internal ads).</p>
  
  <p>I guess everything altogether made it work?! :)</p>
  
  <p>Thanks everyone!</p>