> ## 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 Ad Status

> Update the status of OpenAI Ads ads to enable, pause, or archive / delete them

Update the status of OpenAI Ads ads to enable, pause, or archive / delete them.

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

## Inputs

| Field       | Type                       | Required | Default | Description                                                                        |
| ----------- | -------------------------- | -------- | ------- | ---------------------------------------------------------------------------------- |
| `ad_id`     | string or SelectableOption | Yes      | -       | Ad ID to update (from openai\_ads\_list\_ads).                                     |
| `ad_status` | string or SelectableOption | Yes      | -       | Desired ad status: 'active', 'paused', or 'archived'. Archiving is not reversible. |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `Dict`

Returns the updated ad object exactly as returned by the OpenAI Ads API (id, name, status, creative, review, review\_status, created\_at, updated\_at).

**Fields**: dynamic (depend on the inputs)

**Example**:

```json theme={"dark"}
{
  "id": "ad_...",
  "name": "Planner launch card",
  "status": "paused",
  "creative": {
    "type": "chat_card",
    "title": "Try the planner",
    "target_url": "https://example.com"
  },
  "review_status": "approved"
}
```
