Skip to main content
Server path: /google-analytics-admin | Type: Application | PCID required: Yes

Tools

ToolDescription
google-analytics-admin_list_account_summariesReturns summaries of all accounts accessible by the caller.
google-analytics-admin_list_accountsReturns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: “trashed”) accounts are excluded by default. Returns an empty list if no relevant accounts are found.
google-analytics-admin_list_conversion_eventsReturns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found.
google-analytics-admin_list_custom_dimensionsLists CustomDimensions on a property.
google-analytics-admin_list_custom_metricsLists CustomMetrics on a property.
google-analytics-admin_list_data_streamsLists DataStreams on a property.
google-analytics-admin_list_propertiesReturns child Properties under the specified parent Account. Only “GA4” properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: “trashed”) properties are excluded by default. Returns an empty list if no relevant properties are found.
google-analytics-admin_run_access_reportReturns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don’t include property configuration changes like adding a stream or changing a property’s time zone. For configuration change history, see searchChangeHistoryEvents.

google-analytics-admin_list_account_summaries

Returns summaries of all accounts accessible by the caller. Parameters:
ParameterTypeRequiredDefaultDescription
pageSizeintegerNoThe maximum number of AccountSummary resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
pageTokenstringNoA page token, received from a previous ListAccountSummaries call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAccountSummaries must match the call that provided the page token.

google-analytics-admin_list_accounts

Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: “trashed”) accounts are excluded by default. Returns an empty list if no relevant accounts are found. Parameters:
ParameterTypeRequiredDefaultDescription
pageSizeintegerNoThe maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
pageTokenstringNoA page token, received from a previous ListAccounts call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAccounts must match the call that provided the page token.
showDeletedbooleanNoWhether to include soft-deleted (ie: “trashed”) Accounts in the results. Accounts can be inspected to determine whether they are deleted or not.

google-analytics-admin_list_conversion_events

Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found. Parameters:
ParameterTypeRequiredDefaultDescription
parentstringYesRequired. The resource name of the parent property. Example: ‘properties/123’
pageSizeintegerNoThe maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
pageTokenstringNoA page token, received from a previous ListConversionEvents call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListConversionEvents must match the call that provided the page token.

google-analytics-admin_list_custom_dimensions

Lists CustomDimensions on a property. Parameters:
ParameterTypeRequiredDefaultDescription
parentstringYesRequired. Example format: properties/1234
pageSizeintegerNoThe maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
pageTokenstringNoA page token, received from a previous ListCustomDimensions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListCustomDimensions must match the call that provided the page token.

google-analytics-admin_list_custom_metrics

Lists CustomMetrics on a property. Parameters:
ParameterTypeRequiredDefaultDescription
parentstringYesRequired. Example format: properties/1234
pageSizeintegerNoThe maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
pageTokenstringNoA page token, received from a previous ListCustomMetrics call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListCustomMetrics must match the call that provided the page token.

google-analytics-admin_list_data_streams

Lists DataStreams on a property. Parameters:
ParameterTypeRequiredDefaultDescription
parentstringYesRequired. Example format: properties/1234
pageSizeintegerNoThe maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
pageTokenstringNoA page token, received from a previous ListDataStreams call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataStreams must match the call that provided the page token.

google-analytics-admin_list_properties

Returns child Properties under the specified parent Account. Only “GA4” properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: “trashed”) properties are excluded by default. Returns an empty list if no relevant properties are found. Parameters:
ParameterTypeRequiredDefaultDescription
filterstringYesRequired. An expression for filtering the results of the request. Fields eligible for filtering are: parent:(The resource name of the parent account/property) or ancestor:(The resource name of the parent account) or firebase_project:(The id or number of the linked firebase project). Some examples of filters: | Filter | Description | |-----------------------------|-------------------------------------------| | parent:accounts/123 | The account with account id: 123. | | parent:properties/123 | The property with property id: 123. | | ancestor:accounts/123 | The account with account id: 123. | | firebase_project:project-id | The firebase project with id: project-id. | | firebase_project:123 | The firebase project with number: 123. |
pageSizeintegerNoThe maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
pageTokenstringNoA page token, received from a previous ListProperties call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListProperties must match the call that provided the page token.
showDeletedbooleanNoWhether to include soft-deleted (ie: “trashed”) Properties in the results. Properties can be inspected to determine whether they are deleted or not.

google-analytics-admin_run_access_report

Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don’t include property configuration changes like adding a stream or changing a property’s time zone. For configuration change history, see searchChangeHistoryEvents. Parameters:
ParameterTypeRequiredDefaultDescription
entitystringYesThe Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties under that account. To request at the property level, entity should be for example ‘properties/123’ if “123” is your GA4 property ID. To request at the account level, entity should be for example ‘accounts/1234’ if “1234” is your GA4 Account ID.
dateRangesobject[]NoDate ranges of access records to read. If multiple date ranges are requested, each response row will contain a zero based date range index. If two date ranges overlap, the access records for the overlapping days is included in the response rows for both date ranges. Requests are allowed up to 2 date ranges.
dimensionFilterobjectNoExpresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics.
dimensionsobject[]NoThe dimensions requested and displayed in the response. Requests are allowed up to 9 dimensions.
limitstringNoThe number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,000 rows per request, no matter how many you ask for. limit must be positive. The API may return fewer rows than the requested limit, if there aren’t as many remaining rows as the limit. For instance, there are fewer than 300 possible values for the dimension country, so when reporting on only country, you can’t get more than 300 rows, even if you set limit to a higher value. To learn more about this pagination parameter, see Pagination.
metricFilterobjectNoExpresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics.
metricsobject[]NoThe metrics requested and displayed in the response. Requests are allowed up to 10 metrics.
offsetstringNoThe row count of the start row. The first row is counted as row 0. If offset is unspecified, it is treated as 0. If offset is zero, then this method will return the first page of results with limit entries. To learn more about this pagination parameter, see Pagination.
orderBysobject[]NoSpecifies how rows are ordered in the response.
returnEntityQuotabooleanNoToggles whether to return the current state of this Analytics Property’s quota. Quota is returned in AccessQuota. For account-level requests, this field must be false.
timeZonestringNoThis request’s time zone if specified. If unspecified, the property’s time zone is used. The request’s time zone is used to interpret the start & end dates of the report. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example “America/New_York” or “Asia/Tokyo”.