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

> Renames Pinterest Ads ad groups, one at a time or in bulk

Renames Pinterest Ads ad groups, one at a time or in bulk.

|                       |                                 |
| --------------------- | ------------------------------- |
| **App**               | Pinterest Ads                   |
| **Operation ID**      | `pinterest_ads_rename_ad_group` |
| **Type**              | Action                          |
| **Connection**        | `pinterest_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 Pinterest Ads account to rename ad groups in.                                                     |
| `update_type`     | string or SelectableOption                    | Yes      | -       | Choose whether to rename a single ad group or multiple ad groups at once. Options: single or bulk.       |
| `ad_group_id`     | string or SelectItem                          | No       | -       | Pinterest ad group ID to rename. Required for single update.                                             |
| `ad_group_name`   | string                                        | No       | -       | The new name for the ad group. Required for single update.                                               |
| `structured_data` | array (also accepts a comma-separated string) | No       | -       | Use only when update\_type is bulk. Required columns: ad\_group\_id and ad\_group\_name. Up to 100 rows. |

### 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 ad group rename.
