---
title: "Create Campaigns"
method: POST
path: "/v1/campaign"
---

# Create Campaigns

`POST /v1/campaign`

## Request

- Base URL: `https://api.kevel.co`
- URL: `https://api.kevel.co/v1/campaign`
- Auth: API key in header `X-Adzerk-ApiKey`

## Request body

- object
  - `AdvertiserId` integer, required: The advertiser's ID for the campaign.
  - `Name` string, required: The campaign name.
  - `Flights` integer[]: You can pass an array of flights, a blank array, or not include. See [Create Flight](ref:create-flight) endpoint.
  - `IsActive` boolean: Specifies whether campaign should be active (serving ads). Defaults to `false`.
  - `IsDeleted` boolean: Specifies whether campaign should be deleted. Do not use when creating a campaign.
  - `IsArchived` boolean: Specifies whether campaign should be archived. Do not use when creating a campaign.
  - `FreqCap` integer: The number of times the frequency cap should occur.
  - `FreqCapDuration` integer: Specifies how often the frequency cap should occur.
  - `FreqCapType` integer: The enum value for how often frequency capping should occur. `1 = Hour 2 = Day 3 = Minute`.
  - `DontAffectParentFreqCap` boolean: "Opts-out" campaign from advertiser-level frequency cap settings.
  - `CapType` integer: Set to `CapType = 4`. Campaigns can only budget cap on revenue metric. Do not set to `0` - if removing, set to `null`.
  - `DailyCapAmount` integer: The max daily revenue.
  - `LifetimeCapAmount` integer: The max lifetime revenue.

## Response `200`

200

- object
  - `IsActive` boolean
  - `DontAffectParentFreqCap` unknown
  - `Flights` unknown[]
    - unknown
  - `DailyCapAmount` unknown
  - `FreqCapType` integer
  - `EndDate` unknown
  - `CapType` unknown
  - `IsFreqCap` boolean
  - `IsDeleted` boolean
  - `EndDateISO` unknown
  - `Price` integer
  - `IsArchived` boolean
  - `LifetimeCapAmount` unknown
  - `FreqCapDuration` unknown
  - `FreqCap` unknown
  - `SalespersonId` unknown
  - `AdvertiserId` integer
  - `Name` string
  - `Id` integer
  - `CustomFieldsJson` unknown
  - `StartDateISO` string

---

[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)
