title: AdMob via MoPub - Not enough space to show ad
body: <p>I don't know why this is happening and it's driving me mad. Long story short, out of all the ad networks I use via MoPub, AdMob seems to be the only one that doesn't display an advert, claiming it doesn't have enough space. In MoPub I have a phone ad unit and a tablet ad unit. Here's the  specific log:</p>
  
  <pre><code>02-10 09:44:44.094: I/Ads(9363): Request scenario: Online server request.
  02-10 09:44:50.114: D/webviewglue(9363): nativeDestroy view: 0x678b8418
  02-10 09:44:50.124: I/Ads(9363): onReceiveAd()
  02-10 09:44:50.124: D/MoPub(9363): Google AdMob load succeeded. Showing ad...
  02-10 09:44:50.124: D/MoPub(9363): adLoaded
  02-10 09:44:50.124: D/MoPub(9363): Tracking impression for native adapter.
  02-10 09:44:50.144: W/Ads(9363): Not enough space to show ad! Wants: &lt;969, 119&gt;, Has: &lt;800, 1073741823&gt;
  02-10 09:44:50.144: W/Ads(9363): Not enough space to show ad! Wants: &lt;969, 119&gt;, Has: &lt;800, 1073741823&gt;
  </code></pre>
  
  <p>The ad gets loaded but not displayed because apparently it needs more space. I only want to display banner ads. I'm testing on a Nexus 7.</p>
  
  <p>The other networks I use are LeadBolt and Millennial. They display banner ads just fine in the same space. </p>
  
  <p>My java code to select which ad unit to show (phone or tablet based on screen size):</p>
  
  <pre><code>    //Advert if statement
      Configuration config = getResources().getConfiguration();
  
              if ((config.screenLayout &amp; Configuration.SCREENLAYOUT_SIZE_MASK) ==
                              Configuration.SCREENLAYOUT_SIZE_LARGE) {
                      //Tablet
                      mAdViewTabletLarge = (MoPubView) findViewById(R.id.LargeAdvert);
                              mAdViewTabletLarge.setAdUnitId("id here");
                              mAdViewTabletLarge.setVisibility(Application.getAdVisibiltyForEdition(this.getApplicationContext()));
                              mAdViewTabletLarge.loadAd();
              }
              else if ((config.screenLayout &amp; Configuration.SCREENLAYOUT_SIZE_MASK) ==
                                      Configuration.SCREENLAYOUT_SIZE_XLARGE) {
                      //Tablet
                      mAdViewTabletXLarge = (MoPubView) findViewById(R.id.LargeAdvert);
                              mAdViewTabletXLarge.setAdUnitId("id here");
                              mAdViewTabletXLarge.setVisibility(Application.getAdVisibiltyForEdition(this.getApplicationContext()));
                              mAdViewTabletXLarge.loadAd();
              }
              else {
                      //Phone
                      mAdViewPhone = (MoPubView) findViewById(R.id.LargeAdvert);
                              mAdViewPhone.setAdUnitId("id here");
                              mAdViewPhone.setVisibility(Application.getAdVisibiltyForEdition(this.getApplicationContext()));
                              mAdViewPhone.loadAd();
              }
  </code></pre>
  
  <p>Anyone got any clue as to what is going on? </p>