title: What are the Java components necessary to posting an Ad from Admob?
body: <p>Does one simply include the xml for an ad only, or is there something else to add in Java?</p>
  
  <p>In my situation, this is what I currently have for the ad in my xml:</p>
  
  <pre><code>&lt;com.google.ads.AdView
      android:id="@+id/ad"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"        
      ads:adSize="BANNER"
      ads:adUnitId="ca-app-pub-XXXXXXXXXXXXXXX/XXXXXXXXXX"
      ads:testDevices="TEST_EMULATOR"
      ads:loadAdOnCreate="true"
      android:layout_alignParentBottom="true"&gt;
  &lt;/com.google.ads.AdView&gt;
  </code></pre>
  
  <p>Is there something missing in the MainActivity.java class?</p>