← knowledge.oriz.in

No ad-slot rectangles reserved in markup

rule rulesadsmonetisationlayoutdesign

No ad-slot rectangles reserved in markup

Do not write empty <div class="ad-slot"> (or data-ad-slot, <ins class="adsbygoogle">, etc.) placeholder rectangles into static HTML or templates. Let the ad provider inject ads at runtime against the organic content tree.

Why

The three ad networks the family is eligible for — AdSense, Ezoic, Mediavine — all run client-side scripts that scan the rendered DOM and insert ad units between paragraphs, after headers, in sidebars, etc. Their fill, viewability, and revenue-per-mille all assume they're choosing where to place ads.

Reserving empty rectangles in markup hurts on every axis:

What to do instead

Exceptions

None for production pages. Test fixtures may use mock slots while verifying script behaviour.

See also