Create an ad tag for DAI
Generate an ad tag for DAI
- Sign in to Google Ad Manager.
- Click Inventory, then Ad units.
- Locate and select your DAI ad unit.
- Click Tags.
- Select "Google Publisher Tag for Video and Audio" and click Continue.
-
Complete the steps to generate a video ad tag and ensure the following when you select your tag options:
-
Turn on "Enable for "Live traffic" if this tag runs ads on a live event. This step is not necessary for VOD.
-
Select ad unit sizes for video only. These are designated by a "v" in the unit size (for example, 640x480v).
-
-
Click Continue after you select your tag options.
-
Click Copy tag.
Modify the ad tag
Whether the inventory is for a live linear stream or a VOD content source, the ad tag needs to be modified and saved to the correct location. Depending on your execution, make the modifications below.
Your video player or app can change the parameters of the ad tag when it requests ads for individual user streams, but the tag specified in Ad Manager needs to conform to the below.
Learn how to supply targeting parameters to your stream.
Live linear ad tags
- Must use
https:// - GPT tags must use the URL and path:
https://pubads.g.doubleclick.net/gampad/live/ads - Must set a value for the
szandiuparameters - Must set the
outputparameter toxml_vast3,xml_vast4, orxml_vmap1Beta - Must set the following parameters to the following values:
env=vp,gdfp_req=1,unviewed_position_start=1,ad_rule=0- When output is set to
xml_vmap1 ad_rule=1Beta
- When output is set to
- (Optional) You can control which creatives are eligible to serve based on a configuration set up in a video creative profile by adding the
ppparameter and associated profile name.
Video on demand ad tags
- Must use
https:// - GPT tags must use the URL and path:
https://pubads.g.doubleclick.net/gampad/ads - Must set a value for the
szandiuparameters - Must set the
outputparameter toxml_vmap1 - Must set the following parameters to the following values:
env=vp,gdfp_req=1,unviewed_position_start=1,ad_rule=1 - Add the
cmsidandvidparameters and assign them to their macros. It should look like this:&cmsid=%%CMS_ID%%&vid=%%VIDEO_ID%%. - (Optional) You can control which creatives are eligible to serve based on a configuration set up in a video creative profile by adding the
ppparameter and associated profile name.
url and description_url parameters are not set automatically by the IMA SDK for CTVs. These parameters need to be set manually.Save the modified ad tag to your content in Ad Manager
Live linear
- Click Video, then Live streams. Open your live stream.
-
Locate and update the ad tag in either the pre-roll or mid-roll ad break settings.
- Click Save.
Video on demand
- Click Edit to edit the enabled Dynamic Ad Insertion settings.
-
Locate the "Ad tag" field from the "Settings for Dynamic Ad Insertion" and paste your modified ad tag.
- Click Save.
Generate a tag from a live stream event
-
Sign in to Google Ad Manager.
-
Click Video, then Live Streams, and then either New live stream or select an existing live stream.
-
Locate pre or mid-roll ad break settings.
-
Click Create tag.
-
Select "Google Publisher Tag for Live Video", and click Continue.
-
Complete the Ad unit name, Inventory unit size and Custom Targeting.
-
Click Continue to generate the ad tag.
-
(Optional) Click Copy tag.
Copy tag is only necessary if you want to use the tag elsewhere. -
Click Save.
Generate a tag from content sources
-
Sign in to Google Ad Manager.
-
Click Video, then Content Sources. From here, you can either click New content source or select an existing content source with Dynamic Ad Insertion enabled.
- For new content sources, select Enable dynamic ad insertion. For existing content sources, click to edit the enabled Dynamic Ad Insertion.
-
Click Create tag. Select "Google Publisher Tag for video on demand", and click Continue.
-
Complete the Ad unit name, Inventory unit size and Custom Targeting.
-
Click Continue to generate the ad tag.
- (Optional) Click Copy tag.
Copy tag is only necessary if you want to use the tag elsewhere.
-
Click Save.