gtm_zone
Perform create, get, list, update, remove, and revert zone operations in Google Tag Manager.
Instructions
Performs various zone operations including create, get, list, update, remove, and revert actions. The 'list' action returns up to 20 items per page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (starts from 1). Each page contains up to itemsPerPage items. | |
| action | Yes | The zone operation to perform. Must be one of: 'create', 'get', 'list', 'update', 'remove', 'revert'. | |
| zoneId | No | The unique ID of the GTM Zone. Required for all actions except 'create' and 'list'. | |
| accountId | Yes | The unique ID of the GTM Account containing the zone. | |
| containerId | Yes | The unique ID of the GTM Container containing the zone. | |
| fingerprint | No | Fingerprint for optimistic concurrency control. Required for 'update' and 'revert' actions. | |
| workspaceId | Yes | The unique ID of the GTM Workspace containing the zone. | |
| itemsPerPage | No | Number of items to return per page (1-20). Default: 20. Use lower values if experiencing response issues. | |
| createOrUpdateConfig | No | Configuration for 'create' and 'update' actions. All fields correspond to the GTM zone resource, except IDs. |