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

# Update Campaign

> Advanced: partially updates a Spotify campaign from a raw field payload; only provided fields change

Advanced: partially updates a Spotify campaign from a raw field payload; only provided fields change. Prefer the dedicated status and rename operations for simple changes.

|                       |                               |
| --------------------- | ----------------------------- |
| **App**               | Spotify Ads                   |
| **Operation ID**      | `spotify_ads_update_campaign` |
| **Type**              | Action                        |
| **Connection**        | `spotify_ads` (required)      |
| **Credits per run**   | 1                             |
| **Agent / MCP tool**  | Yes                           |
| **Requires approval** | Yes (write operation)         |

## Inputs

| Field            | Type                 | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ---------------- | -------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`        | DynamicAccount       | Yes      | -       | Select the Spotify Ads account that owns the campaign.                                                                                                                                                                                                                                                                                                                                                                                       |
| `campaign_id`    | string or SelectItem | Yes      | -       | Spotify campaign ID to update. Do not repeat it inside update\_payload.                                                                                                                                                                                                                                                                                                                                                                      |
| `update_payload` | object or string     | Yes      | -       | Campaign fields to update as a JSON object sent to the Spotify PATCH endpoint as-is; only the fields you include change. Editable fields per the Spotify docs: name (2-200 chars), purchase\_order (2-45 chars), and status (ACTIVE, PAUSED, or ARCHIVED). Prefer the dedicated operations for plain changes: spotify\_ads\_update\_campaign\_status, spotify\_ads\_rename\_campaign. Example: \{"name": "Q4 Awareness", "status": "PAUSED"} |
| `dry_run`        | boolean              | No       | `False` | When true, do not call Spotify. Return the resolved PATCH payload for review.                                                                                                                                                                                                                                                                                                                                                                |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `Dict`

Returns the updated fields and the PATCH payload applied.

**Fields**: `campaign_id`, `updated_fields`, `endpoint`, `payload`, `dry_run`
