Closed robrechtdr closed 7 years ago
There are no audience segments attached to that strategy. Are you looking to set up targeting through the SDK?
select count(*) from strategy_audience_segments where strategy_id = 1707441
count
0
Yes, I'm looking to put 14_Female_25-54_MaxComp
in "included audience" on t1.
Fod: "afaik right now we dont actually support this at all".
For whoever runs into this problem again; the api call to do te desired is under Change the Audience Targeting of a Strategy
on https://developer.mediamath.com/docs/read/execution_and_management_api/targeting/Audience_Segments .
With payload e.g.:
{ "segments.1.id":1645683, "segments.1.restriction": "INCLUDE", "include_op":"OR", "exclude_op":"OR" }
Bit confusing imo to have to pass on segments.1.restriction
as a string as dots are usually used for attributes of objects so expected the following was needed initially:
{ "segments": { 1: {"id": 1645683, "restriction": "INCLUDE"}}, "include_op":"OR", "exclude_op":"OR"}
What do I want to achieve?
For (e.g.) Strategy 1707441 I’d like to include the audience segment
14_Female_25-54_MaxComp
through the API.What have I tried?
Why I expected a non-empty object is because when I do
This properly includes those 3 dma location targets on t1.
Also, the child name
audience segments
should be correct because