title: Google Adsense responsive ad units are causing blank spaces sometimes in mobile view
body: <p>I am using the Adsense recommended responsive ad unit for my responsive website leaderboard Ad. The data-ad-format for the unit is set to rectangle, horizontal. </p>
  
  <p>For desktop views the ad shows well with a leaderboard always. But for mobile view the ads sometimes show 320×100 filling the space well but other times it shows smaller sized mobile ad units leaving a blank space below them because instead of resizing it's container div and iframe to less than 100px, Adsense sets the height to be 100px.</p>
  
  <p>My own container div for the ad unit does not have any height set so that it resizes to accommodate any size ad. See the screenshots below. I do not want to see the blank space below the ad and want Adsense unit to set its own height to less than 100px whatever it may be when a smaller ad is shown from the inventory. </p>
  
  <p><em>See the space below the smaller mobile ad shown sometimes by Adsense. This is not caused by my container div (it has no specified height, i have also tried height:auto) but by Adsense setting its ad unit height to 100px even though the ad is of smaller height.</em>
  <img src="https://i.stack.imgur.com/mWM9f.png" alt="space below the smaller ad. Not caused by my container div but by Adsense setting it&#39;s own height to 100px even though the ad is smaller height."></p>
  
  <p><em>A normal 100px height ad unit filling showing correctly without any extra height</em>
  <img src="https://i.stack.imgur.com/75MnX.png" alt="A normal 100px height ad unit filling showing correctly without any extra height"></p>