Actions27
- Account Actions
- Built-In Variable Actions
- Client Actions
- Container Actions
- Destination Actions
- Environment Actions
Container → List Containers
AI-generatedOverview
This node operation lists all Google Tag Manager (GTM) Containers that belong to a specified GTM Account. It is useful for users who want to retrieve and manage the containers within their GTM account, such as for auditing, reporting, or further automation tasks involving container data.
Use Case Examples
- Retrieve all containers for a specific GTM account to display them in a dashboard.
- Automate the process of syncing container information with another system by listing containers regularly.
Properties
| Name | Meaning |
|---|---|
| Account ID | The GTM Account ID for which the containers will be listed. |
| Optional Query Parameters | Additional optional parameters to refine or control the query, such as pagination tokens or filters. |
Output
JSON
containerId- The unique identifier of the GTM container.name- The name of the GTM container.accountId- The GTM account ID to which the container belongs.path- The API path of the container resource.usageContext- The usage context of the container, e.g., web or mobile.
Dependencies
- Google Tag Manager API OAuth2 credentials
Troubleshooting
- Ensure the GTM Account ID is provided; otherwise, the node will throw an error indicating the missing account ID.
- Verify that the Google Tag Manager API credentials are correctly set up and authorized, as missing or invalid credentials will cause authentication errors.
- If the API returns paginated results, use the 'Page Token' optional parameter to fetch subsequent pages.
Links
- Google Tag Manager API - List Containers - Official documentation for the List Containers API endpoint in Google Tag Manager.