---
title: "List campaign plans"
description: "PubNio API ads.listCampaignPlans: list campaign plans. Request fields, examples in five clients, errors, and idempotency."
---

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

# List campaign plans

List campaign plans with [`GET /api/v1/ads/plans`](https://pubnio.com/api/v1/docs#tag/ads/GET/api/v1/ads/plans). Requires an API key with the `ads_read` scope or a signed-in workspace member.

## Request

Newest first within the workspace, filtered by plan status. Each row carries its per-target operation status.

| Parameter     | In    | Type             | Required |
| ------------- | ----- | ---------------- | -------- |
| `workspaceId` | query | UUID             | Yes      |
| `status`      | query | one of 6 strings | No       |
| `cursor`      | query | string           | No       |
| `limit`       | query | string           | No       |

## Response

- HTTP 200: `AdCampaignPlanList` with `data`, `hasMore`, `nextCursor`.

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const plans = await workspace.ads.campaignPlans();
```

### Python

```python
plans = workspace.ads.list_campaign_plans()
```

### cURL

```sh
curl "https://pubnio.com/api/v1/ads/plans?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio ads list-campaign-plans
```

### MCP execute

```js
async () => {
  const response = await codemode.request({
    method: "GET",
    path: "/api/v1/ads/plans",
    query: { workspaceId: codemode.workspaceId },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [every Ads operation](https://pubnio.com/docs/reference/#ads) and [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- Up to 100 items a page; pass `nextCursor` back as `cursor`. See [Pagination](https://pubnio.com/docs/concepts/pagination/).

## Related

- [Ads operations](https://pubnio.com/docs/reference/#ads)

Source: https://pubnio.com/docs/reference/ads-list-campaign-plans/index.mdx
