List Flights for Campaign

Lists all flights for a particular campaign.

Why List Flights For A Campaign?

When you want to review an existing campaign to assess its performance, or make changes to the campaign, it is helpful to have a list of campaigns associated with that campaign. This API call enables you to return an array of all flights that are associated with a specific campaign.

🚧

Caution

If a flight contains ads, only the first 200 ads in the flight will be listed in the response. To view all the ads in a flight, use the List Ads for Flight endpoint.

For details of the filter query parameter, see List Flights.

API Syntax

When using the List Flights for Campaign API call, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

GET https://api.kevel.co/v1/campaign/{CampaignID}/flight

Where:

  • GET - the type of API request being made.
  • https://api.kevel.co - the URL for the request.
  • v1 - the API version.
  • campaign - the API endpoint being called.
  • CampaignID - the ID for the specific campaign you want to return.
  • flight - the value to return from the campaign.
Path Params
int32
required

ID of the Campaign

Query Params
string
enum

Limit the set of returned flights. Omission is equivalent to not-archived. See List Flights for details.

Allowed:
boolean

DEPRECATED. If true, returns only active flights. Deprecated: will be removed in the future. Use filter in preference.

boolean
Defaults to false

If true, the endpoint returns only the flight data without ad objects

Response

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json