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

# Update Tracking Tag

> Updates the URL of an X Ads tracking tag

Updates the URL of an X Ads tracking tag. X only allows the URL to change; recreate the tag to change its type or ad group.

|                       |                             |
| --------------------- | --------------------------- |
| **App**               | X Ads                       |
| **Operation ID**      | `x_ads_update_tracking_tag` |
| **Type**              | Action                      |
| **Connection**        | `x_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 the X Ads account that owns the tracking tag.                                                                                                                        |
| `tracking_tag_id`  | string or SelectItem | Yes      | -       | Tracking tag ID to update. Find it with x\_ads\_list\_tracking\_tags.                                                                                                       |
| `tracking_tag_url` | string               | Yes      | -       | The new third-party tracking URL, the only field X allows changing. Must be a Google Campaign Manager (DCM) tag whose URL carries the tag id in its dc\_trk\_cid parameter. |

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

## Output

**Type**: `Dict`

Returns the updated tracking tag.

**Fields**: dynamic (depend on the inputs)
