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]: demand_key =tag.key_value_targeting = True In [3]: tag.add_key({'group': 1, targeting_keys = [{'key_id':27 90, 'list_type': 'white_list', 'group': 1, 'value_ids': [5360]})] In [4]: demand_key.ok Out [4]: True |
...