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
In [1]: tag = springserve.demand.get(30424)

In [2]: tag.key_value_targeting = True
In [3]: tag.targeting_keys = [{'key_id': 90, 'list_type': 'white_list', 'group': 1, 'value_ids': [60]}]

In [4]: demand_keytag.ok
Out [4]: True

API

POST /api/v0/demand_tags/<demand_tag_id>/demand_tag_keys/<id>

...