---
title: "Update campaign"
method: PATCH
path: "/ads/campaigns/{id}"
tags: ["Ads"]
---

# Update campaign

`PATCH /ads/campaigns/{id}`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/ads/campaigns/{id}`
- Auth: API key in header `Authorization`

Update campaign budget / bid strategy (Meta).

## Path parameters

- `id` string, required

## Request body

- object: Fields to update.
  - `platform` string
  - `budget` object: `{ amount, type }` — `type` is `daily` or `lifetime`. Whole currency units, NOT cents: 20 = $20.00. Meta's own Marketing API takes this number in minor units, so it is an easy and expensive mix-up — 2000 here buys $2000.00 of ads, not $20.00.
    - `amount` number, required: Whole currency units, NOT cents: 20 = $20.00. Meta's own Marketing API takes this number in minor units, so it is an easy and expensive mix-up — 2000 here buys $2000.00 of ads, not $20.00.
    - `type` 'daily' | 'lifetime', required
  - `bid_strategy` string

## Response `200`

Updated campaign.

- object: Updated campaign.

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `409`: Account not activated for ads (call POST /v1/socials/activate first).
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
