title: AdMob AdView and ViewPager?
body: <p>I have Android application with ViewPager implemented like this :</p>
  
  <p><a href="http://www.youtube.com/watch?v=C6_1KznO95A">http://www.youtube.com/watch?v=C6_1KznO95A</a></p>
  
  <p>I don't know how to implement AdView below the ViewPager.
  I have tried to put AdView below the ViewPager programmatically and in xml.
  There is no errors but ads are not showing.</p>
  
  <p>My xml:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"&gt;
  
  &lt;android.support.v4.view.ViewPager
      android:id="@+id/pager"
      android:layout_width="match_parent"
      android:layout_alignParentBottom="top"
      android:layout_height="0dp"
      android:layout_weight="1"/&gt;
  
  &lt;com.google.ads.AdView
      android:id="@+id/ad"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentRight="true"
      android:layout_alignParentBottom="true"
      android:layout_below="@+id/pager"
      ads:adSize="BANNER"
      ads:adUnitId="@string/admob_publisher_id"
      ads:loadAdOnCreate="true" &gt;
  &lt;/com.google.ads.AdView&gt;
  </code></pre>
  
  <p></p>