title: How to remove all ads after watching a reward video for a particular session
body: <p>I want to remove all the ads for that particular session after a reward video ad and after the app reopen the ads will show again, how can I do that</p>
  <p>i like how this app done it
  <a href="https://play.google.com/store/apps/details?id=co.fourapps.morseconverter" rel="nofollow noreferrer">https://play.google.com/store/apps/details?id=co.fourapps.morseconverter</a></p>
  <p>i have two ads, one is a banner ad and the second are interstitial ad</p>
  <p>HomeActivity.java</p>
  <pre><code> MobileAds.initialize(this, initializationStatus -&gt; {
          });
  
          AdView mAdView = findViewById(R.id.adView);
  
          AdRequest adRequest = new AdRequest.Builder().build();
          mAdView.loadAd(adRequest);
  
          intertitalAd();
  </code></pre>
  <hr />
  <pre><code>private void copy() {
          if (mInterstitialAd != null) {
              mInterstitialAd.show(HomeActivity.this);
              mInterstitialAd.setFullScreenContentCallback(new FullScreenContentCallback() {
                  @Override
                  public void onAdDismissedFullScreenContent() {
                      super.onAdDismissedFullScreenContent();
                      startActivity(new Intent(HomeActivity.this, HomeActivity.class));
                      mInterstitialAd = null;
                      intertitalAd();
                  }
              });
          } else {
              startActivity(new Intent(HomeActivity.this, HomeActivity.class));
  
          }
          ClipboardManager clipboardManager = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
          ClipData clipData = ClipData.newPlainText(&quot;text&quot;, quotesTxt.getText());
          if (clipboardManager != null) {
              clipboardManager.setPrimaryClip(clipData);
          }
          Toast.makeText(getApplicationContext(), &quot;Copied&quot;, Toast.LENGTH_SHORT).show();
  
      }
  
      private void share() {
          if (mInterstitialAd != null) {
              mInterstitialAd.show(HomeActivity.this);
              mInterstitialAd.setFullScreenContentCallback(new FullScreenContentCallback() {
                  @Override
                  public void onAdDismissedFullScreenContent() {
                      super.onAdDismissedFullScreenContent();
                      startActivity(new Intent(HomeActivity.this, HomeActivity.class));
                      mInterstitialAd = null;
                      intertitalAd();
                      Intent intent = new Intent(Intent.ACTION_SEND);
                      intent.setType(&quot;text/plain&quot;);
                      intent.putExtra(Intent.EXTRA_TEXT, quotesTxt.getText());
                      startActivity(Intent.createChooser(intent, &quot;Share to&quot;));
                  }
              });
          } else {
              startActivity(new Intent(HomeActivity.this, HomeActivity.class));
              Intent intent = new Intent(Intent.ACTION_SEND);
              intent.setType(&quot;text/plain&quot;);
              intent.putExtra(Intent.EXTRA_TEXT, quotesTxt.getText());
              startActivity(Intent.createChooser(intent, &quot;Share to&quot;));
  
  
          }
  
      }
  
   public void intertitalAd() {
  
          AdRequest adRequest = new AdRequest.Builder().build();
  
  
          InterstitialAd.load(this, &quot;ca-app-pub-3940256099942544/1033173712&quot;, adRequest,
                  new InterstitialAdLoadCallback() {
                      @Override
                      public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {
                          // The mInterstitialAd reference will be null until
                          // an ad is loaded.
                          mInterstitialAd = interstitialAd;
                      }
  
                      @Override
                      public void onAdFailedToLoad(@NonNull LoadAdError loadAdError) {
                          // Handle the error
                          mInterstitialAd = null;
                      }
                  });
  
      }
  </code></pre>