Skip to main content
GET
Get campaign

Authorizations

Authorization
string
header
required

API key or access token

Path Parameters

id
string
required

Unique identifier for the campaign

Minimum string length: 1
Example:

"cmp_987654321"

Query Parameters

fresh

When true, bypasses the server-side media-buy query cache for this request. Use after a successful lifecycle write when immediate authoritative local readback is required.

Example:

"true"

mediaBuyId

Filter the embedded mediaBuys[] array to only the media buys with these IDs. Accepts a single ID (?mediaBuyId=mb_X) or repeated values (?mediaBuyId=mb_X&mediaBuyId=mb_Y). The campaign object itself is unchanged; only the nested media buys are narrowed. Use to drill into specific buys without loading every buy on the campaign (helps when the full tree exceeds an LLM context window). mediaBuyRefs still lists every buy on the campaign so callers can discover IDs.

Example:

"mb_ETBn4gJ9Wu"

includePropertyLists

When true, embed a propertyLists aggregate showing the include/exclude lists actually applied to this campaign via its media-buy packages. Defaults to false to keep the response small. To fetch the aggregate without the rest of the campaign, use GET /campaigns/:campaignId/property-lists.

Example:

"true"

includeProductDetails

When false, strips formatOptions from each product in mediaBuys[].products[]. Defaults to true (full product details included). Set to false when the goal is to read packageId values or other non-product fields and the full product payload would cause response truncation.

Example:

"false"

fields

Optional response enrichment fields. Pass geo_metro_names to include display labels for geo_metros from the local label table.

Example:

"geo_metro_names"

Response

Get campaign

Response containing a single campaign

campaign
object
required

Campaign resource representation

warnings
string[]

Non-blocking advisories about the campaign. On create, includes a soft credit-limit warning when the budget already exceeds the org’s available Scope3 credit (the campaign is still created; the hard 402 gate fires at execute).