Returns the accessBindings Resource.
Returns the adSenseLinks Resource.
Returns the audiences Resource.
Returns the bigQueryLinks Resource.
Returns the calculatedMetrics Resource.
Returns the channelGroups Resource.
Returns the conversionEvents Resource.
Returns the customDimensions Resource.
Returns the customMetrics Resource.
Returns the dataStreams Resource.
displayVideo360AdvertiserLinkProposals()
Returns the displayVideo360AdvertiserLinkProposals Resource.
displayVideo360AdvertiserLinks()
Returns the displayVideo360AdvertiserLinks Resource.
Returns the expandedDataSets Resource.
Returns the firebaseLinks Resource.
Returns the googleAdsLinks Resource.
Returns the keyEvents Resource.
Returns the rollupPropertySourceLinks Resource.
Returns the searchAds360Links Resource.
Returns the subpropertyEventFilters Resource.
acknowledgeUserDataCollection(property, body=None, x__xgafv=None)
Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.
Close httplib2 connections.
create(body=None, x__xgafv=None)
Creates a Google Analytics property with the specified location and attributes.
createConnectedSiteTag(body=None, x__xgafv=None)
Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 connected site tags per property. Note: This API cannot be used on GA4 properties.
createRollupProperty(body=None, x__xgafv=None)
Create a roll-up property and all roll-up property source links.
Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
deleteConnectedSiteTag(body=None, x__xgafv=None)
Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on GA4 properties.
fetchAutomatedGa4ConfigurationOptOut(body=None, x__xgafv=None)
Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.
fetchConnectedGa4Property(property=None, x__xgafv=None)
Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be used with GA4 properties.
Lookup for a single GA Property.
getAttributionSettings(name, x__xgafv=None)
Lookup for a AttributionSettings singleton.
getDataRetentionSettings(name, x__xgafv=None)
Returns the singleton data retention settings for this property.
getGoogleSignalsSettings(name, x__xgafv=None)
Lookup for Google Signals settings for a property.
list(filter=None, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)
Returns child Properties under the specified parent Account. 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.
listConnectedSiteTags(body=None, x__xgafv=None)
Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected site tags will be returned. Note: this has no effect on GA4 property.
Retrieves the next page of results.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates a property.
provisionSubproperty(body=None, x__xgafv=None)
Create a subproperty and a subproperty event filter that applies to the created subproperty.
runAccessReport(entity, body=None, x__xgafv=None)
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. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA 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](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.
setAutomatedGa4ConfigurationOptOut(body=None, x__xgafv=None)
Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.
updateAttributionSettings(name, body=None, updateMask=None, x__xgafv=None)
Updates attribution settings on a property.
updateDataRetentionSettings(name, body=None, updateMask=None, x__xgafv=None)
Updates the singleton data retention settings for this property.
updateGoogleSignalsSettings(name, body=None, updateMask=None, x__xgafv=None)
Updates Google Signals settings for a property.
acknowledgeUserDataCollection(property, body=None, x__xgafv=None)
Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created. Args: property: string, Required. The property for which to acknowledge user data collection. (required) body: object, The request body. The object takes the form of: { # Request message for AcknowledgeUserDataCollection RPC. "acknowledgement": "A String", # Required. An acknowledgement that the caller of this method understands the terms of user data collection. This field must contain the exact value: "I acknowledge that I have the necessary privacy disclosures and rights from my end users for the collection and processing of their data, including the association of such data with the visitation information Google Analytics collects from my site and/or app property." } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for AcknowledgeUserDataCollection RPC. }
close()
Close httplib2 connections.
create(body=None, x__xgafv=None)
Creates a Google Analytics property with the specified location and attributes. Args: body: object, The request body. The object takes the form of: { # A resource message representing a Google Analytics property. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A resource message representing a Google Analytics property. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. }
createConnectedSiteTag(body=None, x__xgafv=None)
Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 connected site tags per property. Note: This API cannot be used on GA4 properties. Args: body: object, The request body. The object takes the form of: { # Request message for CreateConnectedSiteTag RPC. "connectedSiteTag": { # Configuration for a specific Connected Site Tag. # Required. The tag to add to the Universal Analytics property "displayName": "A String", # Required. User-provided display name for the connected site tag. Must be less than 256 characters. "tagId": "A String", # Required. "Tag ID to forward events to. Also known as the Measurement ID, or the "G-ID" (For example: G-12345). }, "property": "A String", # The Universal Analytics property to create connected site tags for. This API does not support GA4 properties. Format: properties/{universalAnalyticsPropertyId} Example: properties/1234 } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for CreateConnectedSiteTag RPC. }
createRollupProperty(body=None, x__xgafv=None)
Create a roll-up property and all roll-up property source links. Args: body: object, The request body. The object takes the form of: { # Request message for CreateRollupProperty RPC. "rollupProperty": { # A resource message representing a Google Analytics property. # Required. The roll-up property to create. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. }, "sourceProperties": [ # Optional. The resource names of properties that will be sources to the created roll-up property. "A String", ], } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for CreateRollupProperty RPC. "rollupProperty": { # A resource message representing a Google Analytics property. # The created roll-up property. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. }, "rollupPropertySourceLinks": [ # The created roll-up property source links. { # A link that references a source property under the parent rollup property. "name": "A String", # Output only. Resource name of this RollupPropertySourceLink. Format: 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' Format: 'properties/123/rollupPropertySourceLinks/456' "sourceProperty": "A String", # Immutable. Resource name of the source property. Format: properties/{property_id} Example: "properties/789" }, ], }
delete(name, x__xgafv=None)
Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found. Args: name: string, Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A resource message representing a Google Analytics property. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. }
deleteConnectedSiteTag(body=None, x__xgafv=None)
Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on GA4 properties. Args: body: object, The request body. The object takes the form of: { # Request message for DeleteConnectedSiteTag RPC. "property": "A String", # The Universal Analytics property to delete connected site tags for. This API does not support GA4 properties. Format: properties/{universalAnalyticsPropertyId} Example: properties/1234 "tagId": "A String", # Tag ID to forward events to. Also known as the Measurement ID, or the "G-ID" (For example: G-12345). } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } }
fetchAutomatedGa4ConfigurationOptOut(body=None, x__xgafv=None)
Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property. Args: body: object, The request body. The object takes the form of: { # Request for fetching the opt out status for the automated GA4 setup process. "property": "A String", # Required. The UA property to get the opt out status. Note this request uses the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} Example: properties/1234 } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for fetching the opt out status for the automated GA4 setup process. "optOut": True or False, # The opt out status for the UA property. }
fetchConnectedGa4Property(property=None, x__xgafv=None)
Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be used with GA4 properties. Args: property: string, Required. The UA property for which to look up the connected GA4 property. Note this request uses the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format: properties/{internal_web_property_id} Example: properties/1234 x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response for looking up GA4 property connected to a UA property. "property": "A String", # The GA4 property connected to the UA property. An empty string is returned when there is no connected GA4 property. Format: properties/{property_id} Example: properties/1234 }
get(name, x__xgafv=None)
Lookup for a single GA Property. Args: name: string, Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A resource message representing a Google Analytics property. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. }
getAttributionSettings(name, x__xgafv=None)
Lookup for a AttributionSettings singleton. Args: name: string, Required. The name of the attribution settings to retrieve. Format: properties/{property}/attributionSettings (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # The attribution settings used for a given property. This is a singleton resource. "acquisitionConversionEventLookbackWindow": "A String", # Required. The lookback window configuration for acquisition conversion events. The default window size is 30 days. "adsWebConversionDataExportScope": "A String", # Required. The Conversion Export Scope for data exported to linked Ads Accounts. "name": "A String", # Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings" "otherConversionEventLookbackWindow": "A String", # Required. The lookback window for all other, non-acquisition conversion events. The default window size is 90 days. "reportingAttributionModel": "A String", # Required. The reporting attribution model used to calculate conversion credit in this property's reports. Changing the attribution model will apply to both historical and future data. These changes will be reflected in reports with conversion and revenue data. User and session data will be unaffected. }
getDataRetentionSettings(name, x__xgafv=None)
Returns the singleton data retention settings for this property. Args: name: string, Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings" (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Settings values for data retention. This is a singleton resource. "eventDataRetention": "A String", # The length of time that event-level data is retained. "name": "A String", # Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings "resetUserDataOnNewActivity": True or False, # If true, reset the retention period for the user identifier with every event from that user. }
getGoogleSignalsSettings(name, x__xgafv=None)
Lookup for Google Signals settings for a property. Args: name: string, Required. The name of the google signals settings to retrieve. Format: properties/{property}/googleSignalsSettings (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Settings values for Google Signals. This is a singleton resource. "consent": "A String", # Output only. Terms of Service acceptance. "name": "A String", # Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings" "state": "A String", # Status of this setting. }
list(filter=None, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)
Returns child Properties under the specified parent Account. 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. Args: filter: string, Required. 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. | ``` pageSize: integer, The 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) pageToken: string, A 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. showDeleted: boolean, Whether to include soft-deleted (ie: "trashed") Properties in the results. Properties can be inspected to determine whether they are deleted or not. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for ListProperties RPC. "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. "properties": [ # Results that matched the filter criteria and were accessible to the caller. { # A resource message representing a Google Analytics property. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. }, ], }
listConnectedSiteTags(body=None, x__xgafv=None)
Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected site tags will be returned. Note: this has no effect on GA4 property. Args: body: object, The request body. The object takes the form of: { # Request message for ListConnectedSiteTags RPC. "property": "A String", # The Universal Analytics property to fetch connected site tags for. This does not work on GA4 properties. A maximum of 20 connected site tags will be returned. Example Format: `properties/1234` } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for ListConnectedSiteTags RPC. "connectedSiteTags": [ # The site tags for the Universal Analytics property. A maximum of 20 connected site tags will be returned. { # Configuration for a specific Connected Site Tag. "displayName": "A String", # Required. User-provided display name for the connected site tag. Must be less than 256 characters. "tagId": "A String", # Required. "Tag ID to forward events to. Also known as the Measurement ID, or the "G-ID" (For example: G-12345). }, ], }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates a property. Args: name: string, Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" (required) body: object, The request body. The object takes the form of: { # A resource message representing a Google Analytics property. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. } updateMask: string, Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A resource message representing a Google Analytics property. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. }
provisionSubproperty(body=None, x__xgafv=None)
Create a subproperty and a subproperty event filter that applies to the created subproperty. Args: body: object, The request body. The object takes the form of: { # Request message for CreateSubproperty RPC. "subproperty": { # A resource message representing a Google Analytics property. # Required. The subproperty to create. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. }, "subpropertyEventFilter": { # A resource message representing a Google Analytics subproperty event filter. # Optional. The subproperty event filter to create on an ordinary property. "applyToProperty": "A String", # Immutable. Resource name of the Subproperty that uses this filter. "filterClauses": [ # Required. Unordered list. Filter clauses that define the SubpropertyEventFilter. All clauses are AND'ed together to determine what data is sent to the subproperty. { # A clause for defining a filter. A filter may be inclusive (events satisfying the filter clause are included in the subproperty's data) or exclusive (events satisfying the filter clause are excluded from the subproperty's data). "filterClauseType": "A String", # Required. The type for the filter clause. "filterExpression": { # A logical expression of Subproperty event filters. # Required. The logical expression for what events are sent to the subproperty. "filterCondition": { # A specific filter expression # Creates a filter that matches a specific event. This cannot be set on the top level SubpropertyEventFilterExpression. "fieldName": "A String", # Required. The field that is being filtered. "nullFilter": True or False, # A filter for null values. "stringFilter": { # A filter for a string-type dimension that matches a particular pattern. # A filter for a string-type dimension that matches a particular pattern. "caseSensitive": True or False, # Optional. If true, the string value is case sensitive. If false, the match is case-insensitive. "matchType": "A String", # Required. The match type for the string filter. "value": "A String", # Required. The string value used for the matching. }, }, "notExpression": # Object with schema name: GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression # A filter expression to be NOT'ed (inverted, complemented). It can only include a filter. This cannot be set on the top level SubpropertyEventFilterExpression. "orGroup": { # A list of Subproperty event filter expressions. # A list of expressions to OR’ed together. Must only contain not_expression or filter_condition expressions. "filterExpressions": [ # Required. Unordered list. A list of Subproperty event filter expressions # Object with schema name: GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression ], }, }, }, ], "name": "A String", # Output only. Format: properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} Example: properties/1234/subpropertyEventFilters/5678 }, } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for ProvisionSubproperty RPC. "subproperty": { # A resource message representing a Google Analytics property. # The created subproperty. "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123" "createTime": "A String", # Output only. Time when the entity was originally created. "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property. "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" "updateTime": "A String", # Output only. Time when entity payload fields were last updated. }, "subpropertyEventFilter": { # A resource message representing a Google Analytics subproperty event filter. # The created subproperty event filter. "applyToProperty": "A String", # Immutable. Resource name of the Subproperty that uses this filter. "filterClauses": [ # Required. Unordered list. Filter clauses that define the SubpropertyEventFilter. All clauses are AND'ed together to determine what data is sent to the subproperty. { # A clause for defining a filter. A filter may be inclusive (events satisfying the filter clause are included in the subproperty's data) or exclusive (events satisfying the filter clause are excluded from the subproperty's data). "filterClauseType": "A String", # Required. The type for the filter clause. "filterExpression": { # A logical expression of Subproperty event filters. # Required. The logical expression for what events are sent to the subproperty. "filterCondition": { # A specific filter expression # Creates a filter that matches a specific event. This cannot be set on the top level SubpropertyEventFilterExpression. "fieldName": "A String", # Required. The field that is being filtered. "nullFilter": True or False, # A filter for null values. "stringFilter": { # A filter for a string-type dimension that matches a particular pattern. # A filter for a string-type dimension that matches a particular pattern. "caseSensitive": True or False, # Optional. If true, the string value is case sensitive. If false, the match is case-insensitive. "matchType": "A String", # Required. The match type for the string filter. "value": "A String", # Required. The string value used for the matching. }, }, "notExpression": # Object with schema name: GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression # A filter expression to be NOT'ed (inverted, complemented). It can only include a filter. This cannot be set on the top level SubpropertyEventFilterExpression. "orGroup": { # A list of Subproperty event filter expressions. # A list of expressions to OR’ed together. Must only contain not_expression or filter_condition expressions. "filterExpressions": [ # Required. Unordered list. A list of Subproperty event filter expressions # Object with schema name: GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression ], }, }, }, ], "name": "A String", # Output only. Format: properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} Example: properties/1234/subpropertyEventFilters/5678 }, }
runAccessReport(entity, body=None, x__xgafv=None)
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. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA 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](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form. Args: entity: string, The 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 Google Analytics property ID. To request at the account level, entity should be for example 'accounts/1234' if "1234" is your Google Analytics Account ID. (required) body: object, The request body. The object takes the form of: { # The request for a Data Access Record Report. "dateRanges": [ # Date 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. { # A contiguous range of days: startDate, startDate + 1, ..., endDate. "endDate": "A String", # The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request's time zone. "startDate": "A String", # The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request's time zone. }, ], "dimensionFilter": { # Expresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics. # Dimension filters let you restrict report response to specific dimension values which match the filter. For example, filtering on access records of a single user. To learn more, see [Fundamentals of Dimension Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) for examples. Metrics cannot be used in this filter. "accessFilter": { # An expression to filter dimension or metric values. # A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics. "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. "fromValue": { # To represent a number. # Begins with this number. "doubleValue": 3.14, # Double value "int64Value": "A String", # Integer value }, "toValue": { # To represent a number. # Ends with this number. "doubleValue": 3.14, # Double value "int64Value": "A String", # Integer value }, }, "fieldName": "A String", # The dimension name or metric name. "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. "caseSensitive": True or False, # If true, the string value is case sensitive. "values": [ # The list of string values. Must be non-empty. "A String", ], }, "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. "operation": "A String", # The operation type for this filter. "value": { # To represent a number. # A numeric value or a date value. "doubleValue": 3.14, # Double value "int64Value": "A String", # Integer value }, }, "stringFilter": { # The filter for strings. # Strings related filter. "caseSensitive": True or False, # If true, the string value is case sensitive. "matchType": "A String", # The match type for this filter. "value": "A String", # The string value used for the matching. }, }, "andGroup": { # A list of filter expressions. # Each of the FilterExpressions in the and_group has an AND relationship. "expressions": [ # A list of filter expressions. # Object with schema name: GoogleAnalyticsAdminV1alphaAccessFilterExpression ], }, "notExpression": # Object with schema name: GoogleAnalyticsAdminV1alphaAccessFilterExpression # The FilterExpression is NOT of not_expression. "orGroup": { # A list of filter expressions. # Each of the FilterExpressions in the or_group has an OR relationship. "expressions": [ # A list of filter expressions. # Object with schema name: GoogleAnalyticsAdminV1alphaAccessFilterExpression ], }, }, "dimensions": [ # The dimensions requested and displayed in the response. Requests are allowed up to 9 dimensions. { # Dimensions are attributes of your data. For example, the dimension `userEmail` indicates the email of the user that accessed reporting data. Dimension values in report responses are strings. "dimensionName": "A String", # The API name of the dimension. See [Data Access Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) for the list of dimensions supported in this API. Dimensions are referenced by name in `dimensionFilter` and `orderBys`. }, ], "expandGroups": True or False, # Optional. Decides whether to return the users within user groups. This field works only when include_all_users is set to true. If true, it will return all users with access to the specified property or account. If false, only the users with direct access will be returned. "includeAllUsers": True or False, # Optional. Determines whether to include users who have never made an API call in the response. If true, all users with access to the specified property or account are included in the response, regardless of whether they have made an API call or not. If false, only the users who have made an API call will be included. "limit": "A String", # The 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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). "metricFilter": { # Expresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics. # Metric filters allow you to restrict report response to specific metric values which match the filter. Metric filters are applied after aggregating the report's rows, similar to SQL having-clause. Dimensions cannot be used in this filter. "accessFilter": { # An expression to filter dimension or metric values. # A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics. "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. "fromValue": { # To represent a number. # Begins with this number. "doubleValue": 3.14, # Double value "int64Value": "A String", # Integer value }, "toValue": { # To represent a number. # Ends with this number. "doubleValue": 3.14, # Double value "int64Value": "A String", # Integer value }, }, "fieldName": "A String", # The dimension name or metric name. "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. "caseSensitive": True or False, # If true, the string value is case sensitive. "values": [ # The list of string values. Must be non-empty. "A String", ], }, "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. "operation": "A String", # The operation type for this filter. "value": { # To represent a number. # A numeric value or a date value. "doubleValue": 3.14, # Double value "int64Value": "A String", # Integer value }, }, "stringFilter": { # The filter for strings. # Strings related filter. "caseSensitive": True or False, # If true, the string value is case sensitive. "matchType": "A String", # The match type for this filter. "value": "A String", # The string value used for the matching. }, }, "andGroup": { # A list of filter expressions. # Each of the FilterExpressions in the and_group has an AND relationship. "expressions": [ # A list of filter expressions. # Object with schema name: GoogleAnalyticsAdminV1alphaAccessFilterExpression ], }, "notExpression": # Object with schema name: GoogleAnalyticsAdminV1alphaAccessFilterExpression # The FilterExpression is NOT of not_expression. "orGroup": { # A list of filter expressions. # Each of the FilterExpressions in the or_group has an OR relationship. "expressions": [ # A list of filter expressions. # Object with schema name: GoogleAnalyticsAdminV1alphaAccessFilterExpression ], }, }, "metrics": [ # The metrics requested and displayed in the response. Requests are allowed up to 10 metrics. { # The quantitative measurements of a report. For example, the metric `accessCount` is the total number of data access records. "metricName": "A String", # The API name of the metric. See [Data Access Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) for the list of metrics supported in this API. Metrics are referenced by name in `metricFilter` & `orderBys`. }, ], "offset": "A String", # The 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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). "orderBys": [ # Specifies how rows are ordered in the response. { # Order bys define how rows will be sorted in the response. For example, ordering rows by descending access count is one ordering, and ordering rows by the country string is a different ordering. "desc": True or False, # If true, sorts by descending order. If false or unspecified, sorts in ascending order. "dimension": { # Sorts by dimension values. # Sorts results by a dimension's values. "dimensionName": "A String", # A dimension name in the request to order by. "orderType": "A String", # Controls the rule for dimension value ordering. }, "metric": { # Sorts by metric values. # Sorts results by a metric's values. "metricName": "A String", # A metric name in the request to order by. }, }, ], "returnEntityQuota": True or False, # Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level requests, this field must be false. "timeZone": "A String", # This 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". } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # The customized Data Access Record Report response. "dimensionHeaders": [ # The header for a column in the report that corresponds to a specific dimension. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows. { # Describes a dimension column in the report. Dimensions requested in a report produce column entries within rows and DimensionHeaders. However, dimensions used exclusively within filters or expressions do not produce columns in a report; correspondingly, those dimensions do not produce headers. "dimensionName": "A String", # The dimension's name; for example 'userEmail'. }, ], "metricHeaders": [ # The header for a column in the report that corresponds to a specific metric. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows. { # Describes a metric column in the report. Visible metrics requested in a report produce column entries within rows and MetricHeaders. However, metrics used exclusively within filters or expressions do not produce columns in a report; correspondingly, those metrics do not produce headers. "metricName": "A String", # The metric's name; for example 'accessCount'. }, ], "quota": { # Current state of all quotas for this Analytics property. If any quota for a property is exhausted, all requests to that property will return Resource Exhausted errors. # The quota state for this Analytics property including this request. This field doesn't work with account-level requests. "concurrentRequests": { # Current state for a particular quota group. # Properties can use up to 50 concurrent requests. "consumed": 42, # Quota consumed by this request. "remaining": 42, # Quota remaining after this request. }, "serverErrorsPerProjectPerHour": { # Current state for a particular quota group. # Properties and cloud project pairs can have up to 50 server errors per hour. "consumed": 42, # Quota consumed by this request. "remaining": 42, # Quota remaining after this request. }, "tokensPerDay": { # Current state for a particular quota group. # Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens. "consumed": 42, # Quota consumed by this request. "remaining": 42, # Quota remaining after this request. }, "tokensPerHour": { # Current state for a particular quota group. # Properties can use 50,000 tokens per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas. "consumed": 42, # Quota consumed by this request. "remaining": 42, # Quota remaining after this request. }, "tokensPerProjectPerHour": { # Current state for a particular quota group. # Properties can use up to 25% of their tokens per project per hour. This amounts to Analytics 360 Properties can use 12,500 tokens per project per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas. "consumed": 42, # Quota consumed by this request. "remaining": 42, # Quota remaining after this request. }, }, "rowCount": 42, # The total number of rows in the query result. `rowCount` is independent of the number of rows returned in the response, the `limit` request parameter, and the `offset` request parameter. For example if a query returns 175 rows and includes `limit` of 50 in the API request, the response will contain `rowCount` of 175 but only 50 rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). "rows": [ # Rows of dimension value combinations and metric values in the report. { # Access report data for each row. "dimensionValues": [ # List of dimension values. These values are in the same order as specified in the request. { # The value of a dimension. "value": "A String", # The dimension value. For example, this value may be 'France' for the 'country' dimension. }, ], "metricValues": [ # List of metric values. These values are in the same order as specified in the request. { # The value of a metric. "value": "A String", # The measurement value. For example, this value may be '13'. }, ], }, ], }
setAutomatedGa4ConfigurationOptOut(body=None, x__xgafv=None)
Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property. Args: body: object, The request body. The object takes the form of: { # Request for setting the opt out status for the automated GA4 setup process. "optOut": True or False, # The status to set. "property": "A String", # Required. The UA property to set the opt out status. Note this request uses the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} Example: properties/1234 } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for setting the opt out status for the automated GA4 setup process. }
updateAttributionSettings(name, body=None, updateMask=None, x__xgafv=None)
Updates attribution settings on a property. Args: name: string, Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings" (required) body: object, The request body. The object takes the form of: { # The attribution settings used for a given property. This is a singleton resource. "acquisitionConversionEventLookbackWindow": "A String", # Required. The lookback window configuration for acquisition conversion events. The default window size is 30 days. "adsWebConversionDataExportScope": "A String", # Required. The Conversion Export Scope for data exported to linked Ads Accounts. "name": "A String", # Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings" "otherConversionEventLookbackWindow": "A String", # Required. The lookback window for all other, non-acquisition conversion events. The default window size is 90 days. "reportingAttributionModel": "A String", # Required. The reporting attribution model used to calculate conversion credit in this property's reports. Changing the attribution model will apply to both historical and future data. These changes will be reflected in reports with conversion and revenue data. User and session data will be unaffected. } updateMask: string, Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # The attribution settings used for a given property. This is a singleton resource. "acquisitionConversionEventLookbackWindow": "A String", # Required. The lookback window configuration for acquisition conversion events. The default window size is 30 days. "adsWebConversionDataExportScope": "A String", # Required. The Conversion Export Scope for data exported to linked Ads Accounts. "name": "A String", # Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings" "otherConversionEventLookbackWindow": "A String", # Required. The lookback window for all other, non-acquisition conversion events. The default window size is 90 days. "reportingAttributionModel": "A String", # Required. The reporting attribution model used to calculate conversion credit in this property's reports. Changing the attribution model will apply to both historical and future data. These changes will be reflected in reports with conversion and revenue data. User and session data will be unaffected. }
updateDataRetentionSettings(name, body=None, updateMask=None, x__xgafv=None)
Updates the singleton data retention settings for this property. Args: name: string, Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings (required) body: object, The request body. The object takes the form of: { # Settings values for data retention. This is a singleton resource. "eventDataRetention": "A String", # The length of time that event-level data is retained. "name": "A String", # Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings "resetUserDataOnNewActivity": True or False, # If true, reset the retention period for the user identifier with every event from that user. } updateMask: string, Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Settings values for data retention. This is a singleton resource. "eventDataRetention": "A String", # The length of time that event-level data is retained. "name": "A String", # Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings "resetUserDataOnNewActivity": True or False, # If true, reset the retention period for the user identifier with every event from that user. }
updateGoogleSignalsSettings(name, body=None, updateMask=None, x__xgafv=None)
Updates Google Signals settings for a property. Args: name: string, Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings" (required) body: object, The request body. The object takes the form of: { # Settings values for Google Signals. This is a singleton resource. "consent": "A String", # Output only. Terms of Service acceptance. "name": "A String", # Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings" "state": "A String", # Status of this setting. } updateMask: string, Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Settings values for Google Signals. This is a singleton resource. "consent": "A String", # Output only. Terms of Service acceptance. "name": "A String", # Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings" "state": "A String", # Status of this setting. }