When you generate an ad tag, you have the option to select an existing or create a new ad unit. Google Ad Manager strongly recommendsthat you create unique ad units for DAI, which allows you to assign specific creatives to specific DAI inventory and run reports exclusively on DAI delivery.
Dynamic Ad Insertion requires the use of optimized pods . Standard pods are not supported.
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 Continueafter 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
sz
andiu
parameters - Must set the
output
parameter toxml_vast3
,xml_vast4
, orxml_vmap1
Beta - Must set the following parameters to the following values:
impl=s
,env=vp
,gdfp_req=1
,unviewed_position_start=1
,ad_rule=0
- When output is set to
xml_vmap1 ad_rule=1
Beta
- 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
pp
parameter 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
sz
andiu
parameters - Must set the
output
parameter toxml_vmap1
- Must set the following parameters to the following values:
impl=s
,env=vp
,gdfp_req=1
,unviewed_position_start=1
,ad_rule=1
- Add the
cmsid
andvid
parameters 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
pp
parameter and associated profile name.
The url
and description_url
parameters are not set automatically by the IMA SDK for CTVs. These parameters need to be set manually.
Learn more about any of these video ad tag parameters , or see details about the video content macros available for Dynamic Ad Insertion , including examples.
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
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 streamor 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 Continueto 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 sourceor 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 Continueto generate the ad tag.
- (Optional) Click Copy tag.
Copy tag is only necessary if you want to use the tag elsewhere.
-
Click Save.