Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Once keys have been created, you can apply key-value targeting to demand tags. Targeting on Key-Value pairs can be done on an AND and OR basis. Any combination of Key-Value pairs with the same group ID will follow AND logic. OR logic will be applied for targeting of different groups.

Visit the Demand page for more information on Key-Value Targeting on a Demand Tag.

Table of Contents

Add Key-Value Targeting

...

Code Block
Content-Type application/json
Authorization "yourAuthToken"

Body (example)

{
   "group": "1",
   "key_id": "27",
   "list_type": "white_list",
   "value_ids": [53]

}


Required parameters: group, key_id, list_type, value_ids

...

Code Block
Content-Type application/json
Authorization "yourAuthToken"

Body (example)

{
   "group": "1",
   "key_id": "27",
   "list_type": "white_list",
   "value_ids": [53, 54]

}


Response

Status code 200

Code Block
[
  {
    'demand_tag_id': 122870,
    'free_values': [],
    'group': u'1',
    'id': 157,
    'key_id': 25,
    'list_type': u'white_list',
    'value_ids': [53, 54]
  }
]

...