Search
Clear search
Close search
Google apps
Main menu

Add key-values to a master video ad tag

Key-value pairs enable you to set specific targeting, such as demographics, certain positions on a webpage, or a particular page or pages on a given topic.

It is not currently possible to add key-value pairs to master video tags within the DFP interface. However, you can manually add key-value targeting by using the keyword cust_params.

To add key-values to your video ad tag:

  1. 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=blog and anotherKey=value1,value2.
  2. Combine all key-value pairs with an ampersand (&).

    section=blog&anotherKey=value1,value2

  3. Encode the following characters:
     
    Character Encoded value
    = %3D
    & %26
    , %2C

    section=blog&anotherKey=value1,value2

     becomes

    section%3Dblog%26anotherKey%3Dvalue1%2Cvalue2

  4. Set the value as the cust_params keyword.

    cust_params=section%3Dblog%26anotherKey%3Dvalue1%2Cvalue2

  5. 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&

  6. Add the value 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 key-values

    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  
    
    
Was this article helpful?
How can we improve it?