---
title: "List campaigns across selected ad accounts"
description: "PubNio API ads.listWorkspaceCampaigns: list campaigns across selected ad accounts. 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 campaigns across selected ad accounts

List campaigns across selected ad accounts with [`GET /api/v1/ads/campaigns`](https://pubnio.com/api/v1/docs#tag/ads/GET/api/v1/ads/campaigns). Requires an API key with the `read` scope or a signed-in workspace member.

## Request

Provider-native campaigns are included read-only with managed=provider. Filter by account, provider, status, or managed state. Reads return stored rows with syncedAt.

| Parameter     | In    | Type                     | Required |
| ------------- | ----- | ------------------------ | -------- |
| `workspaceId` | query | UUID                     | Yes      |
| `accountId`   | query | UUID                     | No       |
| `provider`    | query | one of 9 strings         | No       |
| `status`      | query | one of 9 strings         | No       |
| `managed`     | query | `"provider"`, `"pubnio"` | No       |
| `cursor`      | query | string                   | No       |
| `limit`       | query | string                   | No       |

## Response

- HTTP 200: `AdCampaignList` with `data`, `hasMore`, `nextCursor`, `freshness`.

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

## Examples

### TypeScript

```ts
const campaigns = await workspace.ads.campaigns({ provider: "meta_ads" });
```

### Python

```python
campaigns = workspace.ads.list_workspace_campaigns()
```

### cURL

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

### CLI

```sh
pnio ads list-workspace-campaigns --provider meta_ads
```

### MCP execute

```js
async () => {
  const response = await codemode.request({
    method: "GET",
    path: "/api/v1/ads/campaigns",
    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-workspace-campaigns/index.mdx
