Search Images Maps Play YouTube News Gmail Drive More »
Sign in

Rich content and third-party tags

Create pop-up or floating ads

To generate a pop-up or floating ad, create a 1x1 ad unit, place the GA_googleFillSlot tag anywhere after the GA_googleAddSlot tag, and enter the creative code in a custom creative. The code will then determine the behaviour of the ad.

If you display pop-up creatives on your site, you may find that popup-blocking software disables some components of those ads. Popup-blocking software may also generate reporting discrepancies, because DFP Small Business records an impression when an ad is served.

To resolve these issues, try one of the following options:

  • Use a rich content ad that relies on a window.open() call to deliver a complete marketing message. When the ad is served, DFP Small Business records an impression, even if a pop-up or pop-under for the ad gets blocked when the user clicks the ad.

  • Restrict tags (calls to GA_googleFetchAds) to the parent window of your site to control pop-up or pop-under code on your site, not within the rich content creative. This will ensure that the event triggering a pop-up or pop-under comes from your site's code, not from the creative. The child window will render a page with a plain DFP Small Business unit; creatives destined for the child window are targeted to the ad unit like any other creative. In this case, a user with pop-up blocking software still won't see your ad. However, DFP Small Business won't deliver the first half of your ad and won't count an impression.