> ## 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.

# Rename Ad

> Rename an OpenAI Ads ad

Rename an OpenAI Ads ad.

|                       |                         |
| --------------------- | ----------------------- |
| **App**               | OpenAI Ads              |
| **Operation ID**      | `openai_ads_rename_ad`  |
| **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 rename (from openai\_ads\_list\_ads). |
| `name`  | string                     | Yes      | -       | New ad name (3-1000 characters).               |

### 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 v2",
  "status": "active",
  "creative": {
    "type": "chat_card",
    "title": "Try the planner",
    "target_url": "https://example.com"
  },
  "review_status": "approved"
}
```
