Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Alpha) - Search Ads 360 Link → Create Search Ads 360 Link

AI-generated

Overview

This node integrates with the Google Analytics API, specifically supporting a wide range of administrative and data management operations. The "Create Search Ads 360 Link" operation under the "Admin (V1Alpha) - Search Ads 360 Link" resource allows users to create a link between a Google Analytics property and a Search Ads 360 account. This is useful for marketers and analysts who want to connect their analytics data with Search Ads 360 campaigns to enable better reporting and data sharing.

Typical use cases include:

  • Linking a Google Analytics property to Search Ads 360 to import campaign data.
  • Automating the creation of Search Ads 360 links as part of a larger workflow.
  • Managing multiple properties and their associated advertising accounts programmatically.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property where the Search Ads 360 link will be created.
Query Parameters Optional parameters to customize the request, such as filtering or pagination options.
Request Body JSON object containing the details of the Search Ads 360 link to be created.

Details on Query Parameters (optional)

  • Calculated Metric ID: ID for a calculated metric.
  • Entity: Level of data access report (property or account).
  • Filter: Expression to filter results.
  • Names: Names of access bindings to retrieve.
  • Page Size: Maximum number of items to return.
  • Page Token: Token for fetching next page.
  • Show Deleted: Whether to include soft-deleted properties.
  • Universal Analytics Property ID: UA property to look up connected GA4 property.
  • Update Mask: List of fields to update (snake case).

Output

The node outputs an array of JSON objects representing the response from the Google Analytics API after creating the Search Ads 360 link. The structure corresponds directly to the API's response for the created link, typically including identifiers, linked account information, and metadata about the link.

No binary data output is involved in this operation.

Dependencies

  • Requires valid Google Analytics API OAuth2 credentials configured in n8n.
  • The node uses the Google Analytics Admin API v1alpha endpoint (https://analyticsadmin.googleapis.com/v1alpha).
  • Proper permissions are needed on the Google Analytics property to create Search Ads 360 links.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that OAuth2 credentials for Google Analytics are properly set up in n8n.
  • Required Parameter Errors: Errors like "Property ID is required" indicate missing mandatory input; verify all required fields are provided.
  • API Errors: Errors returned from the Google Analytics API will be wrapped and shown with the message prefix "Error calling Google Analytics API." Check the error details for issues such as permission problems, invalid IDs, or malformed request bodies.
  • Network Issues: Ensure network connectivity to analyticsadmin.googleapis.com and that no firewall or proxy blocks the requests.

Links and References


This summary focuses on the "Create Search Ads 360 Link" operation within the "Admin (V1Alpha) - Search Ads 360 Link" resource, describing its purpose, inputs, outputs, dependencies, and common troubleshooting points based on static analysis of the node's source code and provided property definitions.

Discussion