Create Ad Segment Targeting Rule

Schema

AdId

SegmentId

IsExclude

Responses

200

400


Code Example

curl -X POST -H "X-Adzerk-ApiKey:<APIKEY>" -H "Content-Type:application/json" https://api.kevel.co/v1/ad/{AdId}/segmenttargeting --data-binary '{"SegmentId":123456,"IsExclude":false}'

Example Response

{
  "Id": 56789,
  "AdId": 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"
  }
}