> ## Documentation Index
> Fetch the complete documentation index at: https://docs.permutive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Campaigns

**Tool name** `list_campaigns`

> [!NOTE]
>
> Read-only · Idempotent

Lists a workspace's individual GAM campaigns (orders), one per row, with each campaign's lifetime delivery — impressions, CTR, and active status — filtered by a name/id search, active/inactive status, and Permutive-targeting, and ordered by name, dates, impressions, or CTR. Returns one page of named campaigns at a time.

## Example prompt

> Show me the active Permutive-targeted campaigns across my workspaces, sorted by impressions.

## Parameters

**cohort\_id** `string`

Restrict to campaigns whose targeting included this cohort (by short id). When set, `impressions` and `ctr` become the cohort's own targeted figures within each campaign rather than the campaign's lifetime totals.

**name\_contains** `string`

Case-insensitive substring matched against each campaign's name and campaign id. Omit to match all campaigns.

**page\_token** `string`

Opaque token from a previous response's `next_page_token`, to fetch the next page.

**permutive\_targeted\_only** `boolean`

When true (the default), only campaigns that use Permutive targeting; when false, all campaigns in the workspace.

**sort\_by** `enum`

Field to order the listing by. Omit for the default order — active campaigns first, then soonest end date. one of: `name`, `start_date`, `end_date`, `impressions`, `ctr`.

**sort\_order** `enum`

Order direction. Defaults to ascending. Ignored when sort\_by is omitted (the default order is fixed). one of: `asc`, `desc`.

**status** `enum`

Restrict to active or inactive campaigns. A campaign is active when its end date is in the future. Omit for both. one of: `active`, `inactive`.

**workspace\_ids** `string[]` *required*

Workspaces whose GAM campaigns (orders) are aggregated into a single flat list. min 1 item.

## Returns

**campaigns** `CampaignListItem[]`

A page of campaigns matching the query, in the requested order.

**CampaignListItem**

**active** `boolean` *required*

Whether the campaign is currently active — its end date is in the future.

**agency** `string`

Agency associated with the order, when GAM records one. Often absent.

**campaign\_id** `string` *required*

The campaign id. Pass to get\_campaign to read one campaign in detail.

**ctr** `number (double)` *required*

Lifetime click-through rate. When the cohort filter is set, this is instead the cohort's own targeted CTR within the campaign.

**end\_date** `string` *required*

Order end date (ISO 8601).

**impressions** `integer (int64)` *required*

Lifetime impressions delivered against the order. When the cohort filter is set, this is instead the cohort's own targeted impressions within the campaign.

**name** `string` *required*

Campaign (order) name.

**permutive\_targeted** `boolean` *required*

Whether the campaign uses Permutive targeting.

**start\_date** `string` *required*

Order start date (ISO 8601).

**workspace\_ids** `string[]` *required*

Which of the requested workspaces this campaign appears under. min 1 item.

**next\_page\_token** `string`

Pass as `page_token` to fetch the next page. Absent on the last page. Valid for about 15 minutes from the first page, so other tool calls in between are fine.

**total\_matching** `integer (int32)` *required*

Total campaigns matching the filters across all pages, before pagination.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.