Create Site/Zone Targeting

Why Create Site/Zone Targeting?

When you are working with a flight, you may find it beneficial to target the flight to a specific site or zone so you can optimize the performance of the flight. The Create Site/Zone Targeting API endpoint enables you to map a flight to a site and/or zone placement.

For more information on zones and sites, please refer to the Zone and Site technical documentation.

API Syntax

When using the Create 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:

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

Where:

  • POST - the type of API request being made.
  • https://api.kevel.co - the URL for the request.
  • v1 - the API version.
  • flight - the API endpoint being called.
  • FlightID - the ID associated with the flight.
  • sitezonetargeting - The site/zone you want to use for flight targeting.
Path Params
int32
required

ID of the Flight

Body Params
int32

ID of the Site

int32

ID of the Zone

boolean
Defaults to false

Whether targeting is to be excluded or included. Defaults to false, so if you leave this blank it'll target the site/zone.

Response

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json