Create Flight Segment Targeting Rule
FlightId
- Type: int32
- Required: Yes
- Description: The flight the targeting rule applies to
SegmentId
- Type: int32
- Required: Yes
- Description: Id of the Segment
IsExclude
- Type: boolean
- Default: false
- Description: Whether targeting is to be excluded or included.
Responses
200
Schema:
{
"Id": integer,
"FlightId": integer,
"SegmentId": integer,
"IsExclude": boolean,
"Segment": {
"Source": string,
"Name": string,
"Reach": object,
"Description": string,
"Category": string
}
}
400
Example Request
curl -X POST -H "X-Adzerk-ApiKey:<APIKEY>" -H "Content-Type:application/json" https://api.kevel.co/v1/flight/{FlightId}/segmenttargeting --data-binary '{"SegmentId":123456,"IsExclude":false}'
Example Response
{
"Id": 56789,
"FlightId": 55555,
"SegmentId": 123456,
"IsExclude": false,
"Segment": {
"Source": "audience",
"Name": "best customers",
"Reach": {
"all_time": 3187463,
"28d": 387434
},
"Description": "top 1% spenders in the last 30 days.",
"Category": "CRM"
}
}