Create Geo-Targeting

post/v1/flight/{FlightID}/geotargeting

Request

  • Base URL
    https://api.kevel.co
  • URL
    https://api.kevel.co/v1/flight/{FlightID}/geotargeting
  • Auth
    API key in header X-Adzerk-ApiKey

Path parameters

FlightIDinteger required

ID of the Flight

Request body

CountryCodestring

The 2-3 character string that denotes the country you want to target

Regionstring

The 2-3 character string that denotes the region (or state) that you want to target

MetroCodeinteger

The 3 digit number that denotes the metropolitan area you want to target. US only.

Citystring

The name of the city you want to target

CityGeonameIdinteger

The numeric geoname ID that denotes the city you want to target. This is the value matched for city targeting. Retrieve valid IDs from the List Cities in Region endpoint.

IsExcludeboolean

If leave blank, this will default to false/null and target the country. If you want to exclude it instead, use true

Response

200

LocationIdinteger
FlightIdinteger
CountryCodestring
Regionstring
MetroCodeinteger
Citystring
CityGeonameIdinteger
IsExcludeboolean

Example response

{
  "LocationId": 76543,
  "FlightId": 12345,
  "CountryCode": "US",
  "Region": "NC",
  "MetroCode": 560,
  "City": "Durham",
  "CityGeonameId": 4464368
}

Changes

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