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

# Publish Version

> Publishes a Google Tag Manager container version, making it the live configuration on every page or app using the container

Publishes a Google Tag Manager container version, making it the live configuration on every page or app using the container. Get the version from gtm\_create\_version or gtm\_list\_versions.

|                       |                       |
| --------------------- | --------------------- |
| **App**               | Google Tag Manager    |
| **Operation ID**      | `gtm_publish_version` |
| **Type**              | Action                |
| **Connection**        | `gtm` (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 Google Tag Manager account.                                                                  |
| `container` | DynamicAccount | Yes      | -       | Select the container.                                                                                   |
| `version`   | DynamicAccount | Yes      | -       | Select the container version, or provide a version ID from gtm\_list\_versions or gtm\_create\_version. |

## Output

**Type**: `Dict`

Returns the published containerVersion as provided by the Tag Manager API.
