Google Analytics icon

Google Analytics

Use the Google Analytics API

Actions236

Admin (V1Beta) - Account → List Accounts

AI-generated

Overview

This node interacts with the Google Analytics Admin API (v1beta) to manage and retrieve account information. Specifically, the "List Accounts" operation under the "Admin (V1Beta) - Account" resource fetches a list of all Google Analytics accounts accessible by the authenticated user.

Common scenarios for this node include:

  • Retrieving all Google Analytics accounts linked to a user or service account.
  • Filtering accounts based on specific criteria such as names or other query parameters.
  • Paginating through large sets of accounts using page size and tokens.

Practical example:

  • A marketing team wants to automate reporting across multiple Google Analytics accounts. They use this node to list all accounts first, then iterate over each account to gather detailed analytics data.

Properties

Name Meaning
Query Parameters Collection of optional filters and pagination controls to refine the list of accounts returned. Options include:
- Calculated Metric ID: Filter by calculated metric ID.
- Entity: Specify data access report level (property or account).
- Filter: Expression to filter results.
- Names: Names of access bindings to retrieve.
- Page Size: Maximum number of accounts to return (default 10).
- Page Token: Token for fetching next page of results.
- Show Deleted: Include soft-deleted ("trashed") properties (boolean, default true).
- Universal Analytics Property ID: Lookup connected GA4 property.
- Update Mask: List of fields to update (snake case).

Output

The output is a JSON array where each item represents an account object retrieved from the Google Analytics Admin API. The structure corresponds to the API's account resource representation, typically including fields like account ID, name, and other metadata.

No binary data is output by this node.

Dependencies

  • Requires an OAuth2 credential configured for Google Analytics API access.
  • The node uses the Google Analytics Admin API endpoint https://analyticsadmin.googleapis.com/v1beta/accounts.
  • Proper permissions/scopes must be granted to the OAuth2 credential to list accounts.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Google Analytics API Credentials", ensure that the OAuth2 credentials are properly set up and authorized.
  • Account ID Required Error: For some operations, an Account ID is mandatory. For "List Accounts", this is not required, but if you switch operations, verify required IDs are provided.
  • API Rate Limits: Google Analytics API enforces quotas; hitting these may cause errors. Implement retries or reduce request frequency.
  • Invalid Query Parameters: Ensure that any filters or query parameters conform to the API specification to avoid errors.
  • Pagination Handling: If many accounts exist, use the Page Token and Page Size parameters to paginate results correctly.

Links and References


This summary focuses on the "Admin (V1Beta) - Account" resource and its "List Accounts" operation as requested.

Discussion