Serve out-of-page creatives

Serve interstitial, pop-up, pop-under, or floating creatives

To serve pop-up, pop-under, or floating creatives to your website, you need to update your Google Publisher Tags and use the "Out-of-page" size for line items and creatives in DFP.

Update the Google Publisher Tags on your site

  • Your site's tags need to define a slot for these out-of-page creatives using the googletag.defineOutOfPageSlot() method. Learn more
  • Since the creative isn't displayed directly within the webpage's content, it's only important that the googletag.display() method is included somewhere in the <body> of your page. Learn more

Learn how to generate tags in DFP to simplify this process.

Sample out-of-page Google Publisher Tag

    <script async='async' src=''></script>
      var googletag = googletag || {};
      googletag.cmd = googletag.cmd || [];

      googletag.cmd.push(function() {

        googletag.defineOutOfPageSlot('/1234/MyOutOfPageLineItem', 'div-gpt-ad-1234567890987-0').addService(googletag.pubads());

    <!-- /1234/MyOutOfPageLineItem -->
    <div id='div-gpt-ad-1234567890987-0'>
        googletag.cmd.push(function() {



Add an out-of-page line item and creative in DFP

  1. Sign in to DoubleClick for Publishers.
  2. Create a line item using the Out-of-page size, or find an existing line item.
  3. Add an out-of-page creative.
Need help with you out-of-page creative?
Learn how to troubleshoot out-of-page delivery

How out-of-page impressions are recorded

Unlike other line items, out-of-page line items only record impressions when the viewed impression macro in an out-of-page line item's creative is triggered when the create is played or viewed. For example, if a web page requests an out-of-page line item from DFP, but the page never displays the creative, an impression is not recorded.

Out-of-page creatives must include the viewed impression macro for impression counting to work.

<img src="%%VIEW_URL_UNESC%%" style="display:none">

Unfilled impressions

Unfilled impression are not recorded in reporting when an out-of-page line item is requested from DFP, but there aren't any eligible line items to return. These unfilled out-of-page impressions are also excluded from DFP invoices.

Inventory forecasting

To ensure accurate inventory forecasting, including inventory for out-of-page ad units, only target out-of-page line items to pages properly tagged to serve out-of-page creatives.

Was this article helpful?
How can we improve it?