Страница коју сте захтевали тренутно није доступна на вашем језику. Можете да изаберете други језик у дну странице или да тренутно преведете било коју веб-страницу на жељени језик помоћу функције за превођење уграђене у Google Chrome.

Add key-values to a VAST tag URL

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:

  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

    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

     New 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

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
2075452769635717811
true
Search Help Center
true
true
true
true
true
148
false
false