Flights/Baked-In Ad Flights

Create a new flight

Changed on

Submit start and end dates along with buy info for a single flight, to facilitate spend calculation.

post/measurement/baked_in_ads/{ad_id}/flights

Request

  • Base URL
    https://api.magellan.ai/v2
  • URL
    https://api.magellan.ai/v2/measurement/baked_in_ads/{ad_id}/flights
  • Auth
    API key in header Authorization

Path parameters

ad_idstring required
Example:0123456789abcdef

Request body

Example request

{
  "measurementFlight": {
    "startDate": "2024-03-01",
    "endDate": "2024-03-31"
  }
}

Response

OK

idinteger
startDatestring date required
endDatestring date required
expectedImpressionsinteger
impressionCapinteger
cpmnumber
costPerSpotnumber
uidstring

Example response

{
  "id": 123,
  "startDate": "2024-03-01",
  "endDate": "2024-03-31",
  "expectedImpressions": 100,
  "cpm": 10,
  "uid": "qtr-1-flight-1",
  "ad": {
    "id": "0123456789abcdef",
    "name": "The Pod Show - Mid-Roll",
    "uid": "ad-123-456",
    "podcast": {
      "id": 1,
      "title": "The Pod Show"
    },
    "cohorts": [
      {
        "cohortName": "Creative",
        "subCohortName": "Holiday 30s"
      }
    ]
  }
}

Changes