Key-value pairs allow you to set specific targeting, such as demographics, certain positions on a webpage, or a particular page or pages on a given topic.
You can target key-values when you generate ad tags in Ad Manager, or manually by using the keyword cust_params.
To add key-values to your video ad tag:
- Identify the key-value pairs you want to use in your ad tag. When a key has multiple values, use a comma (
,) to separate the values. In this example, we use the key-value pairssection=blogandanotherKey=value1,value2. -
Combine all key-value pairs with an ampersand (
&).section=blog&anotherKey=value1,value2 - Encode the following characters:
Character Encoded value =%3D&%26,%2Csection=blog&anotherKey=value1,value2becomes
section%3Dblog%26anotherKey%3Dvalue1%2Cvalue2 -
Set the value as the
cust_paramskeyword.cust_params=section%3Dblog%26anotherKey%3Dvalue1%2Cvalue2 -
Add the "&" character to the beginning and end to separate it from the other targeting information in the tag.
&cust_params=section%3Dblog%26anotherKey%3Dvalue1%2Cvalue2& - Add the value to the original master video tag.
Original tag
https://securepubads.g.doubleclick.net/gampad/ads?
sz=400x300&
gdfp_req=1&
iu=/6062/videodemo&
ciu_szs=728x90,300x250&
url=https://www.simplevideoad.com&
correlator=7104&
env=vp&
unviewed_position_start=1&
output=xml_vast2New tag with key-values
https://securepubads.g.doubleclick.net/gampad/ads?
sz=400x300&
gdfp_req=1&
iu=/6062/videodemo&
ciu_szs=728x90,300x250&
url=https://www.simplevideoad.com&
correlator=7104&
env=vp&
unviewed_position_start=1&
output=xml_vast2&
cust_params=section%3Dblog%26anotherKey%3Dvalue1%2Cvalue2