Create Flight

This API call adds a new flight to a campaign.

Body Params
string
required

The flight name. Max length is 300 characters.

string
required

UTC start date in ISO 8601 format: YYYY-MM-DDTHH:MM:SS.SSSSSSS. This can also be sent in the format of YYYY-MM-DD.

int32
required

The ID of the campaign.

int32
required

The ID of the Priority. Here are the Priority API endpoints.

int32
required

This is the metric that Kevel uses to pace the ads so it hits the desired goal by the end date.  Key follows: 1 = Impressions 2 = Percentage 3 = Click 7 = Conversion 8 = Revenue 9 = Daily Revenue 10 = Monthly Revenue. Instructions are here

int32
required

The goal amount - specifies the number of GoalTypes to aim for during the life of the campaign. For Revenue, Daily Revenue and Monthly Revenue Goal Types the maximum Goal Amount is 500000000. For all other GoalTypes the maximum Goal Amount is 2147483647. Instructions are here. Note: the field is named Impressions even if Goal Type is not set to Impressions.

boolean
required
Defaults to false

Specifies whether campaigns should be active or inactive. Defaults to false.

int32
required

The Rate value - instructions here. Key: 1 = Flat 2 = CPM 3 = CPC 4 = CPA View 5 = CPA Click 6 = CPA View & Click.

string

UTC end date in ISO 8601 format: ``YYYY-MM-DDTHH:MM:SS.SSSSSSS. You can also send in a standard date of YYYY-MM-DD. **Required** if GoalTypeis not2, 9or10`.

boolean
Defaults to false

Specifies whether flight should be deleted. Do not use when creating a flight. Defaults to false.

float

The Price value - instructions here.

int32

The cap type metric. Instructions here. Key: 1 = Impressions 2 = Clicks 3 = Conversions 4 = Revenue. Do not set to 0 - if removing, set to null.

int32

The maximum # of CapType per day. Instructions here.

int32

The maximum # of CapType per lifetime. Instructions here.

string

Keywords used for targeting. Instructions here.

string

Zerkel string for Custom targeting. Instructions here. The maximum string length for CustomTargeting is 1000 characters.

string

Sets the value of custom fields based on a custom fields schema. Must contact support before use. More info here.

boolean

Set to true if doing capping. If false or null, then the other Freq fields are ignored. Learn more about FC here. If not already enabled, you'll need your account manager to enable it.

int32

The number of times the frequency cap should occur. Cannot be 0 unless FreqCapType is None (0).

int32

Specifies how often the frequency cap should occur. Cannot be 0 unless FreqCapType is None (0).

int32

Specifies which unit of time you would like frequency capping to occur. Key: 1 = Hour 2 = Day 3 = Minute.

boolean

If true, opts-it out of frequency cap settings imposed at advertiser or campaign level.

boolean

If true, enables companion ads. IsCompanion must be set to false when IsNoDuplicates is true, and vice versa. Learn more here.

boolean

If true, enables no duplicates. IsCompanion must be set to false when IsNoDuplicates is true, and vice versa.

int32

Indicates which level no duplicates should be enforced on. Key follows: 1: Flight 2: Campaign 3: Advertiser 4: Creative.

int32

Read-only. Status of the flight. The mapping of the status against the UI are in brackets. Key: 0 = Pending (blue) 1 = Healthy (green) 2 = BorderLine (amber) 3 = InDanger (red) 5 = Underdelivered (amber).

boolean

If true, enables conversion tracking endpoints/pixels.

boolean

Sets whether a flight in an adChained-enabled priority can pass back to the next flight in the adChain.

int32

Sets the order of a flight in the adChain. PassbackSortOrder is a transient value that can be modified by internal processes in the UI. Although the value may change, the actual sort order of flights in the adChain will remain consistent. Setting two flights to the same PassbackSortOrder will cause the flights to be chosen randomly. Setting PassbackSortOrder to 0 will cause the flight to appear as "--" in the UI, but the flight will still be part of the adChain. This is not recommended.

boolean

Specifies whether ECPM Optimization is enabled.

int32

Timeframe to optimize for [1 - 90 days].

float

The final eCPM will be multiplied by this amount. Must be at least 0.01.

float

Minimum eCPM. Must be at least 0.01.

float

Maximum eCPM. Must be at least 0.01.

float

This is the eCPM that will be used while the Flight is in burn-in mode. Must be at least 0.01.

int32

Impressions per creative to show before using the calculated eCPM over the default eCPM [1 - 2147483648].

float

Sets a manual override to a flight's CPM, e.g. so a Flat Rate flight can compete in an auction priority.

string
Defaults to Null

Targets the flight to certain hours within a day. Use ISO 8601 format: HH:MM:SS. (This parameter is part of Kevel's legacy day parting features. It is still supported, but will be ignored if a Flight has one or more new day parts. Learn more about new day parting features here and about legacy day parts here.)

string
Defaults to Null

Targets the flight to certain hours within a day. Use ISO 8601 format: HH:MM:SS. (This parameter is part of Kevel's legacy day parting features. It is still supported, but will be ignored if a Flight has one or more new day parts. Learn more about new day parting features here and about legacy day parts here.)

boolean
Defaults to false

If true, targets this day. Defaults to false if you have filled in the DateParting fields. (This parameter is part of Kevel's legacy day parting features. It is still supported, but will be ignored if a Flight has one or more new day parts. Learn more about new day parting features here and about legacy day parts here.)

boolean
Defaults to false

If true, targets this day. Defaults to false if you have filled in the DateParting fields. (This parameter is part of Kevel's legacy day parting features. It is still supported, but will be ignored if a Flight has one or more new day parts. Learn more about new day parting features here and about legacy day parts here.)

boolean
Defaults to false

If true, targets this day. Defaults to false if you have filled in the DateParting fields. (This parameter is part of Kevel's legacy day parting features. It is still supported, but will be ignored if a Flight has one or more new day parts. Learn more about new day parting features here and about legacy day parts here.)

boolean
Defaults to false

If true, targets this day. Defaults to false if you have filled in the DateParting fields. (This parameter is part of Kevel's legacy day parting features. It is still supported, but will be ignored if a Flight has one or more new day parts. Learn more about new day parting features here and about legacy day parts here.)

boolean
Defaults to false

If true, targets this day. Defaults to false if you have filled in the DateParting fields. (This parameter is part of Kevel's legacy day parting features. It is still supported, but will be ignored if a Flight has one or more new day parts. Learn more about new day parting features here and about legacy day parts here.)

boolean
Defaults to false

If true, targets this day. Defaults to false if you have filled in the DateParting fields. (This parameter is part of Kevel's legacy day parting features. It is still supported, but will be ignored if a Flight has one or more new day parts. Learn more about new day parting features here and about legacy day parts here.)

boolean
Defaults to false

If true, targets this day. Defaults to false if you have filled in the DateParting fields. (This parameter is part of Kevel's legacy day parting features. It is still supported, but will be ignored if a Flight has one or more new day parts. Learn more about new day parting features here and about legacy day parts here.)

boolean
Defaults to false

Specifies whether flight is archived.

boolean
Defaults to false

If true, the ad request needs exact longitude and latitude in order to use GeoDistance targeting settings.

string
Defaults to "UTC"

Sets a supported IANA time zone string to be used for the flight's daily caps, daily goals, and day parting. Note that even if a non-UTC TimeZone is set, start and end dates will still be in UTC.

boolean

Legacy parameter

int32

Legacy parameter

int32

Legacy parameter

float

Legacy parameter

int32

Legacy parameter

boolean

Legacy parameter

float
Defaults to null

For CPC/CPA/CPM auctions, a target return can be selected on ad spend (ROAS) goal and the decision engine will automatically adjust the CPC/CPA/CPM bid to try to achieve the goal set. Acceptable values are expressed as a decimal between 0.01–99.99. This is equivalent to 1%–9,999%.

BidModifiers
array of objects

See Bid Modifiers documentation for example usage.

BidModifiers
SiteZoneTargeting
array of objects
SiteZoneTargeting
Geotargeting
array of objects
Geotargeting
SegmentTargeting
array of objects
SegmentTargeting
AttributionView
object

The post-view attribution settings for this Flight. Set to null to disable. Learn more about Kevel's attribution functionality.

AttributionClick
object

The post-click attribution settings for this Flight. Set to null to disable. Learn more about Kevel's attribution functionality.

SearchTerms
object
AttributionSettings
object

Specify the products, categories, brands, and/or merchants that make a purchase eligible for attribution to Ads in this Flight. See Attribution Overview for more details.

Response

Language
Credentials
Header
Request
Response
Choose an example:
application/json