Key-value pairs enable you to set specific targeting, such as demographics, certain spots on a webpage, or a particular page or pages on a given topic.
It currently isn't possible to add key-value pairs to master video tags within the DFP interface, but we're working on adding this functionality. In the meantime, you can manually add key-value targeting by using the keyword cust_params.
To add custom targeting to your video ad tag, follow these steps:
- 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 pairs
section=blogandanotherKey=value1,value2. - Combine all key-value pairs with the "&" character.
section=blog&anotherKey=value1,value2
- Encode the following characters:
Character Encoded value = %3D& %26, %2C
section=blog&anotherKey=value1,value2
becomessection%3Dblog%26anotherKey%3Dvalue1%2Cvalue2 - Set the value in Step 3 as the
cust_paramskeyword.cust_params=section%3Dblog%26anotherKey%3Dvalue1%2Cvalue2
- Add the "&" character to the beginning and end of the value in Step 4 to separate it from the other targeting information in the tag.
&cust_params=section%3Dblog%26anotherKey%3Dvalue1%2Cvalue2&
- Add the value in Step 5 to the original master video tag:
Original tag:
http://pubads.g.doubleclick.net/gampad/ads? sz=400x300& gdfp_req=1& iu=/6062/videodemo& ciu_szs=728x90,300x250& url=http://www.simplevideoad.com& correlator=7104& env=vp& unviewed_position_start=1& output=xml_vast2& impl=s
New tag with custom targeting:
http://pubads.g.doubleclick.net/gampad/ads? sz=400x300& gdfp_req=1& iu=/6062/videodemo& ciu_szs=728x90,300x250& url=http://www.simplevideoad.com& correlator=7104& env=vp& unviewed_position_start=1& output=xml_vast2& impl=s& cust_params=section%3Dblog%26anotherKey%3Dvalue1%2Cvalue2&
