---
title: "Read an ad account's spend policy"
description: "PubNio API ads.getSpendPolicy: read an ad account's spend policy. 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.

# Read an ad account's spend policy

Read an ad account's spend policy with [`GET /api/v1/ads/accounts/{accountId}/spend-policy`](https://pubnio.com/api/v1/docs#tag/ads/GET/api/v1/ads/accounts/{accountId}/spend-policy). Requires an API key with the `ads_read` scope or a signed-in workspace member.

## Request

Returns monthly and daily caps, per-campaign budget limits, kill-switch state, and revision from stored rows. A missing policy reports configured=false with revision 0. No provider call happens during the request.

| Parameter     | In    | Type | Required |
| ------------- | ----- | ---- | -------- |
| `accountId`   | path  | UUID | Yes      |
| `workspaceId` | query | UUID | Yes      |

## Response

- HTTP 200: `AdSpendPolicy` with `accountId`, `currency`, `configured`, `monthlyCap`, `dailyCap`, `maxCampaignDailyBudget`, `maxCampaignLifetimeBudget`, `killSwitchActive`, `killSwitchAt`, `killSwitchReason`, `revision`, `updatedAt`.

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

## Examples

### TypeScript

```ts
const policy = await workspace.ads.spendPolicy(accountId);
```

### Python

```python
policy = workspace.ads.get_spend_policy(account_id)
```

### cURL

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

### CLI

```sh
pnio ads get-spend-policy "$ACCOUNT_ID"
```

### MCP execute

```js
async () => {
  const accountId = "<accountId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/ads/accounts/${accountId}/spend-policy`,
    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

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

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

Source: https://pubnio.com/docs/reference/ads-get-spend-policy/index.mdx
