gtm_destination
Get, list, link, or unlink Google Tag Manager destinations using account and container IDs. Lists support pagination up to 50 items per page.
Instructions
Performs all destination operations: get, list, link, unlink. The 'list' action returns up to 50 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 destination operation to perform. Must be one of: 'get', 'list', 'link', 'unlink'. | |
| accountId | Yes | The unique ID of the GTM Account containing the destination. | |
| containerId | Yes | The unique ID of the GTM Container containing the destination. | |
| itemsPerPage | No | Number of items to return per page (1-50). Default: 50. Use lower values if experiencing response issues. | |
| destinationId | No | The unique ID of the GTM Destination. Required for 'get', 'link', and 'unlink' actions. | |
| allowUserPermissionFeatureUpdate | No | If true, allows user permission feature update during linking. Optional for 'link' action. |