Forgetting the impression macro
Without the impression count macro inside the creative, Ad Manager does not count any impression.
Implementation guide
Out-of-page creatives
An Ad Manager slot for creatives that do not live inside the text, such as windows and floating ads, under strict Google rules.
Understand it in 1 minute
Almost every ad lives in a little box inside the page, like a picture hanging on the wall. The out-of-page ad is different: it has no fixed place in the middle of the text. It is for creatives that appear on top, floating or in a separate window, like a flyer handed to you at the door instead of a poster on the wall. In Ad Manager, Google calls these out-of-page creatives and gives the pop-up, the pop-under and the floating ad as examples.
Because this ad has no space designed into the page, the site needs to say when it can appear. This is done with GPT, the Google Publisher Tag, using a dedicated function for out-of-page slots and then requesting the display inside the body. In Ad Manager, the line item uses the Out-of-page (interstitial) size, and the creative can be custom, from Campaign Manager 360 or from a template. A curious detail: the impression is only counted when the creative is actually shown, so it needs a small counting tag.
Now the most important part: just because the tool exists does not mean everything is allowed. Google's policies do not accept Google ads on sites that have or open pop-unders, or ads on pages that run hidden, off screen or while the person's attention is elsewhere. They also do not accept ads that cover content, not even a little and not even for a moment. And the Better Ads Standards, used by Google, reject the pop-up that appears after the page starts loading and blocks the main content.
So what is it for? The out-of-page slot is the way Ad Manager offers to deliver pop-up, pop-under or floating creatives, which do not fit in a regular rectangle. Even so, each creative must follow the policies you read above. Also remember that GPT has out-of-page formats it manages itself, like the interstitial, which have their own pages in this library. The custom slot is for cases where you control the creative yourself.
Step by step
Implemented example
<!-- No <head> -->
<script async
src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"
crossorigin="anonymous"></script>
<script>
window.googletag = window.googletag || { cmd: [] };
googletag.cmd.push(() => {
// Slot fora da página personalizado: sem tamanho, só o caminho e a div.
const slot = googletag.defineOutOfPageSlot(
"/1234567/exemplo",
"fora-da-pagina"
);
if (slot) {
slot.addService(googletag.pubads());
}
googletag.enableServices();
});
</script>
<!-- No <body> -->
<div id="fora-da-pagina"></div>
<script>
googletag.cmd.push(() => {
googletag.display("fora-da-pagina");
});
</script>
<!-- Dentro do criativo, no Ad Manager (conta a impressão): -->
<!-- <img src="%%VIEW_URL_UNESC%%" style="display:none"> -->What Google recommends
Tips
Watch out
Without the impression count macro inside the creative, Ad Manager does not count any impression.
SafeFrame comes on or off depending on the creative type. If it is not adjusted for where the creative appears, display errors can occur.
In the custom slot, the name passed in the definition must be that of the div where the creative will live, and the same one used in the display.
Out-of-page line items targeted to pages without this tag make the inventory forecast wrong.
No. Google policies do not allow Google ads on sites that have or open pop-unders. The Ad Manager help mentions pop-under creatives, but the policy still applies.
No, if it covers the content. The policy prohibits Google ads that hide content, fully or partially, for any period.
The interstitial is a type of out-of-page ad. GPT has a version it manages itself; the custom slot is for your own creatives that do not use this ready-made format.
In GPT's custom slot, you pass only the ad unit path and the div name, with no size. In the line item, the size is Out-of-page (interstitial).
Library
Everything on this page follows Google's official documentation. Read it straight from the source:
The audit reads the site as a visitor would, without clicking anything, and shows what to fix.