ShowAds Builder
Pick the devices, sizes, location, and options for one quick start ad spot, then copy the snippet into your site.
Sites using placement IDs (recommended for most established sites) set sizes per placement and device in the Ezoic dashboard instead, so they do not need this builder.
What each option does
| Option | What it does |
|---|---|
devices |
Only places the ad on the listed devices (desktop, tablet, mobile). On other devices the snippet does nothing and reserves no space. |
sizes |
Allowed sizes on every device. |
desktop_sizes, tablet_sizes, mobile_sizes |
Allowed sizes per device. sizes is the fallback for any device you do not set. |
location |
Places the ad at a named spot, such as under_first_paragraph or sidebar. Only takes effect when the snippet runs from your <head>; a snippet in the page body places the ad where it sits. |
anchor |
Places the ad right after the first element matching this CSS selector, wherever the snippet runs. |
fluid: false |
Prevents fluid (variable-height) ads in this spot. |
required: false |
Lets Ezoic skip this ad when the page already carries enough ads. |
Sizes are WIDTHxHEIGHT. One size can be a string; several are a list.
See ShowAds advanced usage for the full reference, including size presets and placing ads from JavaScript.