Update Ad Segment Targeting Rule

Update an Ad to Segment targeting rule

put/v1/ad/{AdId}/segmenttargeting/{Id}

Request

  • Base URL
    https://api.kevel.co
  • URL
    https://api.kevel.co/v1/ad/{AdId}/segmenttargeting/{Id}
  • Auth
    API key in header X-Adzerk-ApiKey

Path parameters

AdIdinteger required

The Ad the targeting rule applies to

SegmentTargetingIdinteger required

Id of the Ad Segment targeting rule

Request body

IsExcludeboolean

Whether targeting is to be excluded or included.

Response

200

Idinteger
AdIdinteger
SegmentIdinteger
IsExcludeboolean

Example response

{
  "Id": 56789,
  "AdId": 55555,
  "SegmentId": 123456,
  "IsExclude": true,
  "Segment": {
    "Source": "audience",
    "Name": "best customers",
    "Reach": {
      "all_time": 3187463,
      "28d": 387434
    },
    "Description": "top 1% spenders in the last 30 days.",
    "Category": "CRM"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.