Actions102
- Account Actions
- Built-In Variable Actions
- Client Actions
- Container Actions
- Destination Actions
- Environment Actions
- Folder Actions
- Google Tag Configuration Actions
- Tag Actions
- Template Actions
- Transformation Actions
- Trigger Actions
- User Permission Actions
- Variable Actions
- Version Actions
- Workspace Actions
- Zone Actions
Overview
This node integrates with the Google Tag Manager (GTM) API, allowing users to manage various GTM resources programmatically within n8n workflows. Specifically, the "Update Account" operation under the "Account" resource enables updating details of a GTM Account.
Use cases include automating account management tasks such as modifying account settings or metadata without manual intervention in the GTM web interface. For example, you could update an account's configuration as part of a larger automated deployment or audit process.
Properties
| Name | Meaning |
|---|---|
| Account ID | The unique identifier of the GTM Account to update. This is required to specify which account will be updated. |
| Optional Query Parameters | Additional optional parameters that can modify the behavior of the update request. These include various flags and filters relevant to different operations but may not be commonly used for account updates. |
| Request Body | A JSON object representing the data to update on the GTM Account. This should contain the fields and values according to the GTM API specification for account updates. |
Output
The node outputs a JSON array where each element corresponds to the response from the GTM API for the executed update operation. For the "Update Account" operation, the output JSON contains the updated account details as returned by the GTM API.
No binary data output is involved in this operation.
Dependencies
- Requires an OAuth2 credential configured for Google Tag Manager API access.
- The node uses the base URL
https://www.googleapis.com/tagmanager/v2for API requests. - Proper permissions on the Google Tag Manager account are necessary to perform update operations.
Troubleshooting
- Missing Credentials Error: If the node throws an error about missing credentials, ensure that a valid Google Tag Manager OAuth2 credential is configured and selected.
- Required Parameter Errors: The node validates presence of the Account ID before making the request. If missing, it will throw an error indicating the Account ID is required.
- API Errors: Any errors returned by the GTM API during the update call will be wrapped and reported with the message prefix "Error calling GTM API". Check the detailed error message and stack trace for troubleshooting.
- Invalid Request Body: Ensure the JSON provided in the Request Body matches the expected schema for the GTM Account update API; otherwise, the API may reject the request.
Links and References
This summary focuses on the "Update Account" operation of the "Account" resource as requested, based on static analysis of the provided source code and property definitions.