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

# Duplicate Adset

> Create a new Meta Ads adset by duplicating an existing adset with the option to copy associated ads or move to a different campaign

Create a new Meta Ads adset by duplicating an existing adset with the option to copy associated ads or move to a different campaign.

|                       |                            |
| --------------------- | -------------------------- |
| **App**               | Meta Ads                   |
| **Operation ID**      | `meta_ads_duplicate_adset` |
| **Type**              | Action                     |
| **Connection**        | `meta_ads` (required)      |
| **Credits per run**   | 2                          |
| **Agent / MCP tool**  | Yes                        |
| **Requires approval** | Yes (write operation)      |

## Inputs

| Field             | Type                       | Required | Default                 | Description                                                                                                          |
| ----------------- | -------------------------- | -------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `account`         | DynamicAccount             | Yes      | -                       | Select Meta Ads account, ask the user for it if not provided                                                         |
| `adset_id`        | string or SelectItem       | Yes      | -                       | Select the ad set to duplicate                                                                                       |
| `campaign_id`     | string or SelectItem       | No       | -                       | Optional: Select a different campaign to move the duplicated ad set to. Leave empty to keep under the same campaign. |
| `deep_copy`       | string or SelectableOption | No       | `false`                 | Whether to copy all child ads. Options: 'false' (Ad Set Only), 'true' (Ad Set + Ads)                                 |
| `status`          | string or SelectableOption | No       | `PAUSED`                | Status of the duplicated ad set.                                                                                     |
| `rename_strategy` | string or SelectableOption | No       | `ONLY_TOP_LEVEL_RENAME` | Which entities to rename.                                                                                            |
| `rename_prefix`   | string                     | No       | -                       | Text to prepend to names                                                                                             |
| `rename_suffix`   | string                     | No       | -                       | Text to append to names                                                                                              |
| `start_time`      | integer                    | No       | -                       | Start time for delivery (Unix timestamp)                                                                             |
| `end_time`        | integer                    | No       | -                       | End time for delivery (Unix timestamp). Set to 0 for ongoing delivery with daily budget.                             |

### 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 duplicated adset details.

**Fields**: `new_adset_id`, `original_adset_id`
