To serve pop-up, pop-under, or floating creatives to your website, you’ll need to traffic the creatives using one of DFP’s built-in creative templates, and you’ll need to make sure your tags are set up properly to allow these creative types to serve.
Traffic a pop-up, pop-under, or floating creative in DFP
Follow the instructions for creating a creative from a template.
Modify your tags to allow pop-up, pop-under, or floating creatives to serve
How you handle your tags depends on which type you're using.
Google Publisher Tags
If you're adding Google Publisher Tags to a webpage for the first time:
-
Select the Out-of-page unit checkbox in the 'Generate tags' window.
-
Then add the tags to your webpage as you normally would.
To modify an existing Google Publisher Tag to add out-of-page capability:
-
Select the Out-of-page unit checkbox in the 'Generate tags' window.
-
In the 'Header' section, select the line of code that defines the out-of-page slot, as in the following example:
googletag.defineOutOfPageSlot('/1234/Line_Item_Name', 'div-gpt-ad-1234567890123-0-oop').addService(googletag.pubads()); -
Paste this code into the Google Publisher Tag that's already in the header section of your webpage, in a location similar to where you see it in DFP. Make sure it's between the
<script type='text=javascript>and</script>tags. -
In the 'Document body' section, select the code for the out-of-page ad, beginning with
<!-- Line_Item_Name out of page -->and ending with</div>. - Paste the code into the body of your webpage. Because creatives won't be served within the page, the exact location of the code isn't crucual, as long as it's in the body of the page.
DART tags
To serve out-of-page creatives with DART tags, add dcopt=ist to the tags, as in the following example:
When an ad tag containing dcopt=ist calls the ad server to request an ad, it tells the ad server that it can accept both traditional creatives (creatives that serve into an ad slot on the page) and creatives that appear in a new window above or below the page.
A tag that has dcopt=ist in it can serve two ads to one page: a traditional creative, and one pop-up, pop-under, or floating creative. In the example above, the tag could serve both a pop-under of any size and a 728x90 creative. Pop-ups, pop-unders, and interstitials do not officially have a size (example: a pop-up that is 300x250 could serve to the ad tag above).
DFP will only serve one pop-up, pop-under, or floating creative per page load.
As a best practice, we recommend always placing dcopt=ist in the top tag on the page (and targeting that top ad slot size in DFP). You should only have dcopt=ist in one tag per page.
%i macro into your creatives; the templates will take care of that.