Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Data (V1Beta) - Audience Export → Get Audience Export

AI-generated

Overview

This node integrates with the Google Analytics API, specifically supporting a wide range of administrative and data operations across different API versions (v1alpha, v1beta) and resources. For the Data (V1Beta) - Audience Export resource with the Get Audience Export operation, it retrieves detailed information about a specific audience export within a Google Analytics property.

This is useful when you want to programmatically access audience export details for analysis, reporting, or integration with other systems. For example, marketers or analysts can automate fetching audience export metadata to monitor export statuses or audit audience data exports.

Properties

Name Meaning
Property ID The identifier of the Google Analytics property containing the audience export.
Audience Export ID The unique identifier of the audience export to retrieve details for.
Query Parameters Optional parameters to refine or paginate the request. Includes:
- Calculated Metric ID: ID for calculated metrics.
- 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 (default 10).
- Page Token: Token for fetching next page of results.
- Show Deleted: Whether to include soft-deleted properties (boolean).
- 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 a JSON array where each item corresponds to the response from the Google Analytics API for the requested audience export. The JSON structure reflects the audience export resource's data as returned by the API, typically including metadata such as export status, configuration, timestamps, and related identifiers.

No binary data output is indicated for this operation.

Dependencies

  • Requires an OAuth2 credential configured for Google Analytics API access.
  • The node uses the Google Analytics Data API endpoints:
    • Base URL for Data (V1Beta) resources: https://analyticsdata.googleapis.com/v1beta
  • Proper permissions on the Google Analytics property are necessary to access audience export data.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials," ensure that a valid OAuth2 credential with appropriate scopes is configured in n8n.
  • Required Parameter Errors: Errors like "Property ID is required" or "Audience Export ID is required" indicate missing mandatory inputs. Verify these IDs are correctly set.
  • API Request Failures: Network issues, insufficient permissions, or invalid IDs may cause API errors. Check the error message for details and verify API access and input correctness.
  • Pagination Issues: When using query parameters like pageToken, ensure tokens are valid and used correctly to fetch subsequent pages.

Links and References


This summary focuses on the Data (V1Beta) - Audience Export resource and the Get Audience Export operation, describing its purpose, inputs, outputs, dependencies, and common troubleshooting points based on static code analysis.

Discussion