Actions27
- Account Actions
- Built-In Variable Actions
- Client Actions
- Container Actions
- Destination Actions
- Environment Actions
Account → List Accounts
AI-generatedOverview
This node interacts with the Google Tag Manager API to list all GTM accounts accessible to the authenticated user. It is useful for scenarios where you need to retrieve and manage multiple GTM accounts programmatically, such as in automation workflows for account auditing, reporting, or bulk operations.
Use Case Examples
- Retrieve a list of all Google Tag Manager accounts linked to your Google account.
- Use the list of accounts to select a specific account for further operations like container management or user permissions.
Properties
| Name | Meaning |
|---|---|
| Optional Query Parameters | Additional parameters to customize the query when listing accounts, such as filtering or pagination options. |
Output
JSON
account- ``
*name- The name of each GTM account.
*accountId- The unique identifier of each GTM account.
*path- The API path of each GTM account.
- ``
Dependencies
- Google Tag Manager API OAuth2 credentials
Troubleshooting
- Ensure that the Google Tag Manager API credentials are correctly configured and authorized; missing credentials will cause the node to throw an error.
- Verify that the account ID is not required for this operation; providing unnecessary or incorrect IDs may cause errors.
- Check the optional query parameters for correctness, especially pagination tokens, to avoid incomplete or failed responses.