Placement IDs
Placement-id showAds examples
The advanced setup: you create each placement in the Ezoic dashboard, own the
<div id="ezoic-pub-ad-placeholder-N"> markup on the page yourself, and
activate it with ezstandalone.showAds(N). Unlike the id-less setup — where
the ad simply goes where the script sits — placement ids give you per-placement dashboard control,
reporting, and programmatic targeting through showAds, refreshAds, and
destroyPlaceholders.
Examples
- basicone placeholder div (910) activated by
showAds({ id: 910, required: true, sizes })— the canonical placement-id setup - multiplethree placeholder divs (915, 916, 917) activated by one batched
showAds({ id: 915, required: true, sizes }, ...) - dynamicshow, destroy, and re-show placeholders (918, 919) as content is added and removed
- infiniteinfinite scroll with a unique id per batch from the pool 921–927 (
?burst=Nto auto-run)