title: Interstitial ad with load delay
body: <p>I'm trying to implement an interstitial ad, and I'd like it to load before, in the application it's happening to load along with the action which causes delay and makes the ad appear well after. I want to make the ad appear right after pressing "adicionar" as shown in the image below:
  <a href="https://i.stack.imgur.com/mHxkT.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>The code below shows how it was implemented:</p>
  
  <pre><code>@Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          mInterstitialAd = new InterstitialAd(this);
          mInterstitialAd.setAdUnitId("ca-app-pub-8920922366585510/4181958830");
          mInterstitialAd.loadAd(new AdRequest.Builder().build());
          if (requestCode == ADD_PACK) {
              if (resultCode == Activity.RESULT_CANCELED) {
                  if (data != null) {
                      final String validationError = data.getStringExtra("validation_error");
                      if (validationError != null) {
                          if (BuildConfig.DEBUG) {
                              //validation error should be shown to developer only, not users.
                              MessageDialogFragment.newInstance(R.string.title_validation_error, validationError).show(getSupportFragmentManager(), "validation error");
                          }
                          Log.e(TAG, "Validation failed:" + validationError);
                      }
                  } else {
                      new StickerPackNotAddedMessageFragment().show(getSupportFragmentManager(), "sticker_pack_not_added");
                  }
              }
          }
          mInterstitialAd.setAdListener(new AdListener() {
              @Override
              public void onAdLoaded()  {
                  mInterstitialAd.show();
              }
          });
      }
  </code></pre>
  
  
  
  <p>I've tried loading the call before these codes but I can not load before.</p>
  
  <pre><code>            mInterstitialAd = new InterstitialAd(this);
              mInterstitialAd.setAdUnitId("ca-app-pub-8920922366585510/4181958830");
              mInterstitialAd.loadAd(new AdRequest.Builder().build());
  </code></pre>
  
  
  
  <p>The application is an open source github, the link is below if you want to download to see the complete code and help: <a href="https://github.com/WhatsApp/stickers/tree/master/Android" rel="nofollow noreferrer">DOWNLOAD COMPLETE CODE</a></p>