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

> Rename Microsoft Ads campaigns

Rename Microsoft Ads campaigns.

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

## Inputs

| Field             | Type                                                                      | Required | Default | Description                                                                                             |
| ----------------- | ------------------------------------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------- |
| `account`         | object or array of object or MicrosoftAdsAccountItem or string or integer | Yes      | -       | Select the Microsoft Ads account to rename campaigns in.                                                |
| `update_type`     | string or SelectableOption                                                | Yes      | -       | Choose whether to rename a single campaign or multiple campaigns at once. Options: 'single' or 'bulk'.  |
| `campaign_id`     | string or SelectItem                                                      | No       | -       | Select the campaign ID to rename. Required for single update.                                           |
| `campaign_name`   | string                                                                    | No       | -       | Enter the new campaign name. 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. |

### MicrosoftAdsAccountItem

| Field        | Type   | Required | Default | Description                                                                                                     |
| ------------ | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------- |
| `value`      | string | Yes      | -       |                                                                                                                 |
| `label`      | string | Yes      | -       |                                                                                                                 |
| `customerId` | string | No       | -       | The Microsoft Ads customer ID used for REST CustomerId headers. If omitted, it is resolved from the account ID. |

### 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**: `Dict`

Returns Microsoft Ads campaign rename results.

**Fields**: `message`, `updated_count`, `results`
