What this demonstrates
Two ads placed purely by location name —
top_of_page and under_first_paragraph — from a script that runs
inside a timeout, so no script anchor exists and the resolver derives the insertion point from
the name alone. The method name is split ("show" + "Ads") so the scanner cannot
match the driver.
Integration used on this page
<!-- Head: consent + Ezoic standalone loader -->
<script data-cfasync="false" src="https://cmp.gatekeeperconsent.com/min.js"></script>
<script data-cfasync="false" src="https://the.gatekeeperconsent.com/cmp.min.js"></script>
<script async src="//www.ezojs.com/ezoic/sa.min.js"></script>
<script>
window.ezstandalone = window.ezstandalone || {};
ezstandalone.cmd = ezstandalone.cmd || [];
</script>
<!-- Driver: placement by location name, no anchor -->
<script>
ezstandalone.cmd.push(function () {
setTimeout(function () {
window.ezstandalone["show" + "Ads"](
{location: "top_of_page", sizes: "728x90"},
{location: "under_first_paragraph", sizes: "300x250"}
);
}, 0);
});
</script>
View source on GitHub →
Docs: Ad Placements — Placing Ads From JavaScript
Named location without an anchor
This page places two ads purely by location name — top_of_page and under_first_paragraph —
from a script that runs inside a timeout, so no script anchor exists and the resolver must
derive the insertion point from the name alone.
Second paragraph. The under_first_paragraph ad should have landed between the first
paragraph and this one; the top_of_page ad above the headline.
Third paragraph closing out the article.