---
title: "Create Geo-Targeting"
method: POST
path: "/v1/flight/{FlightID}/geotargeting"
---

# 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

- `FlightID` integer, required

## Request body

- object
  - `CountryCode` string: The 2-3 character string that denotes the country you want to target
  - `Region` string: The 2-3 character string that denotes the region (or state) that you want to target
  - `MetroCode` integer: The 3 digit number that denotes the metropolitan area you want to target. US only.
  - `City` string: The name of the city you want to target
  - `CityGeonameId` integer: 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.
  - `IsExclude` boolean: If leave blank, this will default to `false/null` and target the country. If you want to exclude it instead, use `true`

## Response `200`

200

- object
  - `LocationId` integer
  - `FlightId` integer
  - `CountryCode` string
  - `Region` string
  - `MetroCode` integer
  - `City` string
  - `CityGeonameId` integer
  - `IsExclude` boolean

---

[API](https://skmtc.dev/kevel/apis/management-api-2.md) - [All operations](https://skmtc.dev/kevel/apis/management-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/kevel/apis/management-api-2/revisions/fe6c8716ca08?raw)
