Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions84

Overview

This node interacts with the Google Analytics API, specifically supporting a wide range of administrative and data management operations. For the selected resource Admin (V1Alpha) - Display & Video 360 Advertiser Link and operation Delete Display & Video 360 Advertiser Link, the node deletes a specified Display & Video 360 advertiser link associated with a Google Analytics property.

This operation is useful when you want to remove an existing integration or connection between your Google Analytics property and a Display & Video 360 advertiser account, for example, if the link is no longer needed or was created in error.

Practical example:

  • You manage multiple advertising accounts linked to your analytics properties and need to clean up obsolete or incorrect Display & Video 360 advertiser links by deleting them programmatically via n8n workflows.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property that owns the Display & Video 360 advertiser link. This is required to specify the context of the link.
Display & Video 360 Advertiser Link ID The unique identifier of the Display & Video 360 advertiser link to delete. This is required to specify which link to remove.
Query Parameters Optional additional parameters to customize the request. Options include:
- Calculated Metric ID
- Entity (property or account level)
- Filter expression
- Names of access bindings
- Page Size (number)
- Page Token (for pagination)
- Show Deleted (boolean)
- Universal Analytics Property ID
- Update Mask (fields to update)

Output

The output is a JSON array containing the response from the Google Analytics API after attempting to delete the specified Display & Video 360 advertiser link. Typically, for a delete operation, the API returns an empty object {} or confirmation of deletion.

No binary data is output by this node.

Dependencies

  • Requires valid Google Analytics API OAuth2 credentials configured in n8n.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions on the Google Analytics property and the linked Display & Video 360 advertiser link are necessary to perform deletion.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that OAuth2 credentials for Google Analytics API are properly set up in n8n.
  • Required Parameter Missing: Errors like "Property ID is required" or "Display & Video 360 Advertiser Link ID is required" indicate that these mandatory inputs were not provided. Verify that these fields are filled correctly.
  • API Permission Denied: If the API returns permission errors, check that the authenticated user has sufficient rights to delete the advertiser link on the specified property.
  • Invalid Link ID: Providing an incorrect or non-existent Display & Video 360 Advertiser Link ID will cause the API to fail. Confirm the link ID before deletion.
  • Network or API Errors: General API call failures may occur due to network issues or API limits. Review error messages and retry as appropriate.

Links and References

Discussion