React SDK
Numeric-id display with sizes + required
<EzoicAd> renders a bare <div id="ezoic-pub-ad-placeholder-910">
and queues it onto ezstandalone.showAds(...). Generated ids like this one carry no
dashboard sizing, so passing sizes and required together is the
canonical pairing shown in every SDK README/quickstart example.
What this demonstrates
Every
<EzoicAd> that mounts in the same React commit
is batched into one showAds(...) call carrying all their ids (the ad
bundle adds its own debounce on top). Unmounting an <EzoicAd> calls
destroyPlaceholders(id). The placeholder div itself carries no styling — a
className/style on <EzoicAd> is intentionally not
forwarded to it.SDK docs: README — Display ads
Component usage
import { EzoicAd } from '@ezoic/react-sdk';
function Article() {
return <EzoicAd id={910} sizes={['300x250', '336x280']} required />;
}
Live demo
The panel below embeds the SDK's own demo app (built from
@ezoic/react-sdk v1.0.0) — look at its "Display ads — numeric ids"
panel for this scenario. This article frame has no placeholders. Ads run in the iframe below and on the full demo page — scroll to Live demo or open it in a new tab to see fill.
Open the full demo in a new tab →