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
Transformation → Delete Transformation
AI-generatedOverview
This node integrates with the Google Tag Manager (GTM) API, specifically enabling management of GTM Transformations among many other resources. The "Delete Transformation" operation allows users to delete a specific transformation within a GTM container workspace. This is useful for automating cleanup or management of transformations in GTM environments, such as removing outdated or incorrect data transformation rules.
Practical scenarios include:
- Automatically deleting obsolete transformations during deployment pipelines.
- Managing GTM workspaces programmatically to maintain clean and updated configurations.
- Integrating GTM transformation management into broader marketing automation workflows.
Properties
| Name | Meaning |
|---|---|
| Account ID | The unique identifier of the Google Tag Manager account where the transformation resides. |
| Container ID | The identifier of the GTM container that holds the workspace and transformation. |
| Workspace ID | The workspace ID within the container where the transformation exists. |
| Transformation ID | The specific ID of the transformation to be deleted. |
| Optional Query Parameters | Additional optional parameters for the API call; includes various flags and filters (see below). |
Details on Optional Query Parameters (subset relevant to this operation)
allowUserPermissionFeatureUpdate(boolean): Must be true to allow user permission feature updates; otherwise, the operation will fail.- Other parameters exist but are generally not required for deletion operations.
Output
The output is a JSON array containing the response from the Google Tag Manager API after attempting to delete the specified transformation. Typically, for a delete operation, the API returns an empty object {} or confirmation of deletion.
The node does not output binary data.
Dependencies
- Requires an OAuth2 API credential configured for Google Tag Manager access.
- The node uses the Google Tag Manager v2 REST API endpoint:
https://www.googleapis.com/tagmanager/v2. - Proper permissions on the GTM account and container are necessary to perform deletion.
Troubleshooting
- Missing Credentials: If the OAuth2 credentials are not set up or invalid, the node will throw an error indicating missing credentials.
- Required Parameter Missing: Errors will occur if any of the required IDs (
Account ID,Container ID,Workspace ID, orTransformation ID) are not provided. - API Errors: The node wraps API errors with messages like
Error calling GTM API: <error message>. Common causes include insufficient permissions, invalid IDs, or network issues. - Permission Feature Update Flag: If the
allowUserPermissionFeatureUpdateflag is false when it needs to be true, the operation will fail. Ensure this flag is set correctly in optional parameters.
Links and References
This summary focuses exclusively on the "Delete Transformation" operation under the "Transformation" resource as requested.