Chapter 6. How-to Guides

Hide Slots That Get No Ad

Collapse if Unfilled, on by default, closes a slot smoothly when Google has no ad for it, or when ads are blocked and there is no fallback content. Your visitors don't see empty boxes in the middle of your content.

Read the caution in the section called “Filled, Unfilled and Blocked Ads” before relying on it for an ad near the top of the page. A slot that closes while it is on screen moves the content below it. If that happens often on one of your pages, either show fallback content instead, or turn collapsing off and accept the occasional empty box.