title: Admob: Interstitial ads showing every time
body: <p>i'm finishing a video application and i'm displaying interstitial ads when leaving the video activity. I just want to show it once every X minutes, but it seems to be showing every time i leave that screen.</p>
  
  <p>This is my activity code.</p>
  
  <p>OnCreate:</p>
  
  <pre><code>  @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Bundle b = getIntent().getExtras();
    videoId = b.getString("videoId");
    setContentView(R.layout.youtube_player);
  
    interstitialAd= new InterstitialAd(this);
    interstitialAd.setAdUnitId(getString(R.string.interstitial_full_screen));
    AdRequest adRequest = new AdRequest.Builder().build();
    interstitialAd.loadAd(adRequest);
    etc...
  </code></pre>
  
  <p>OnBackPressed:</p>
  
  <pre><code>@Override
  public void onBackPressed() {
      ShowAds();
  
  }
  
  private void ShowAds() {
      if (interstitialAd.isLoaded()) {
          interstitialAd.show();
          interstitialAd.setAdListener(new AdListener() {
              @Override
              public void onAdClosed() {
                  super.onAdClosed();
                  finish();
              }
          });
      }else{
          super.onBackPressed();
      }
  }`
  </code></pre>
  
  <p>of course, it is setted like this into AdMob:</p>
  
  <p><a href="https://i.stack.imgur.com/H0OcA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H0OcA.png" alt=""></a></p>
  
  <p>Note: my application is not published, so it is showing the "preview" o "sample". I am using my ad unit ID:</p>
  
  <p><a href="https://i.stack.imgur.com/hwUhj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hwUhj.png" alt="enter image description here"></a></p>
  
  <p>thanks,</p>