Types for Google Analytics Admin v1beta API¶
- class google.analytics.admin_v1beta.types.AccessBetweenFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
To express that the result needs to be between two numbers (inclusive).
- from_value¶
Begins with this number.
- to_value¶
Ends with this number.
- class google.analytics.admin_v1beta.types.AccessDateRange(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A contiguous range of days: startDate, startDate + 1, …, endDate.
- start_date¶
The inclusive start date for the query in the format
YYYY-MM-DD
. Cannot be afterendDate
. The formatNdaysAgo
,yesterday
, ortoday
is also accepted, and in that case, the date is inferred based on the current time in the request’s time zone.- Type
- class google.analytics.admin_v1beta.types.AccessDimension(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
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.- dimension_name¶
The API name of the dimension. See Data Access Schema for the list of dimensions supported in this API.
Dimensions are referenced by name in
dimensionFilter
andorderBys
.- Type
- class google.analytics.admin_v1beta.types.AccessDimensionHeader(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
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.
- class google.analytics.admin_v1beta.types.AccessDimensionValue(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The value of a dimension.
- class google.analytics.admin_v1beta.types.AccessFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
An expression to filter dimension or metric values.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- class google.analytics.admin_v1beta.types.AccessFilterExpression(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Expresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- and_group¶
Each of the FilterExpressions in the and_group has an AND relationship.
This field is a member of oneof
one_expression
.
- or_group¶
Each of the FilterExpressions in the or_group has an OR relationship.
This field is a member of oneof
one_expression
.
- not_expression¶
The FilterExpression is NOT of not_expression.
This field is a member of oneof
one_expression
.
- class google.analytics.admin_v1beta.types.AccessFilterExpressionList(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A list of filter expressions.
- expressions¶
A list of filter expressions.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessFilterExpression]
- class google.analytics.admin_v1beta.types.AccessInListFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The result needs to be in a list of string values.
- class google.analytics.admin_v1beta.types.AccessMetric(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The quantitative measurements of a report. For example, the metric
accessCount
is the total number of data access records.- metric_name¶
The API name of the metric. See Data Access Schema for the list of metrics supported in this API.
Metrics are referenced by name in
metricFilter
&orderBys
.- Type
- class google.analytics.admin_v1beta.types.AccessMetricHeader(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
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.
- class google.analytics.admin_v1beta.types.AccessMetricValue(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The value of a metric.
- class google.analytics.admin_v1beta.types.AccessNumericFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Filters for numeric or date values.
- operation¶
The operation type for this filter.
- value¶
A numeric value or a date value.
- class Operation(value)[source]¶
Bases:
proto.enums.Enum
The operation applied to a numeric filter.
- Values:
- OPERATION_UNSPECIFIED (0):
Unspecified.
- EQUAL (1):
Equal
- LESS_THAN (2):
Less than
- LESS_THAN_OR_EQUAL (3):
Less than or equal
- GREATER_THAN (4):
Greater than
- GREATER_THAN_OR_EQUAL (5):
Greater than or equal
- class google.analytics.admin_v1beta.types.AccessOrderBy(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
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.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- desc¶
If true, sorts by descending order. If false or unspecified, sorts in ascending order.
- Type
- class DimensionOrderBy(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Sorts by dimension values.
- order_type¶
Controls the rule for dimension value ordering.
- class OrderType(value)[source]¶
Bases:
proto.enums.Enum
Rule to order the string dimension values by.
- Values:
- ORDER_TYPE_UNSPECIFIED (0):
Unspecified.
- ALPHANUMERIC (1):
Alphanumeric sort by Unicode code point. For example, “2” < “A” < “X” < “b” < “z”.
- CASE_INSENSITIVE_ALPHANUMERIC (2):
Case insensitive alphanumeric sort by lower case Unicode code point. For example, “2” < “A” < “b” < “X” < “z”.
- NUMERIC (3):
Dimension values are converted to numbers before sorting. For example in NUMERIC sort, “25” < “100”, and in
ALPHANUMERIC
sort, “100” < “25”. Non-numeric dimension values all have equal ordering value below all numeric values.
- class MetricOrderBy(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Sorts by metric values.
- class google.analytics.admin_v1beta.types.AccessQuota(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
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.
- tokens_per_day¶
Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.
- tokens_per_hour¶
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.
- concurrent_requests¶
Properties can use up to 50 concurrent requests.
- server_errors_per_project_per_hour¶
Properties and cloud project pairs can have up to 50 server errors per hour.
- tokens_per_project_per_hour¶
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.
- class google.analytics.admin_v1beta.types.AccessQuotaStatus(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Current state for a particular quota group.
- class google.analytics.admin_v1beta.types.AccessRow(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Access report data for each row.
- dimension_values¶
List of dimension values. These values are in the same order as specified in the request.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessDimensionValue]
- metric_values¶
List of metric values. These values are in the same order as specified in the request.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessMetricValue]
- class google.analytics.admin_v1beta.types.AccessStringFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The filter for strings.
- match_type¶
The match type for this filter.
- class MatchType(value)[source]¶
Bases:
proto.enums.Enum
The match type of a string filter.
- Values:
- MATCH_TYPE_UNSPECIFIED (0):
Unspecified
- EXACT (1):
Exact match of the string value.
- BEGINS_WITH (2):
Begins with the string value.
- ENDS_WITH (3):
Ends with the string value.
- CONTAINS (4):
Contains the string value.
- FULL_REGEXP (5):
Full match for the regular expression with the string value.
- PARTIAL_REGEXP (6):
Partial match for the regular expression with the string value.
- class google.analytics.admin_v1beta.types.Account(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A resource message representing a Google Analytics account.
- name¶
Output only. Resource name of this account. Format: accounts/{account} Example: “accounts/100”.
- Type
- create_time¶
Output only. Time when this account was originally created.
- update_time¶
Output only. Time when account payload fields were last updated.
- deleted¶
Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
- Type
- class google.analytics.admin_v1beta.types.AccountSummary(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A virtual resource representing an overview of an account and all its child GA4 properties.
- name¶
Resource name for this account summary. Format: accountSummaries/{account_id} Example: “accountSummaries/1000”.
- Type
- account¶
Resource name of account referred to by this account summary Format: accounts/{account_id} Example: “accounts/1000”.
- Type
- property_summaries¶
List of summaries for child accounts of this account.
- Type
MutableSequence[google.analytics.admin_v1beta.types.PropertySummary]
- class google.analytics.admin_v1beta.types.AcknowledgeUserDataCollectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for AcknowledgeUserDataCollection RPC.
- acknowledgement¶
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.”.
- Type
- class google.analytics.admin_v1beta.types.AcknowledgeUserDataCollectionResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for AcknowledgeUserDataCollection RPC.
- class google.analytics.admin_v1beta.types.ActionType(value)[source]¶
Bases:
proto.enums.Enum
Types of actions that may change a resource.
- Values:
- ACTION_TYPE_UNSPECIFIED (0):
Action type unknown or not specified.
- CREATED (1):
Resource was created in this change.
- UPDATED (2):
Resource was updated in this change.
- DELETED (3):
Resource was deleted in this change.
- class google.analytics.admin_v1beta.types.ActorType(value)[source]¶
Bases:
proto.enums.Enum
Different kinds of actors that can make changes to Google Analytics resources.
- Values:
- ACTOR_TYPE_UNSPECIFIED (0):
Unknown or unspecified actor type.
- USER (1):
Changes made by the user specified in actor_email.
- SYSTEM (2):
Changes made by the Google Analytics system.
- SUPPORT (3):
Changes made by Google Analytics support team staff.
- class google.analytics.admin_v1beta.types.ArchiveCustomDimensionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ArchiveCustomDimension RPC.
- class google.analytics.admin_v1beta.types.ArchiveCustomMetricRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ArchiveCustomMetric RPC.
- class google.analytics.admin_v1beta.types.ChangeHistoryChange(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A description of a change to a single Google Analytics resource.
- action¶
The type of action that changed this resource.
- resource_before_change¶
Resource contents from before the change was made. If this resource was created in this change, this field will be missing.
- resource_after_change¶
Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing.
- class ChangeHistoryResource(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A snapshot of a resource as before or after the result of a change in change history.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- account¶
A snapshot of an Account resource in change history.
This field is a member of oneof
resource
.
- property¶
A snapshot of a Property resource in change history.
This field is a member of oneof
resource
.
- firebase_link¶
A snapshot of a FirebaseLink resource in change history.
This field is a member of oneof
resource
.
- google_ads_link¶
A snapshot of a GoogleAdsLink resource in change history.
This field is a member of oneof
resource
.
- conversion_event¶
A snapshot of a ConversionEvent resource in change history.
This field is a member of oneof
resource
.
- measurement_protocol_secret¶
A snapshot of a MeasurementProtocolSecret resource in change history.
This field is a member of oneof
resource
.
- data_retention_settings¶
A snapshot of a data retention settings resource in change history.
This field is a member of oneof
resource
.
- class google.analytics.admin_v1beta.types.ChangeHistoryEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A set of changes within a Google Analytics account or its child properties that resulted from the same cause. Common causes would be updates made in the Google Analytics UI, changes from customer support, or automatic Google Analytics system changes.
- change_time¶
Time when change was made.
- actor_type¶
The type of actor that made this change.
- user_actor_email¶
Email address of the Google account that made the change. This will be a valid email address if the actor field is set to USER, and empty otherwise. Google accounts that have been deleted will cause an error.
- Type
- changes_filtered¶
If true, then the list of changes returned was filtered, and does not represent all changes that occurred in this event.
- Type
- changes¶
A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.
- Type
MutableSequence[google.analytics.admin_v1beta.types.ChangeHistoryChange]
- class google.analytics.admin_v1beta.types.ChangeHistoryResourceType(value)[source]¶
Bases:
proto.enums.Enum
Types of resources whose changes may be returned from change history.
- Values:
- CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED (0):
Resource type unknown or not specified.
- ACCOUNT (1):
Account resource
- PROPERTY (2):
Property resource
- FIREBASE_LINK (6):
FirebaseLink resource
- GOOGLE_ADS_LINK (7):
GoogleAdsLink resource
- GOOGLE_SIGNALS_SETTINGS (8):
GoogleSignalsSettings resource
- CONVERSION_EVENT (9):
ConversionEvent resource
- MEASUREMENT_PROTOCOL_SECRET (10):
MeasurementProtocolSecret resource
- DATA_RETENTION_SETTINGS (13):
DataRetentionSettings resource
- DISPLAY_VIDEO_360_ADVERTISER_LINK (14):
DisplayVideo360AdvertiserLink resource
- DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL (15):
DisplayVideo360AdvertiserLinkProposal resource
- DATA_STREAM (18):
DataStream resource
- ATTRIBUTION_SETTINGS (20):
AttributionSettings resource
- class google.analytics.admin_v1beta.types.ConversionEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A conversion event in a Google Analytics property.
- name¶
Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event}
- Type
- event_name¶
Immutable. The event name for this conversion event. Examples: ‘click’, ‘purchase’
- Type
- create_time¶
Output only. Time when this conversion event was created in the property.
- deletable¶
Output only. If set, this event can currently be deleted with DeleteConversionEvent.
- Type
- custom¶
Output only. If set to true, this conversion event refers to a custom event. If set to false, this conversion event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom conversion events that may be created per property.
- Type
- counting_method¶
Optional. The method by which conversions will be counted across multiple events within a session. If this value is not provided, it will be set to
ONCE_PER_EVENT
.
- default_conversion_value¶
Optional. Defines a default value/currency for a conversion event.
This field is a member of oneof
_default_conversion_value
.
- class ConversionCountingMethod(value)[source]¶
Bases:
proto.enums.Enum
The method by which conversions will be counted across multiple events within a session.
- Values:
- CONVERSION_COUNTING_METHOD_UNSPECIFIED (0):
Counting method not specified.
- ONCE_PER_EVENT (1):
Each Event instance is considered a Conversion.
- ONCE_PER_SESSION (2):
An Event instance is considered a Conversion at most once per session per user.
- class DefaultConversionValue(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Defines a default value/currency for a conversion event. Both value and currency must be provided.
- value¶
This value will be used to populate the value for all conversions of the specified event_name where the event “value” parameter is unset.
This field is a member of oneof
_value
.- Type
- currency_code¶
When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.
This field is a member of oneof
_currency_code
.- Type
- class google.analytics.admin_v1beta.types.CreateConversionEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for CreateConversionEvent RPC
- conversion_event¶
Required. The conversion event to create.
- class google.analytics.admin_v1beta.types.CreateCustomDimensionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for CreateCustomDimension RPC.
- custom_dimension¶
Required. The CustomDimension to create.
- class google.analytics.admin_v1beta.types.CreateCustomMetricRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for CreateCustomMetric RPC.
- custom_metric¶
Required. The CustomMetric to create.
- class google.analytics.admin_v1beta.types.CreateDataStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for CreateDataStream RPC.
- data_stream¶
Required. The DataStream to create.
- class google.analytics.admin_v1beta.types.CreateFirebaseLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for CreateFirebaseLink RPC
- firebase_link¶
Required. The Firebase link to create.
- class google.analytics.admin_v1beta.types.CreateGoogleAdsLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for CreateGoogleAdsLink RPC
- google_ads_link¶
Required. The GoogleAdsLink to create.
- class google.analytics.admin_v1beta.types.CreateKeyEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for CreateKeyEvent RPC
- key_event¶
Required. The Key Event to create.
- class google.analytics.admin_v1beta.types.CreateMeasurementProtocolSecretRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for CreateMeasurementProtocolSecret RPC
- parent¶
Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}
- Type
- measurement_protocol_secret¶
Required. The measurement protocol secret to create.
- class google.analytics.admin_v1beta.types.CreatePropertyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for CreateProperty RPC.
- property¶
Required. The property to create. Note: the supplied property must specify its parent.
- class google.analytics.admin_v1beta.types.CustomDimension(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A definition for a CustomDimension.
- name¶
Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension}
- Type
- parameter_name¶
Required. Immutable. Tagging parameter name for this custom dimension. If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name.
If this is an item-scoped dimension, then this is the parameter name found in the eCommerce items array.
May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions.
- Type
- display_name¶
Required. Display name for this custom dimension as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
- Type
- description¶
Optional. Description for this custom dimension. Max length of 150 characters.
- Type
- scope¶
Required. Immutable. The scope of this dimension.
- disallow_ads_personalization¶
Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization.
This is currently only supported by user-scoped custom dimensions.
- Type
- class DimensionScope(value)[source]¶
Bases:
proto.enums.Enum
Valid values for the scope of this dimension.
- Values:
- DIMENSION_SCOPE_UNSPECIFIED (0):
Scope unknown or not specified.
- EVENT (1):
Dimension scoped to an event.
- USER (2):
Dimension scoped to a user.
- ITEM (3):
Dimension scoped to eCommerce items
- class google.analytics.admin_v1beta.types.CustomMetric(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A definition for a custom metric.
- name¶
Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}
- Type
- parameter_name¶
Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name.
May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
- Type
- display_name¶
Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
- Type
- description¶
Optional. Description for this custom dimension. Max length of 150 characters.
- Type
- measurement_unit¶
Required. The type for the custom metric’s value.
- scope¶
Required. Immutable. The scope of this custom metric.
- restricted_metric_type¶
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
- Type
MutableSequence[google.analytics.admin_v1beta.types.CustomMetric.RestrictedMetricType]
- class MeasurementUnit(value)[source]¶
Bases:
proto.enums.Enum
Possible types of representing the custom metric’s value.
Currency representation may change in the future, requiring a breaking API change.
- Values:
- MEASUREMENT_UNIT_UNSPECIFIED (0):
MeasurementUnit unspecified or missing.
- STANDARD (1):
This metric uses default units.
- CURRENCY (2):
This metric measures a currency.
- FEET (3):
This metric measures feet.
- METERS (4):
This metric measures meters.
- KILOMETERS (5):
This metric measures kilometers.
- MILES (6):
This metric measures miles.
- MILLISECONDS (7):
This metric measures milliseconds.
- SECONDS (8):
This metric measures seconds.
- MINUTES (9):
This metric measures minutes.
- HOURS (10):
This metric measures hours.
- class MetricScope(value)[source]¶
Bases:
proto.enums.Enum
The scope of this metric.
- Values:
- METRIC_SCOPE_UNSPECIFIED (0):
Scope unknown or not specified.
- EVENT (1):
Metric scoped to an event.
- class RestrictedMetricType(value)[source]¶
Bases:
proto.enums.Enum
Labels that mark the data in this custom metric as data that should be restricted to specific users.
- Values:
- RESTRICTED_METRIC_TYPE_UNSPECIFIED (0):
Type unknown or unspecified.
- COST_DATA (1):
Metric reports cost data.
- REVENUE_DATA (2):
Metric reports revenue data.
- class google.analytics.admin_v1beta.types.DataRetentionSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Settings values for data retention. This is a singleton resource.
- name¶
Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings
- Type
- event_data_retention¶
The length of time that event-level data is retained.
- reset_user_data_on_new_activity¶
If true, reset the retention period for the user identifier with every event from that user.
- Type
- class RetentionDuration(value)[source]¶
Bases:
proto.enums.Enum
Valid values for the data retention duration.
- Values:
- RETENTION_DURATION_UNSPECIFIED (0):
Data retention time duration is not specified.
- TWO_MONTHS (1):
The data retention time duration is 2 months.
- FOURTEEN_MONTHS (3):
The data retention time duration is 14 months.
- TWENTY_SIX_MONTHS (4):
The data retention time duration is 26 months. Available to 360 properties only.
- THIRTY_EIGHT_MONTHS (5):
The data retention time duration is 38 months. Available to 360 properties only.
- FIFTY_MONTHS (6):
The data retention time duration is 50 months. Available to 360 properties only.
- class google.analytics.admin_v1beta.types.DataSharingSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A resource message representing data sharing settings of a Google Analytics account.
- name¶
Output only. Resource name. Format: accounts/{account}/dataSharingSettings Example: “accounts/1000/dataSharingSettings”.
- Type
- sharing_with_google_support_enabled¶
Allows Google support to access the data in order to help troubleshoot issues.
- Type
- sharing_with_google_assigned_sales_enabled¶
Allows Google sales teams that are assigned to the customer to access the data in order to suggest configuration changes to improve results. Sales team restrictions still apply when enabled.
- Type
- sharing_with_google_any_sales_enabled¶
Allows any of Google sales to access the data in order to suggest configuration changes to improve results.
- Type
- sharing_with_google_products_enabled¶
Allows Google to use the data to improve other Google products or services.
- Type
- class google.analytics.admin_v1beta.types.DataStream(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A resource message representing a data stream.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- web_stream_data¶
Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.
This field is a member of oneof
stream_data
.
- android_app_stream_data¶
Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.
This field is a member of oneof
stream_data
.
- ios_app_stream_data¶
Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.
This field is a member of oneof
stream_data
.
- name¶
Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: “properties/1000/dataStreams/2000”.
- Type
- type_¶
Required. Immutable. The type of this DataStream resource.
- display_name¶
Human-readable display name for the Data Stream. Required for web data streams.
The max allowed display name length is 255 UTF-16 code units.
- Type
- create_time¶
Output only. Time when this stream was originally created.
- update_time¶
Output only. Time when stream payload fields were last updated.
- class AndroidAppStreamData(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Data specific to Android app streams.
- firebase_app_id¶
Output only. ID of the corresponding Android app in Firebase, if any. This ID can change if the Android app is deleted and recreated.
- Type
- class DataStreamType(value)[source]¶
Bases:
proto.enums.Enum
The type of the data stream.
- Values:
- DATA_STREAM_TYPE_UNSPECIFIED (0):
Type unknown or not specified.
- WEB_DATA_STREAM (1):
Web data stream.
- ANDROID_APP_DATA_STREAM (2):
Android app data stream.
- IOS_APP_DATA_STREAM (3):
iOS app data stream.
- class IosAppStreamData(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Data specific to iOS app streams.
- firebase_app_id¶
Output only. ID of the corresponding iOS app in Firebase, if any. This ID can change if the iOS app is deleted and recreated.
- Type
- class WebStreamData(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Data specific to web streams.
- firebase_app_id¶
Output only. ID of the corresponding web app in Firebase, if any. This ID can change if the web app is deleted and recreated.
- Type
- default_uri¶
Domain name of the web app being measured, or empty. Example: “http://www.google.com”, “https://www.google.com”.
- Type
- class google.analytics.admin_v1beta.types.DeleteAccountRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for DeleteAccount RPC.
- class google.analytics.admin_v1beta.types.DeleteConversionEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for DeleteConversionEvent RPC
- class google.analytics.admin_v1beta.types.DeleteDataStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for DeleteDataStream RPC.
- class google.analytics.admin_v1beta.types.DeleteFirebaseLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for DeleteFirebaseLink RPC
- class google.analytics.admin_v1beta.types.DeleteGoogleAdsLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for DeleteGoogleAdsLink RPC.
- class google.analytics.admin_v1beta.types.DeleteKeyEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for DeleteKeyEvent RPC
- class google.analytics.admin_v1beta.types.DeleteMeasurementProtocolSecretRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for DeleteMeasurementProtocolSecret RPC
- class google.analytics.admin_v1beta.types.DeletePropertyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for DeleteProperty RPC.
- class google.analytics.admin_v1beta.types.FirebaseLink(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A link between a GA4 property and a Firebase project.
- project¶
Immutable. Firebase project resource name. When creating a FirebaseLink, you may provide this resource name using either a project number or project ID. Once this resource has been created, returned FirebaseLinks will always have a project_name that contains a project number.
Format: ‘projects/{project number}’ Example: ‘projects/1234’
- Type
- create_time¶
Output only. Time when this FirebaseLink was originally created.
- class google.analytics.admin_v1beta.types.GetAccountRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetAccount RPC.
- class google.analytics.admin_v1beta.types.GetConversionEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetConversionEvent RPC
- class google.analytics.admin_v1beta.types.GetCustomDimensionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetCustomDimension RPC.
- class google.analytics.admin_v1beta.types.GetCustomMetricRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetCustomMetric RPC.
- class google.analytics.admin_v1beta.types.GetDataRetentionSettingsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetDataRetentionSettings RPC.
- class google.analytics.admin_v1beta.types.GetDataSharingSettingsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetDataSharingSettings RPC.
- class google.analytics.admin_v1beta.types.GetDataStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetDataStream RPC.
- class google.analytics.admin_v1beta.types.GetKeyEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetKeyEvent RPC
- class google.analytics.admin_v1beta.types.GetMeasurementProtocolSecretRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetMeasurementProtocolSecret RPC.
- class google.analytics.admin_v1beta.types.GetPropertyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for GetProperty RPC.
- class google.analytics.admin_v1beta.types.GoogleAdsLink(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A link between a GA4 property and a Google Ads account.
- name¶
Output only. Format:
properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
Note: googleAdsLinkId is not the Google Ads customer ID.
- Type
- ads_personalization_enabled¶
Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
- create_time¶
Output only. Time when this link was originally created.
- update_time¶
Output only. Time when this link was last updated.
- class google.analytics.admin_v1beta.types.IndustryCategory(value)[source]¶
Bases:
proto.enums.Enum
The category selected for this property, used for industry benchmarking.
- Values:
- INDUSTRY_CATEGORY_UNSPECIFIED (0):
Industry category unspecified
- AUTOMOTIVE (1):
Automotive
- BUSINESS_AND_INDUSTRIAL_MARKETS (2):
Business and industrial markets
- FINANCE (3):
Finance
- HEALTHCARE (4):
Healthcare
- TECHNOLOGY (5):
Technology
- TRAVEL (6):
Travel
- OTHER (7):
Other
- ARTS_AND_ENTERTAINMENT (8):
Arts and entertainment
- BEAUTY_AND_FITNESS (9):
Beauty and fitness
- BOOKS_AND_LITERATURE (10):
Books and literature
- FOOD_AND_DRINK (11):
Food and drink
- GAMES (12):
Games
- HOBBIES_AND_LEISURE (13):
Hobbies and leisure
- HOME_AND_GARDEN (14):
Home and garden
- INTERNET_AND_TELECOM (15):
Internet and telecom
- LAW_AND_GOVERNMENT (16):
Law and government
- NEWS (17):
News
- ONLINE_COMMUNITIES (18):
Online communities
- PEOPLE_AND_SOCIETY (19):
People and society
- PETS_AND_ANIMALS (20):
Pets and animals
- REAL_ESTATE (21):
Real estate
- REFERENCE (22):
Reference
- SCIENCE (23):
Science
- SPORTS (24):
Sports
- JOBS_AND_EDUCATION (25):
Jobs and education
- SHOPPING (26):
Shopping
- class google.analytics.admin_v1beta.types.KeyEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A key event in a Google Analytics property.
- name¶
Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{key_event}
- Type
- create_time¶
Output only. Time when this key event was created in the property.
- custom¶
Output only. If set to true, this key event refers to a custom event. If set to false, this key event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom key events that may be created per property.
- Type
- counting_method¶
Required. The method by which Key Events will be counted across multiple events within a session.
- default_value¶
Optional. Defines a default value/currency for a key event.
- class CountingMethod(value)[source]¶
Bases:
proto.enums.Enum
The method by which Key Events will be counted across multiple events within a session.
- Values:
- COUNTING_METHOD_UNSPECIFIED (0):
Counting method not specified.
- ONCE_PER_EVENT (1):
Each Event instance is considered a Key Event.
- ONCE_PER_SESSION (2):
An Event instance is considered a Key Event at most once per session per user.
- class DefaultValue(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Defines a default value/currency for a key event.
- numeric_value¶
Required. This will be used to populate the “value” parameter for all occurrences of this Key Event (specified by event_name) where that parameter is unset.
- Type
- currency_code¶
Required. When an occurrence of this Key Event (specified by event_name) has no set currency this currency will be applied as the default. Must be in ISO 4217 currency code format.
See https://en.wikipedia.org/wiki/ISO_4217 for more information.
- Type
- class google.analytics.admin_v1beta.types.ListAccountSummariesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListAccountSummaries RPC.
- page_size¶
The 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)
- Type
- class google.analytics.admin_v1beta.types.ListAccountSummariesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListAccountSummaries RPC.
- account_summaries¶
Account summaries of all accounts the caller has access to.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccountSummary]
- class google.analytics.admin_v1beta.types.ListAccountsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListAccounts RPC.
- page_size¶
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)
- Type
- page_token¶
A page token, received from a previous
ListAccounts
call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListAccounts
must match the call that provided the page token.- Type
- class google.analytics.admin_v1beta.types.ListAccountsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListAccounts RPC.
- accounts¶
Results that were accessible to the caller.
- Type
MutableSequence[google.analytics.admin_v1beta.types.Account]
- class google.analytics.admin_v1beta.types.ListConversionEventsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListConversionEvents RPC
- page_size¶
The 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)
- Type
- class google.analytics.admin_v1beta.types.ListConversionEventsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListConversionEvents RPC.
- conversion_events¶
The requested conversion events
- Type
MutableSequence[google.analytics.admin_v1beta.types.ConversionEvent]
- class google.analytics.admin_v1beta.types.ListCustomDimensionsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListCustomDimensions RPC.
- page_size¶
The 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).
- Type
- class google.analytics.admin_v1beta.types.ListCustomDimensionsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListCustomDimensions RPC.
- custom_dimensions¶
List of CustomDimensions.
- Type
MutableSequence[google.analytics.admin_v1beta.types.CustomDimension]
- class google.analytics.admin_v1beta.types.ListCustomMetricsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListCustomMetrics RPC.
- page_size¶
The 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).
- Type
- class google.analytics.admin_v1beta.types.ListCustomMetricsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListCustomMetrics RPC.
- custom_metrics¶
List of CustomMetrics.
- Type
MutableSequence[google.analytics.admin_v1beta.types.CustomMetric]
- class google.analytics.admin_v1beta.types.ListDataStreamsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListDataStreams RPC.
- page_size¶
The 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).
- Type
- class google.analytics.admin_v1beta.types.ListDataStreamsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListDataStreams RPC.
- data_streams¶
List of DataStreams.
- Type
MutableSequence[google.analytics.admin_v1beta.types.DataStream]
- class google.analytics.admin_v1beta.types.ListFirebaseLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListFirebaseLinks RPC
- page_size¶
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)
- Type
- class google.analytics.admin_v1beta.types.ListFirebaseLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListFirebaseLinks RPC
- firebase_links¶
List of FirebaseLinks. This will have at most one value.
- Type
MutableSequence[google.analytics.admin_v1beta.types.FirebaseLink]
- class google.analytics.admin_v1beta.types.ListGoogleAdsLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListGoogleAdsLinks RPC.
- page_size¶
The 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).
- Type
- class google.analytics.admin_v1beta.types.ListGoogleAdsLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListGoogleAdsLinks RPC.
- google_ads_links¶
List of GoogleAdsLinks.
- Type
MutableSequence[google.analytics.admin_v1beta.types.GoogleAdsLink]
- class google.analytics.admin_v1beta.types.ListKeyEventsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListKeyEvents RPC
- page_size¶
The 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)
- Type
- class google.analytics.admin_v1beta.types.ListKeyEventsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListKeyEvents RPC.
- key_events¶
The requested Key Events
- Type
MutableSequence[google.analytics.admin_v1beta.types.KeyEvent]
- class google.analytics.admin_v1beta.types.ListMeasurementProtocolSecretsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListMeasurementProtocolSecret RPC
- parent¶
Required. The resource name of the parent stream. Format:
properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
- Type
- page_size¶
The maximum number of resources to return. If unspecified, at most 10 resources will be returned. The maximum value is 10. Higher values will be coerced to the maximum.
- Type
- class google.analytics.admin_v1beta.types.ListMeasurementProtocolSecretsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListMeasurementProtocolSecret RPC
- measurement_protocol_secrets¶
A list of secrets for the parent stream specified in the request.
- Type
MutableSequence[google.analytics.admin_v1beta.types.MeasurementProtocolSecret]
- class google.analytics.admin_v1beta.types.ListPropertiesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ListProperties RPC.
- filter¶
Required. An expression for filtering the results of the request. Fields eligible for filtering are:
parent:
(The resource name of the parent account/property) orancestor:
(The resource name of the parent account) orfirebase_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. |
- Type
- page_size¶
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)
- Type
- page_token¶
A page token, received from a previous
ListProperties
call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListProperties
must match the call that provided the page token.- Type
- class google.analytics.admin_v1beta.types.ListPropertiesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ListProperties RPC.
- properties¶
Results that matched the filter criteria and were accessible to the caller.
- Type
MutableSequence[google.analytics.admin_v1beta.types.Property]
- class google.analytics.admin_v1beta.types.MeasurementProtocolSecret(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A secret value used for sending hits to Measurement Protocol.
- name¶
Output only. Resource name of this secret. This secret may be a child of any type of stream. Format:
properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
- Type
- class google.analytics.admin_v1beta.types.NumericValue(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
To represent a number.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- class google.analytics.admin_v1beta.types.Property(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A resource message representing a Google Analytics GA4 property.
- name¶
Output only. Resource name of this property. Format: properties/{property_id} Example: “properties/1000”.
- Type
- property_type¶
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.
- create_time¶
Output only. Time when the entity was originally created.
- update_time¶
Output only. Time when entity payload fields were last updated.
- parent¶
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”.
- Type
- display_name¶
Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
- Type
- industry_category¶
Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
- time_zone¶
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”.
- Type
- currency_code¶
The currency type used in reports involving monetary values.
Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: “USD”, “EUR”, “JPY”.
- Type
- service_level¶
Output only. The Google Analytics service level that applies to this property.
- delete_time¶
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.
- expire_time¶
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.
- class google.analytics.admin_v1beta.types.PropertySummary(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A virtual resource representing metadata for a GA4 property.
- property¶
Resource name of property referred to by this property summary Format: properties/{property_id} Example: “properties/1000”.
- Type
- property_type¶
The property’s property type.
- class google.analytics.admin_v1beta.types.PropertyType(value)[source]¶
Bases:
proto.enums.Enum
Types of Property resources.
- Values:
- PROPERTY_TYPE_UNSPECIFIED (0):
Unknown or unspecified property type
- PROPERTY_TYPE_ORDINARY (1):
Ordinary GA4 property
- PROPERTY_TYPE_SUBPROPERTY (2):
GA4 subproperty
- PROPERTY_TYPE_ROLLUP (3):
GA4 rollup property
- class google.analytics.admin_v1beta.types.ProvisionAccountTicketRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for ProvisionAccountTicket RPC.
- account¶
The account to create.
- class google.analytics.admin_v1beta.types.ProvisionAccountTicketResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for ProvisionAccountTicket RPC.
- class google.analytics.admin_v1beta.types.RunAccessReportRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The request for a Data Access Record Report.
- entity¶
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 GA4 property ID. To request at the account level, entity should be for example ‘accounts/1234’ if “1234” is your GA4 Account ID.
- Type
- dimensions¶
The dimensions requested and displayed in the response. Requests are allowed up to 9 dimensions.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessDimension]
- metrics¶
The metrics requested and displayed in the response. Requests are allowed up to 10 metrics.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessMetric]
- date_ranges¶
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.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessDateRange]
- dimension_filter¶
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 for examples. Metrics cannot be used in this filter.
- metric_filter¶
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.
- offset¶
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.
- Type
- limit¶
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 thelimit
. For instance, there are fewer than 300 possible values for the dimensioncountry
, so when reporting on onlycountry
, you can’t get more than 300 rows, even if you setlimit
to a higher value.To learn more about this pagination parameter, see Pagination.
- Type
- time_zone¶
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”.
- Type
- order_bys¶
Specifies how rows are ordered in the response.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessOrderBy]
- return_entity_quota¶
Toggles 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.
- Type
- include_all_users¶
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.
- Type
- class google.analytics.admin_v1beta.types.RunAccessReportResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The customized Data Access Record Report response.
- dimension_headers¶
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.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessDimensionHeader]
- metric_headers¶
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.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessMetricHeader]
- rows¶
Rows of dimension value combinations and metric values in the report.
- Type
MutableSequence[google.analytics.admin_v1beta.types.AccessRow]
- row_count¶
The total number of rows in the query result.
rowCount
is independent of the number of rows returned in the response, thelimit
request parameter, and theoffset
request parameter. For example if a query returns 175 rows and includeslimit
of 50 in the API request, the response will containrowCount
of 175 but only 50 rows.To learn more about this pagination parameter, see Pagination.
- Type
- quota¶
The quota state for this Analytics property including this request. This field doesn’t work with account-level requests.
- class google.analytics.admin_v1beta.types.SearchChangeHistoryEventsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for SearchChangeHistoryEvents RPC.
- account¶
Required. The account resource for which to return change history resources. Format: accounts/{account}
Example:
accounts/100
- Type
- property¶
Optional. Resource name for a child property. If set, only return changes made to this property or its child resources. Format: properties/{propertyId}
Example:
properties/100
- Type
- resource_type¶
Optional. If set, only return changes if they are for a resource that matches at least one of these types.
- Type
MutableSequence[google.analytics.admin_v1beta.types.ChangeHistoryResourceType]
- action¶
Optional. If set, only return changes that match one or more of these types of actions.
- Type
MutableSequence[google.analytics.admin_v1beta.types.ActionType]
- actor_email¶
Optional. If set, only return changes if they are made by a user in this list.
- Type
MutableSequence[str]
- earliest_change_time¶
Optional. If set, only return changes made after this time (inclusive).
- latest_change_time¶
Optional. If set, only return changes made before this time (inclusive).
- page_size¶
Optional. The maximum number of ChangeHistoryEvent items to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
- Type
- class google.analytics.admin_v1beta.types.SearchChangeHistoryEventsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for SearchAccounts RPC.
- change_history_events¶
Results that were accessible to the caller.
- Type
MutableSequence[google.analytics.admin_v1beta.types.ChangeHistoryEvent]
- class google.analytics.admin_v1beta.types.ServiceLevel(value)[source]¶
Bases:
proto.enums.Enum
Various levels of service for Google Analytics.
- Values:
- SERVICE_LEVEL_UNSPECIFIED (0):
Service level not specified or invalid.
- GOOGLE_ANALYTICS_STANDARD (1):
The standard version of Google Analytics.
- GOOGLE_ANALYTICS_360 (2):
The paid, premium version of Google Analytics.
- class google.analytics.admin_v1beta.types.UpdateAccountRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateAccount RPC.
- account¶
Required. The account to update. The account’s
name
field is used to identify the account.
- update_mask¶
Required. The list of fields to be updated. Field names must be in snake case (for example, “field_to_update”). Omitted fields will not be updated. To replace the entire entity, use one path with the string “*” to match all fields.
- class google.analytics.admin_v1beta.types.UpdateConversionEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateConversionEvent RPC
- conversion_event¶
Required. The conversion event to update. The
name
field is used to identify the settings to be updated.
- update_mask¶
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.
- class google.analytics.admin_v1beta.types.UpdateCustomDimensionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateCustomDimension RPC.
- custom_dimension¶
The CustomDimension to update
- update_mask¶
Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string “*” to match all fields.
- class google.analytics.admin_v1beta.types.UpdateCustomMetricRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateCustomMetric RPC.
- custom_metric¶
The CustomMetric to update
- update_mask¶
Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string “*” to match all fields.
- class google.analytics.admin_v1beta.types.UpdateDataRetentionSettingsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateDataRetentionSettings RPC.
- data_retention_settings¶
Required. The settings to update. The
name
field is used to identify the settings to be updated.
- update_mask¶
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.
- class google.analytics.admin_v1beta.types.UpdateDataStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateDataStream RPC.
- data_stream¶
The DataStream to update
- update_mask¶
Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string “*” to match all fields.
- class google.analytics.admin_v1beta.types.UpdateGoogleAdsLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateGoogleAdsLink RPC
- google_ads_link¶
The GoogleAdsLink to update
- update_mask¶
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.
- class google.analytics.admin_v1beta.types.UpdateKeyEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateKeyEvent RPC
- key_event¶
Required. The Key Event to update. The
name
field is used to identify the settings to be updated.
- update_mask¶
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.
- class google.analytics.admin_v1beta.types.UpdateMeasurementProtocolSecretRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateMeasurementProtocolSecret RPC
- measurement_protocol_secret¶
Required. The measurement protocol secret to update.
- update_mask¶
Required. The list of fields to be updated. Omitted fields will not be updated.
- class google.analytics.admin_v1beta.types.UpdatePropertyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for UpdateProperty RPC.
- property¶
Required. The property to update. The property’s
name
field is used to identify the property to be updated.
- update_mask¶
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.