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

AdvertiserIdinteger required

The advertiser's ID for the campaign.

Namestring required

The campaign name.

Flightsinteger[]

You can pass an array of flights, a blank array, or not include. See Create Flight endpoint.

IsActiveboolean

Specifies whether campaign should be active (serving ads). Defaults to false.

IsDeletedboolean

Specifies whether campaign should be deleted. Do not use when creating a campaign.

IsArchivedboolean

Specifies whether campaign should be archived. Do not use when creating a campaign.

FreqCapinteger

The number of times the frequency cap should occur.

FreqCapDurationinteger

Specifies how often the frequency cap should occur.

FreqCapTypeinteger

The enum value for how often frequency capping should occur. 1 = Hour 2 = Day 3 = Minute.

DontAffectParentFreqCapboolean

"Opts-out" campaign from advertiser-level frequency cap settings.

CapTypeinteger

Set to CapType = 4. Campaigns can only budget cap on revenue metric. Do not set to 0 - if removing, set to null.

DailyCapAmountinteger

The max daily revenue.

LifetimeCapAmountinteger

The max lifetime revenue.

Response

200

IsActiveboolean
DontAffectParentFreqCapunknown
DailyCapAmountunknown
FreqCapTypeinteger
EndDateunknown
CapTypeunknown
IsFreqCapboolean
IsDeletedboolean
EndDateISOunknown
Priceinteger
IsArchivedboolean
LifetimeCapAmountunknown
FreqCapDurationunknown
FreqCapunknown
SalespersonIdunknown
AdvertiserIdinteger
Namestring
Idinteger
CustomFieldsJsonunknown
StartDateISOstring

Example response

{
  "AdvertiserId": 12345,
  "Name": "Nike Q4 Campaign",
  "Id": 123456,
  "StartDateISO": "2017-01-01T00:00:00.0000000"
}

Changes

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