title: getting an ad response. ErrorCode: 1
body: <p>I am testing my application in device it is showing the error in debug logcat what is this error and how to solve this?</p>
  
  <p>The error is</p>
  
  <pre><code>There was a problem getting an ad response. ErrorCode: 1
  </code></pre>
  
  <p>my xml code is </p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
       xmlns:ads="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/accent_material_light"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
  
       &gt;
        &lt;com.google.android.gms.ads.AdView
          android:id="@+id/adView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_alignParentBottom="true"
          ads:adSize="BANNER"
          ads:adUnitId="@string/banner_ad_unit_id"&gt;
      &lt;/com.google.android.gms.ads.AdView&gt;
  </code></pre>
  
  <p>my code to display the ads is </p>
  
  <pre><code>AdView mAdView = (AdView) findViewById(R.id.adView);
              AdRequest adRequest = new AdRequest.Builder().build();
              mAdView.loadAd(adRequest);
  </code></pre>
  
  <p>and in manifest file I am adding.the code is working fine but the ads are not displaying I am testing it on my device </p>
  
  <pre><code>&lt;application
          android:allowBackup="true"
          android:icon="@drawable/icon"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
           &lt;!--This meta-data tag is required to use Google Play Services.--&gt;
          &lt;meta-data android:name="com.google.android.gms.version"
          android:value="@integer/google_play_services_version" /&gt;
  &lt;activity android:name="com.google.android.gms.ads.AdActivity"
                  android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
                  android:theme="@android:style/Theme.Translucent" /&gt;
  </code></pre>