v1
latestOpenAPI 3.1.02026-07-2616636641.7 KBUpdate Flights
This lets you update flights.
put/v1/flight/{FlightID}
Path parameters
FlightIDinteger required
This is the ID of the Flight
Query parameters
excludeAdsboolean
If true, the endpoint returns only the flight metadata without ad objects
Request body
Response
200
Example response
{
"Name": "A Different Name",
"StartDateISO": "2017-05-01T00:00:00.00.0000000",
"EndDateISO": "2017-12-31T00:00:00.00.0000000",
"CampaignId": 1234,
"PriorityId": 1234,
"GoalType": 1,
"Impressions": 20000,
"RateType": 2,
"Price": 5,
"CapType": 1,
"DailyCapAmount": 5000,
"LifetimeCapAmount": 50000,
"IsActive": true,
"Keywords": "exercise",
"GeoTargeting": [
{
"CountryCode": "US",
"Region": "NC",
"MetroCode": 560
}
],
"SiteZoneTargeting": [
{
"SiteId": 123,
"ZoneId": 321
}
],
"IsFreqCap": true,
"FreqCap": 2,
"FreqCapDuration": 10,
"FreqCapType": 1,
"DontAffectParentFreqCap": true,
"IsCompanion": true,
"IsTrackingConversions": true,
"CanPassback": true,
"PassbackSortOrder": 1,
"IsSunday": true,
"IsSaturday": true,
"IsECPMOptimized": true,
"ECPMOptimizePeriod": 30,
"ECPMMultiplier": 1.25,
"FloorECPM": 0.15,
"CeilingECPM": 0.35,
"DefaultECPM": 0.28,
"ECPMBurnInImpressions": 1000,
"BehavioralTargeting": {
"onClick": {
"stopShowingAdsFromFlight": true,
"stopShowingAdsFromAdvertiser": true,
"storeCategoriesFromFlightAsInterest": true
},
"onConvert": {
"stopShowingAdsFromFlight": true,
"stopShowingAdsFromAdvertiser": true,
"storeCategoriesFromFlightAsInterest": true
}
}
}