Get Site/Zone Targeting

Why Get Site/Zone Targeting?

If you would like to review the properties for a specific site/zone targeting ID before making any changes, you can use the Get Site/Zone Targeting API endpoint to return this information to you. By using the GET command, you can return properties and details for a specific site/zone targeting ID using the ID for the Site/Zone Targeting object.

API Syntax

When using the Get Site/Zone Targeting API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

GET https://api.kevel.co//v1/flight/{FlightID}/sitezonetargeting/{SiteZoneTargetingID}

Where:

FlightID

int32

required

ID of the Flight

SiteZoneTargetingID

int32

required

ID of the Site Zone Targeting parameter. You can pull it through the Get Flight endpoint if you don't have.

Response Structure

200      200

object

Id
integer

Defaults to 0

FlightId
integer

Defaults to 0

SiteId
integer

Defaults to 0

ZoneId
integer

Defaults to 0

IsExclude
boolean

Defaults to false

Example Request

curl -X GET -H 'X-Adzerk-ApiKey:<APIKEY>' "https://api.kevel.co/v1/flight/12345/sitezonetargeting/98765"

Example Response

{
  "Id": 98765,
  "FlightId": 12345,
  "SiteId": 678,
  "ZoneId": 910,
  "IsExclude": false
}