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

> Renames Meta Ads campaigns to update their display names

Renames Meta Ads campaigns to update their display names

|                       |                            |
| --------------------- | -------------------------- |
| **App**               | Meta Ads                   |
| **Operation ID**      | `meta_ads_rename_campaign` |
| **Type**              | Action                     |
| **Connection**        | `meta_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 Meta Ads account to rename campaigns in, ask the user for it if not provided                                                |
| `update_type`     | string or SelectableOption                    | Yes      | -       | Choose whether to rename a single campaign or multiple campaigns at once. Options: 'single' (Single Update), 'bulk' (Bulk Updates) |
| `campaign_id`     | string or SelectItem                          | No       | -       | Select the campaign ID to rename (required for single update)                                                                      |
| `campaign_name`   | string                                        | No       | -       | The new name for the campaign (required for single update)                                                                         |
| `structured_data` | array (also accepts a comma-separated string) | No       | -       | Structured data with 'campaign\_id' and 'campaign\_name' fields for each row (required for bulk update)                            |

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

### SelectableOption

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

## Output

**Type**: `str`

Returns success message confirming campaign rename.
