title: Admob doesn't show ad until second request
body: <p>There are a few questions out there about this and a few different answers - none of which seem to work for me.</p>
  
  <p>I have a libdgx app, which complicates things slightly I guess, but I don't see that it should be causing the problem. Code for my onCreate is below.</p>
  
  <p>I have an AdListener assigned that is called when the add is loaded. This code is being hit but nothing is being shown. If I set the advert to refresh then it will show after the first refresh. If I call loadAd a second time after a brief wait the banner will show. If I call loadAd on two consecutive lines of code the advert will not show. Any pointers as to what might be going on here would be appreciated.</p>
  
  <p>edit: I also just noticed that I can click the advert, even though I can't see the advert. When I return back to the game having clicked the advert the advert displays correctly.</p>
  
  <p>edit2: I changed the advert to a SMART_BANNER instead of a BANNER and that seems to work as expected. I still have no idea why the BANNER isn't working.</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      // Create the layout
      FrameLayout layout = new FrameLayout(this);
  
  
      // Do the stuff that initialize() would do for you
      requestWindowFeature(Window.FEATURE_NO_TITLE);
      getWindow().setFlags(
              WindowManager.LayoutParams.FLAG_FULLSCREEN
                      | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
              WindowManager.LayoutParams.FLAG_FULLSCREEN
                      | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
      );
      getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
  
      AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
      config.useAccelerometer = false;
      config.useCompass = false;
      config.useWakelock = false;
      config.useImmersiveMode = true;
      config.hideStatusBar = true;
  
      // Create the libgdx View
      View gameView = initializeForView(new WordStormGame(this), config);
  
      // Add the libgdx view
      layout.addView(gameView);
  
      adView = new AdView(this);
      adView.setAdUnitId("xxxxxxxxxxxx");
      adView.setAdSize(AdSize.BANNER);
      adView.setAdListener(new AdListener() {
                               public void onAdLoaded()
                                   Gdx.app.log("Advert", "Ad Loaded");
                               }
                           }
      );
  
      // Add the AdMob view
      FrameLayout.LayoutParams adsParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT,
              FrameLayout.LayoutParams.WRAP_CONTENT, android.view.Gravity.TOP | android.view.Gravity.CENTER_HORIZONTAL);
      layout.addView(adView, adsParams);
  
      // Hook it all up
      setContentView(layout);
  
      adView.loadAd(new AdRequest.Builder().build());
  }
  </code></pre>