title: Do you need to explicitly call pause, resume, destroy for an AdView?
body: <p>Is the AdView automatically tied to the activity life cycle or do you have to explicitly call the <code>pause</code>, <code>resume</code>, <code>destroy</code> events? Does it depend on the size of the AdView? I'm using banner ads.</p>
  <p>I couldn't find a lot of code samples of other people doing this and the main Android help article doesn't mention it (they just load the ad in onCreate and don't do anything else with it).</p>
  <p><a href="https://developers.google.com/android/reference/com/google/android/gms/ads/AdView" rel="noreferrer">https://developers.google.com/android/reference/com/google/android/gms/ads/AdView</a>
  (code example includes pause/resume/destroy and it mentions we &quot;should call these methods&quot; in the method notes, but doesn't elaborate).</p>
  <p><a href="https://developers.google.com/admob/android/banner" rel="noreferrer">https://developers.google.com/admob/android/banner</a>
  (does not mention the need to pause/resume/destroy).</p>
  <p><a href="http://thetechnocafe.com/a-complete-guide-to-integrating-admob-in-your-android-app/" rel="noreferrer">http://thetechnocafe.com/a-complete-guide-to-integrating-admob-in-your-android-app/</a>
  (pauses and destroys video ads in the code, but doesn't mention why or give any explanation)</p>
  <pre><code>&lt;LinearLayout
          xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
          xmlns:tools=&quot;http://schemas.android.com/tools&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:orientation=&quot;vertical&quot;&gt;
  
      &lt;!-- app content --&gt;
  
      &lt;com.google.android.gms.ads.AdView
              xmlns:ads=&quot;http://schemas.android.com/apk/res-auto&quot;
              android:id=&quot;@+id/myAdView&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              ads:adSize=&quot;BANNER&quot;
              ads:adUnitId=&quot;ca-app-pub-3940256099942544/6300978111&quot;&gt;
      &lt;/com.google.android.gms.ads.AdView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  <pre><code>public class MainActivity extends AppCompatActivity {
      private AdView mAdView;
  
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          // ...
  
          mAdView = findViewById(R.id.myAdView);
          AdRequest adRequest = new AdRequest.Builder().build();
          mAdView.loadAd(adRequest);
      }
  
      // do I need this code as well???
      @Override
      public void onResume() {
          mAdView.resume();
          super.onResume();
      }
      
      @Override
      public void onPause() {
          mAdView.pause();
          super.onPause();
      }
      
      @Override
      public void onDestroy() {
          mAdView.destroy();
          super.onDestroy();
      }
  </code></pre>