title: AdMob: onFailedToReceiveAd(Ad request successful, but no ad returned due to lack of ad inventory.)
body: <p>There are a couple of other posts on this topic[1], but the answers did not help me.</p>
  
  <p>My problem is a little special: The ads only show up when I am creating the AdView with one Size parameter:</p>
  
  <pre><code>mBanner = new DfpAdView((Activity) getContext(), AdSize.BANNER, _unit);
  </code></pre>
  
  <p>When I am trying to define fallback sizes, the banner does not show up, but instead logs the error-message (see title of this post):</p>
  
  <pre><code>AdSize[] sizes = new AdSize[]{ AdSize.BANNER, new AdSize(320, 50), new AdSize(320, 75)};
  mBanner = new DfpAdView((Activity) getContext(), sizes, _unit);
  </code></pre>
  
  <p>This isnt working either:</p>
  
  <pre><code>AdSize[] sizes = new AdSize[]{ AdSize.BANNER };
  mBanner = new DfpAdView((Activity) getContext(), sizes, _unit);
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>[1] <a href="https://stackoverflow.com/questions/8778756/onfailedtoreceiveadad-request-successful-but-no-ad-returned-due-to-lack-of-ad">onFailedToReceiveAd(Ad request successful, but no ad returned due to lack of ad inventory when using admob with adwhirl</a></p>