Skip to content
gist.link ↗

campaign

Query Marketing API — POST https://marketing.api.gist.link/graphql

A single campaign (with nested adSets/ads), or null if not found. Any authenticated org member.

marketing:query:campaign

The calling IAM key must hold this permission (or a wildcard that covers it: marketing:query:* or marketing:*) and the access token must have been minted with audience=marketing. See Permissions.

type Query {
campaign(id: ID!): Campaign
}
Argument Type Required Description
id ID! Yes —

Campaign — see the Marketing types reference.

Terminal window
curl https://marketing.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Campaign($id: ID!) { campaign(id: $id) { id name status currency } }",
"variables": {
"id": "01a01234-abcd-7000-9000-0123456789ab"
}
}
JSON