title: How to Avoid Loading Admob Interstitial Ad if One is Already Loaded?
body: <p>I am loading Interstitial ad in baseactivity's oncreate method, This baseactivity is extended by all other activities of the app so every time I start a new activity a new interstitial is being loaded even if there's one loaded already.</p>
  <pre><code>private InterstitialAd mInterstitialAd;
  
  @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          createAd();
  }
  
      public void createAd () {
  
          AdRequest adRequest = new AdRequest.Builder().build();
  
          InterstitialAd.load(BaseActivity.this, &quot;ca-app-pub-3940256099942544/8691691433&quot;, adRequest, new InterstitialAdLoadCallback() {
  
              @Override
              public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {
                  Toast.makeText(BaseActivity.this, &quot;Ad Loaded&quot;,
                          Toast.LENGTH_LONG).show();
                  mInterstitialAd = interstitialAd;
                  mInterstitialAd.setFullScreenContentCallback(new FullScreenContentCallback(){
                      @Override
                      public void onAdDismissedFullScreenContent() {
                          // Called when fullscreen content is dismissed.
                          Toast.makeText(BaseActivity.this, &quot;fullscreen content is dismissed.&quot;,
                                  Toast.LENGTH_LONG).show();
                      }
  
                      @Override
                      public void onAdFailedToShowFullScreenContent(AdError adError) {
                          // Called when fullscreen content failed to show.
                          Toast.makeText(BaseActivity.this, &quot;fullscreen content failed to show.&quot;,
                                  Toast.LENGTH_LONG).show();
                      }
  
                      @Override
                      public void onAdShowedFullScreenContent() {
                          // Called when fullscreen content is shown.
                          // Make sure to set your reference to null so you don't
                          // show it a second time.
                          mInterstitialAd = null;
                          Toast.makeText(BaseActivity.this, &quot;fullscreen content is shown.&quot;,
                                  Toast.LENGTH_LONG).show();
                      }
                  });
              }
  
              @Override
              public void onAdFailedToLoad(@NonNull LoadAdError loadAdError) {
                  Toast.makeText(BaseActivity.this, &quot;Ad Failed to Load&quot;,
                          Toast.LENGTH_LONG).show();
              }
  
          });
  
      }
  </code></pre>
  <p>How to load them only once when base activity created first time?</p>