Chapter 6. How-to Guides

Find the Right Height for a Responsive Slot

The reserved height should match the ads Google actually shows in that place. Too short and the page still shifts; too tall and there is empty space around the ad. Empty space is the lesser problem.

  1. Switch Debug on, so you can see each slot's state.

  2. Open a page with the ad in your browser's developer tools, with the device toolbar set to a phone width, such as 390 pixels.

  3. Once the slot shows state:filled, find the ins element inside the slot in the Elements panel and note its height.

  4. Reload a few times; Google may show ads of different heights. Note the tallest one you see regularly.

  5. Enter that height in Mobile Min Height (px).

  6. Repeat at a tablet width, such as 768 pixels, for Tablet Min Height (px), and at a desktop width for Desktop Min Height (px).

Tip

In a narrow sidebar, a responsive ad is often much shorter than the defaults. In a wide content column it may be taller. Size each slot for the place it sits in.