Search
Clear search
Close search
Google apps
Main menu

Generate video ad tags in DFP

This feature is only available to networks with a dedicated Google account manager, and might not be enabled for your network. Contact your account manager for more information. If you do not have an account manager, your network is not eligible for this feature.

To generate tags for your video ad units in DFP:

  1. In the Ad unit section of the Inventory tab, click the video ad unit for which you want to generate the tag.
  2. Click Generate tags below the name of the selected video ad unit.
  3. Complete the 3-step process and click Continue after each step.

    Select tag type

    You can currently generate Google Publisher Tags (GPT).

    Select tag options Define options or targeting parameters to be included in the tag. You can learn more about the required and custom parameters for GPT ad tags.

    If you are creating an ad tag for live stream video, select the "Enable for live traffic" option to ensure the ability to handle heavy live stream traffic volumes, where all ad breaks are delivered at the same time.

    Tag results Use the information provided in this section to test and ensure your tag is set up correctly.
    • Header tag: the JavaScript needed to initialize the tag. This should always be part of the <HEAD> element of the page.
    • Video master tag: the URL needed to get video ads for this ad unit. You can learn about the components of the master ad tag URL.
    • Companion tag: the JavaScript code needed to display companion ads. Copy this code to the appropriate part of the <BODY> element of the page to specify where the companion ad appears.
    Live stream ad tags must contain /live in their path. If you selected the "Enable for live traffic" option using the ad tag generator, it is automatically added.
  4. Click Done. Your ad tag appears automatically.

DFP Video supports both https and http. The impressions and VAST tracking URLs respect the SSL setting and will return either https or http as appropriate. Click-through and click-tracking are http since it redirects from another page.

If you are not using the Google IMA SDK: Be aware that the tag contains the following macros, for which you'll need to insert the appropriate information. (If you're using the Google IMA SDK, the SDK automatically inserts the information for these macros.)

  • url=[referrer_url]: URL of the page where the ad will appear
  • correlator=[timestamp]: typically the timestamp of the page view
Was this article helpful?
How can we improve it?