Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions84

Overview

This node integrates with the Google Analytics API, specifically targeting the "Admin (V1Alpha) - Display & Video 360 Advertiser Link Proposal" resource. The operation "Create Display & Video 360 Advertiser Link Proposal" allows users to create proposals for linking Display & Video 360 advertisers to Google Analytics properties.

This functionality is useful in scenarios where organizations want to manage and propose advertiser linkages programmatically within their Google Analytics properties, facilitating better integration and data sharing between Google Analytics and Display & Video 360 platforms.

For example, a marketing team can automate the creation of advertiser link proposals for multiple properties, streamlining the process of managing advertising integrations at scale.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property where the Display & Video 360 Advertiser Link Proposal will be created. This is required to specify the target property.
Query Parameters Optional additional parameters to customize the request. These include options like filtering, pagination, and specifying particular fields.
Request Body JSON object containing the details of the Display & Video 360 Advertiser Link Proposal to be created. This should conform to the expected API schema for creating such proposals.

Query Parameters Options (examples)

  • Calculated Metric ID
  • Entity (property or account level)
  • Filter expressions
  • 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 where each element corresponds to the response from the Google Analytics API for the created Display & Video 360 Advertiser Link Proposal. The structure of each JSON object matches the API's response schema for this resource, typically including details about the proposal such as its ID, status, linked advertiser information, and timestamps.

No binary data output is involved.

Dependencies

  • Requires an OAuth2 credential configured for Google Analytics API access.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1alpha.
  • Proper permissions on the Google Analytics account/property are necessary to create advertiser link proposals.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that a valid OAuth2 credential for Google Analytics API is configured in n8n.
  • Required Parameter Errors: The node validates presence of required IDs such as Property ID and Display & Video 360 Advertiser Link Proposal ID. Missing these will cause errors.
  • API Errors: Errors returned by the Google Analytics API (e.g., permission denied, invalid request body) will be surfaced with messages prefixed by "Error calling Google Analytics API". Review the message and stack trace for details.
  • Invalid JSON in Request Body: Ensure the JSON provided in the Request Body field is well-formed and matches the expected schema for the API.

Links and References


Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.

Discussion