title: Admob - no ad to show
body: <p>Hello
  I try to make some example program showing ads on Android phone, and I try to test it on Emulator of v2.2
  Everything in code seems to be fine, but AdListener in debugger says that:</p>
  
  <blockquote>
    <p>Response message is zero or null;<br>
    onFailedToReceiveAd( No ad to show).</p>
  </blockquote>
  
  <p>Is there any way for it to be my fault? Did anyone encounter same problem?
  Heres the code
  Manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.AdTest"
  android:versionCode="1"
  android:versionName="1.0"&gt;
  &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
      &lt;activity android:name=".AdTest"
                android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;!-- AdMobActivity definition --&gt;
  &lt;activity android:name="com.google.ads.AdActivity"
  android:configChanges="orientation|keyboard|keyboardHidden" /&gt;
  &lt;/application&gt;
  &lt;uses-sdk android:minSdkVersion="7"&gt;&lt;/uses-sdk&gt;
  &lt;!-- AdMob SDK requires Internet permission --&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  </code></pre>
  
  <p> </p>
  
  <p>Layout xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/main"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
  &gt;
  &lt;TextView  
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="@string/hello"
  /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and Activity code</p>
  
  <pre><code>package com.AdTest;
  import com.google.ads.*;
  import com.google.ads.AdRequest.ErrorCode;
  import android.app.Activity;
  import android.os.Bundle;
  import android.util.Log;
  import android.widget.LinearLayout;
  
  public class AdTest extends Activity implements AdListener{
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    LinearLayout layout = (LinearLayout)findViewById(R.id.main);
     AdView adView = new AdView(this, AdSize.BANNER, "anonymouse");
     // Unit ID is correct, I changed it on purpose while pasting here
      adView.setAdListener(this);
      layout.addView(adView);
      AdRequest request= new AdRequest();
      adView.loadAd(request);            
    }
  
   public void onFailedToReceiveAd(AdView adView)
      {
          Log.d("AdListener", "onFailedToReceiveAd");
      }
  
      public void onFailedToReceiveRefreshedAd(AdView adView)
      {
          Log.d("AdListener", "onFailedToReceiveRefreshedAd");
      }
  
      public void onReceiveAd(AdView adView)
      {
          Log.d("AdListener", "onReceiveAd");
      }
  
      public void onReceiveRefreshedAd(AdView adView)
      {
          Log.d("AdListener", "onReceiveRefreshedAd");
      }
  
      @Override
      public void onDismissScreen(Ad arg0) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {
            Log.d("AdListener", "onFailedToReceiveAD");
  
      }
  
      @Override
      public void onLeaveApplication(Ad arg0) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public void onPresentScreen(Ad arg0) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public void onReceiveAd(Ad arg0) {
           Log.d("AdListener", "Received succesfully");
  
      }
  }
  </code></pre>