Update Geo-Targeting

put/v1/flight/{FlightID}/geotargeting/{LocationID}

Request

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

Path parameters

FlightIDinteger required

ID of the Flight

LocationIDinteger required

ID from the Geo-Targeting Endpoint

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 true, this will exclude the country from targeting. Defaults to false/null

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.