Types for Google Analytics Admin v1alpha API¶
- class google.analytics.admin_v1alpha.types.Account(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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.
- class google.analytics.admin_v1alpha.types.AccountSummary(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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
Sequence[google.analytics.admin_v1alpha.types.PropertySummary]
- class google.analytics.admin_v1alpha.types.AcknowledgeUserDataCollectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.AcknowledgeUserDataCollectionResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for AcknowledgeUserDataCollection RPC.
- class google.analytics.admin_v1alpha.types.ActionType(value)[source]¶
Bases:
proto.enums.EnumTypes of actions that may change a resource.
- ACTION_TYPE_UNSPECIFIED = 0¶
- CREATED = 1¶
- DELETED = 3¶
- UPDATED = 2¶
- class google.analytics.admin_v1alpha.types.ActorType(value)[source]¶
Bases:
proto.enums.EnumDifferent kinds of actors that can make changes to Google Analytics resources.
- ACTOR_TYPE_UNSPECIFIED = 0¶
- SUPPORT = 3¶
- SYSTEM = 2¶
- USER = 1¶
- class google.analytics.admin_v1alpha.types.ApproveDisplayVideo360AdvertiserLinkProposalRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
- class google.analytics.admin_v1alpha.types.ApproveDisplayVideo360AdvertiserLinkProposalResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
- display_video_360_advertiser_link¶
The DisplayVideo360AdvertiserLink created as a result of approving the proposal.
- class google.analytics.admin_v1alpha.types.ArchiveCustomDimensionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for ArchiveCustomDimension RPC.
- class google.analytics.admin_v1alpha.types.ArchiveCustomMetricRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for ArchiveCustomMetric RPC.
- class google.analytics.admin_v1alpha.types.AuditUserLink(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRead-only resource used to summarize a principal’s effective roles.
- class google.analytics.admin_v1alpha.types.AuditUserLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for AuditUserLinks RPC.
- page_size¶
The maximum number of user links to return. The service may return fewer than this value. If unspecified, at most 1000 user links will be returned. The maximum value is 5000; values above 5000 will be coerced to 5000.
- Type
- class google.analytics.admin_v1alpha.types.AuditUserLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for AuditUserLinks RPC.
- user_links¶
List of AuditUserLinks. These will be ordered stably, but in an arbitrary order.
- Type
Sequence[google.analytics.admin_v1alpha.types.AuditUserLink]
- class google.analytics.admin_v1alpha.types.BatchCreateUserLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for BatchCreateUserLinks RPC.
- parent¶
Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234
- Type
- notify_new_users¶
Optional. If set, then email the new users notifying them that they’ve been granted permissions to the resource. Regardless of whether this is set or not, notify_new_user field inside each individual request is ignored.
- Type
- requests¶
Required. The requests specifying the user links to create. A maximum of 1000 user links can be created in a batch.
- Type
Sequence[google.analytics.admin_v1alpha.types.CreateUserLinkRequest]
- class google.analytics.admin_v1alpha.types.BatchCreateUserLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for BatchCreateUserLinks RPC.
- user_links¶
The user links created.
- Type
- class google.analytics.admin_v1alpha.types.BatchDeleteUserLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for BatchDeleteUserLinks RPC.
- parent¶
Required. The account or property that all user links in the request are for. The parent of all values for user link names to delete must match this field. Example format: accounts/1234
- Type
- requests¶
Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch.
- Type
Sequence[google.analytics.admin_v1alpha.types.DeleteUserLinkRequest]
- class google.analytics.admin_v1alpha.types.BatchGetUserLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for BatchGetUserLinks RPC.
- parent¶
Required. The account or property that all user links in the request are for. The parent of all provided values for the ‘names’ field must match this field. Example format: accounts/1234
- Type
- class google.analytics.admin_v1alpha.types.BatchGetUserLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for BatchGetUserLinks RPC.
- user_links¶
The requested user links.
- Type
- class google.analytics.admin_v1alpha.types.BatchUpdateUserLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for BatchUpdateUserLinks RPC.
- parent¶
Required. The account or property that all user links in the request are for. The parent field in the UpdateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234
- Type
- requests¶
Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch.
- Type
Sequence[google.analytics.admin_v1alpha.types.UpdateUserLinkRequest]
- class google.analytics.admin_v1alpha.types.BatchUpdateUserLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for BatchUpdateUserLinks RPC.
- user_links¶
The user links updated.
- Type
- class google.analytics.admin_v1alpha.types.CancelDisplayVideo360AdvertiserLinkProposalRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CancelDisplayVideo360AdvertiserLinkProposal RPC.
- class google.analytics.admin_v1alpha.types.ChangeHistoryChange(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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.MessageA 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.
- google_signals_settings¶
A snapshot of a GoogleSignalsSettings resource in change history.
This field is a member of oneof
resource.
- display_video_360_advertiser_link¶
A snapshot of a DisplayVideo360AdvertiserLink resource in change history.
This field is a member of oneof
resource.
- display_video_360_advertiser_link_proposal¶
A snapshot of a DisplayVideo360AdvertiserLinkProposal 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.
- custom_dimension¶
A snapshot of a CustomDimension resource in change history.
This field is a member of oneof
resource.
- custom_metric¶
A snapshot of a CustomMetric 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_v1alpha.types.ChangeHistoryEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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
Sequence[google.analytics.admin_v1alpha.types.ChangeHistoryChange]
- class google.analytics.admin_v1alpha.types.ChangeHistoryResourceType(value)[source]¶
Bases:
proto.enums.EnumTypes of resources whose changes may be returned from change history.
- ACCOUNT = 1¶
- CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0¶
- CONVERSION_EVENT = 9¶
- CUSTOM_DIMENSION = 11¶
- CUSTOM_METRIC = 12¶
- DATA_RETENTION_SETTINGS = 13¶
- DATA_STREAM = 18¶
- DISPLAY_VIDEO_360_ADVERTISER_LINK = 14¶
- DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15¶
- FIREBASE_LINK = 6¶
- GOOGLE_ADS_LINK = 7¶
- GOOGLE_SIGNALS_SETTINGS = 8¶
- MEASUREMENT_PROTOCOL_SECRET = 10¶
- PROPERTY = 2¶
- class google.analytics.admin_v1alpha.types.ConversionEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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 via 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
- class google.analytics.admin_v1alpha.types.CreateConversionEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateConversionEvent RPC
- conversion_event¶
Required. The conversion event to create.
- class google.analytics.admin_v1alpha.types.CreateCustomDimensionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateCustomDimension RPC.
- custom_dimension¶
Required. The CustomDimension to create.
- class google.analytics.admin_v1alpha.types.CreateCustomMetricRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateCustomMetric RPC.
- custom_metric¶
Required. The CustomMetric to create.
- class google.analytics.admin_v1alpha.types.CreateDataStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateDataStream RPC.
- data_stream¶
Required. The DataStream to create.
- class google.analytics.admin_v1alpha.types.CreateDisplayVideo360AdvertiserLinkProposalRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateDisplayVideo360AdvertiserLinkProposal RPC.
- display_video_360_advertiser_link_proposal¶
Required. The DisplayVideo360AdvertiserLinkProposal to create.
- class google.analytics.admin_v1alpha.types.CreateDisplayVideo360AdvertiserLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateDisplayVideo360AdvertiserLink RPC.
- display_video_360_advertiser_link¶
Required. The DisplayVideo360AdvertiserLink to create.
- class google.analytics.admin_v1alpha.types.CreateFirebaseLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateFirebaseLink RPC
- firebase_link¶
Required. The Firebase link to create.
- class google.analytics.admin_v1alpha.types.CreateGoogleAdsLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateGoogleAdsLink RPC
- google_ads_link¶
Required. The GoogleAdsLink to create.
- class google.analytics.admin_v1alpha.types.CreateMeasurementProtocolSecretRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.CreatePropertyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateProperty RPC.
- property¶
Required. The property to create. Note: the supplied property must specify its parent.
- class google.analytics.admin_v1alpha.types.CreateUserLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for CreateUserLink RPC. Users can have multiple email addresses associated with their Google account, and one of these email addresses is the “primary” email address. Any of the email addresses associated with a Google account may be used for a new UserLink, but the returned UserLink will always contain the “primary” email address. As a result, the input and output email address for this request may differ.
- notify_new_user¶
Optional. If set, then email the new user notifying them that they’ve been granted permissions to the resource.
- Type
- user_link¶
Required. The user link to create.
- class google.analytics.admin_v1alpha.types.CustomDimension(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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.
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 google.analytics.admin_v1alpha.types.CustomMetric(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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.
- class MeasurementUnit(value)[source]¶
Bases:
proto.enums.EnumPossible types of representing the custom metric’s value. Currency representation may change in the future, requiring a breaking API change.
- CURRENCY = 2¶
- FEET = 3¶
- HOURS = 10¶
- KILOMETERS = 5¶
- MEASUREMENT_UNIT_UNSPECIFIED = 0¶
- METERS = 4¶
- MILES = 6¶
- MILLISECONDS = 7¶
- MINUTES = 9¶
- SECONDS = 8¶
- STANDARD = 1¶
- class MetricScope(value)[source]¶
Bases:
proto.enums.EnumThe scope of this metric.
- EVENT = 1¶
- METRIC_SCOPE_UNSPECIFIED = 0¶
- class google.analytics.admin_v1alpha.types.DataRetentionSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageSettings 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 google.analytics.admin_v1alpha.types.DataSharingSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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_v1alpha.types.DataStream(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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.MessageData 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.EnumThe type of the data stream.
- ANDROID_APP_DATA_STREAM = 2¶
- DATA_STREAM_TYPE_UNSPECIFIED = 0¶
- IOS_APP_DATA_STREAM = 3¶
- WEB_DATA_STREAM = 1¶
- class IosAppStreamData(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageData 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.MessageData specific to web streams.
- measurement_id¶
Output only. Analytics “Measurement ID”, without the “G-” prefix. Example: “G-1A2BCD345E” would just be “1A2BCD345E”.
- Type
- 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¶
Immutable. Domain name of the web app being measured, or empty. Example: “http://www.google.com”, “https://www.google.com”.
- Type
- class google.analytics.admin_v1alpha.types.DeleteAccountRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteAccount RPC.
- class google.analytics.admin_v1alpha.types.DeleteConversionEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteConversionEvent RPC
- class google.analytics.admin_v1alpha.types.DeleteDataStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteDataStream RPC.
- class google.analytics.admin_v1alpha.types.DeleteDisplayVideo360AdvertiserLinkProposalRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteDisplayVideo360AdvertiserLinkProposal RPC.
- class google.analytics.admin_v1alpha.types.DeleteDisplayVideo360AdvertiserLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteDisplayVideo360AdvertiserLink RPC.
- class google.analytics.admin_v1alpha.types.DeleteFirebaseLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteFirebaseLink RPC
- class google.analytics.admin_v1alpha.types.DeleteGoogleAdsLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteGoogleAdsLink RPC.
- class google.analytics.admin_v1alpha.types.DeleteMeasurementProtocolSecretRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteMeasurementProtocolSecret RPC
- class google.analytics.admin_v1alpha.types.DeletePropertyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteProperty RPC.
- class google.analytics.admin_v1alpha.types.DeleteUserLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for DeleteUserLink RPC.
- class google.analytics.admin_v1alpha.types.DisplayVideo360AdvertiserLink(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA link between a GA4 property and a Display & Video 360 advertiser.
- name¶
Output only. The resource name for this DisplayVideo360AdvertiserLink resource. Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} Note: linkId is not the Display & Video 360 Advertiser ID
- Type
- advertiser_display_name¶
Output only. The display name of the Display & Video 360 Advertiser.
- Type
- ads_personalization_enabled¶
Enables personalized advertising features with this integration. If this field is not set on create/update, it will be defaulted to true.
- campaign_data_sharing_enabled¶
Immutable. Enables the import of campaign data from Display & Video 360 into the GA4 property. After link creation, this can only be updated from the Display & Video 360 product. If this field is not set on create, it will be defaulted to true.
- cost_data_sharing_enabled¶
Immutable. Enables the import of cost data from Display & Video 360 into the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Display & Video 360 product. If this field is not set on create, it will be defaulted to true.
- class google.analytics.admin_v1alpha.types.DisplayVideo360AdvertiserLinkProposal(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA proposal for a link between a GA4 property and a Display & Video 360 advertiser.
A proposal is converted to a DisplayVideo360AdvertiserLink once approved. Google Analytics admins approve inbound proposals while Display & Video 360 admins approve outbound proposals.
- name¶
Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource. Format: properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} Note: proposalId is not the Display & Video 360 Advertiser ID
- Type
- link_proposal_status_details¶
Output only. The status information for this link proposal.
- advertiser_display_name¶
Output only. The display name of the Display & Video Advertiser. Only populated for proposals that originated from Display & Video 360.
- Type
- validation_email¶
Input only. On a proposal being sent to Display & Video 360, this field must be set to the email address of an admin on the target advertiser. This is used to verify that the Google Analytics admin is aware of at least one admin on the Display & Video 360 Advertiser. This does not restrict approval of the proposal to a single user. Any admin on the Display & Video 360 Advertiser may approve the proposal.
- Type
- ads_personalization_enabled¶
Immutable. Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.
- campaign_data_sharing_enabled¶
Immutable. Enables the import of campaign data from Display & Video 360. If this field is not set on create, it will be defaulted to true.
- cost_data_sharing_enabled¶
Immutable. Enables the import of cost data from Display & Video 360. This can only be enabled if campaign_data_sharing_enabled is enabled. If this field is not set on create, it will be defaulted to true.
- class google.analytics.admin_v1alpha.types.FirebaseLink(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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_v1alpha.types.GetAccountRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetAccount RPC.
- class google.analytics.admin_v1alpha.types.GetConversionEventRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetConversionEvent RPC
- class google.analytics.admin_v1alpha.types.GetCustomDimensionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetCustomDimension RPC.
- class google.analytics.admin_v1alpha.types.GetCustomMetricRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetCustomMetric RPC.
- class google.analytics.admin_v1alpha.types.GetDataRetentionSettingsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetDataRetentionSettings RPC.
- class google.analytics.admin_v1alpha.types.GetDataSharingSettingsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetDataSharingSettings RPC.
- class google.analytics.admin_v1alpha.types.GetDataStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetDataStream RPC.
- class google.analytics.admin_v1alpha.types.GetDisplayVideo360AdvertiserLinkProposalRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetDisplayVideo360AdvertiserLinkProposal RPC.
- class google.analytics.admin_v1alpha.types.GetDisplayVideo360AdvertiserLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetDisplayVideo360AdvertiserLink RPC.
- class google.analytics.admin_v1alpha.types.GetGlobalSiteTagRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetGlobalSiteTag RPC.
- class google.analytics.admin_v1alpha.types.GetGoogleSignalsSettingsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetGoogleSignalsSettings RPC
- class google.analytics.admin_v1alpha.types.GetMeasurementProtocolSecretRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetMeasurementProtocolSecret RPC.
- class google.analytics.admin_v1alpha.types.GetPropertyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetProperty RPC.
- class google.analytics.admin_v1alpha.types.GetUserLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for GetUserLink RPC.
- class google.analytics.admin_v1alpha.types.GlobalSiteTag(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRead-only resource with the tag for sending data from a website to a DataStream. Only present for web DataStream resources.
- name¶
Output only. Resource name for this GlobalSiteTag resource. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: “properties/123/dataStreams/456/globalSiteTag”.
- Type
- class google.analytics.admin_v1alpha.types.GoogleAdsLink(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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_v1alpha.types.GoogleSignalsConsent(value)[source]¶
Bases:
proto.enums.EnumConsent field of the Google Signals settings (i.e., whether the user has consented to the Google Signals terms of service.)
- GOOGLE_SIGNALS_CONSENT_CONSENTED = 2¶
- GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1¶
- GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0¶
- class google.analytics.admin_v1alpha.types.GoogleSignalsSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageSettings values for Google Signals. This is a singleton resource.
- name¶
Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: “properties/1000/googleSignalsSettings”.
- Type
- state¶
Status of this setting.
- consent¶
Output only. Terms of Service acceptance.
- class google.analytics.admin_v1alpha.types.GoogleSignalsState(value)[source]¶
Bases:
proto.enums.EnumStatus of the Google Signals settings (i.e., whether this feature has been enabled for the property).
- GOOGLE_SIGNALS_DISABLED = 2¶
- GOOGLE_SIGNALS_ENABLED = 1¶
- GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0¶
- class google.analytics.admin_v1alpha.types.IndustryCategory(value)[source]¶
Bases:
proto.enums.EnumThe category selected for this property, used for industry benchmarking.
- ARTS_AND_ENTERTAINMENT = 8¶
- AUTOMOTIVE = 1¶
- BEAUTY_AND_FITNESS = 9¶
- BOOKS_AND_LITERATURE = 10¶
- BUSINESS_AND_INDUSTRIAL_MARKETS = 2¶
- FINANCE = 3¶
- FOOD_AND_DRINK = 11¶
- GAMES = 12¶
- HEALTHCARE = 4¶
- HOBBIES_AND_LEISURE = 13¶
- HOME_AND_GARDEN = 14¶
- INDUSTRY_CATEGORY_UNSPECIFIED = 0¶
- INTERNET_AND_TELECOM = 15¶
- JOBS_AND_EDUCATION = 25¶
- LAW_AND_GOVERNMENT = 16¶
- NEWS = 17¶
- ONLINE_COMMUNITIES = 18¶
- OTHER = 7¶
- PEOPLE_AND_SOCIETY = 19¶
- PETS_AND_ANIMALS = 20¶
- REAL_ESTATE = 21¶
- REFERENCE = 22¶
- SCIENCE = 23¶
- SHOPPING = 26¶
- SPORTS = 24¶
- TECHNOLOGY = 5¶
- TRAVEL = 6¶
- class google.analytics.admin_v1alpha.types.LinkProposalInitiatingProduct(value)[source]¶
Bases:
proto.enums.EnumAn indication of which product the user initiated a link proposal from.
- GOOGLE_ANALYTICS = 1¶
- LINKED_PRODUCT = 2¶
- LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0¶
- class google.analytics.admin_v1alpha.types.LinkProposalState(value)[source]¶
Bases:
proto.enums.EnumThe state of a link proposal resource.
- AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1¶
- AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2¶
- DECLINED = 4¶
- EXPIRED = 5¶
- LINK_PROPOSAL_STATE_UNSPECIFIED = 0¶
- OBSOLETE = 6¶
- WITHDRAWN = 3¶
- class google.analytics.admin_v1alpha.types.LinkProposalStatusDetails(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageStatus information for a link proposal.
- link_proposal_initiating_product¶
Output only. The source of this proposal.
- link_proposal_state¶
Output only. The state of this proposal.
- class google.analytics.admin_v1alpha.types.ListAccountSummariesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.ListAccountSummariesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListAccountSummaries RPC.
- account_summaries¶
Account summaries of all accounts the caller has access to.
- Type
Sequence[google.analytics.admin_v1alpha.types.AccountSummary]
- class google.analytics.admin_v1alpha.types.ListAccountsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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
ListAccountscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListAccountsmust match the call that provided the page token.- Type
- class google.analytics.admin_v1alpha.types.ListAccountsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for ListAccounts RPC.
- accounts¶
Results that were accessible to the caller.
- Type
- class google.analytics.admin_v1alpha.types.ListConversionEventsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.ListConversionEventsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListConversionEvents RPC.
- conversion_events¶
The requested conversion events
- Type
Sequence[google.analytics.admin_v1alpha.types.ConversionEvent]
- class google.analytics.admin_v1alpha.types.ListCustomDimensionsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.ListCustomDimensionsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListCustomDimensions RPC.
- custom_dimensions¶
List of CustomDimensions.
- Type
Sequence[google.analytics.admin_v1alpha.types.CustomDimension]
- class google.analytics.admin_v1alpha.types.ListCustomMetricsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.ListCustomMetricsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListCustomMetrics RPC.
- custom_metrics¶
List of CustomMetrics.
- Type
- class google.analytics.admin_v1alpha.types.ListDataStreamsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.ListDataStreamsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListDataStreams RPC.
- data_streams¶
List of DataStreams.
- Type
- class google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for ListDisplayVideo360AdvertiserLinkProposals 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_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListDisplayVideo360AdvertiserLinkProposals RPC.
- display_video_360_advertiser_link_proposals¶
List of DisplayVideo360AdvertiserLinkProposals.
- class google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for ListDisplayVideo360AdvertiserLinks 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_v1alpha.types.ListDisplayVideo360AdvertiserLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListDisplayVideo360AdvertiserLinks RPC.
- display_video_360_advertiser_links¶
List of DisplayVideo360AdvertiserLinks.
- class google.analytics.admin_v1alpha.types.ListFirebaseLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.ListFirebaseLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListFirebaseLinks RPC
- firebase_links¶
List of FirebaseLinks. This will have at most one value.
- Type
- class google.analytics.admin_v1alpha.types.ListGoogleAdsLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.ListGoogleAdsLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListGoogleAdsLinks RPC.
- google_ads_links¶
List of GoogleAdsLinks.
- Type
Sequence[google.analytics.admin_v1alpha.types.GoogleAdsLink]
- class google.analytics.admin_v1alpha.types.ListMeasurementProtocolSecretsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.ListMeasurementProtocolSecretsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListMeasurementProtocolSecret RPC
- measurement_protocol_secrets¶
A list of secrets for the parent stream specified in the request.
- class google.analytics.admin_v1alpha.types.ListPropertiesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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
ListPropertiescall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListPropertiesmust match the call that provided the page token.- Type
- class google.analytics.admin_v1alpha.types.ListPropertiesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListProperties RPC.
- properties¶
Results that matched the filter criteria and were accessible to the caller.
- Type
- class google.analytics.admin_v1alpha.types.ListUserLinksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for ListUserLinks RPC.
- page_size¶
The maximum number of user links to return. The service may return fewer than this value. If unspecified, at most 200 user links will be returned. The maximum value is 500; values above 500 will be coerced to 500.
- Type
- class google.analytics.admin_v1alpha.types.ListUserLinksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ListUserLinks RPC.
- user_links¶
List of UserLinks. These will be ordered stably, but in an arbitrary order.
- Type
- class google.analytics.admin_v1alpha.types.MeasurementProtocolSecret(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
- Type
- class google.analytics.admin_v1alpha.types.Property(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA resource message representing a Google Analytics GA4 property.
- name¶
Output only. Resource name of this property. Format: properties/{property_id} Example: “properties/1000”.
- Type
- 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} Example: “accounts/100”.
- 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_v1alpha.types.PropertySummary(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA 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
- class google.analytics.admin_v1alpha.types.ProvisionAccountTicketRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for ProvisionAccountTicket RPC.
- account¶
The account to create.
- class google.analytics.admin_v1alpha.types.ProvisionAccountTicketResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for ProvisionAccountTicket RPC.
- class google.analytics.admin_v1alpha.types.SearchChangeHistoryEventsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for SearchChangeHistoryEvents RPC.
- property¶
Optional. Resource name for a child property. If set, only return changes made to this property or its child resources.
- Type
- resource_type¶
Optional. If set, only return changes if they are for a resource that matches at least one of these types.
- action¶
Optional. If set, only return changes that match one or more of these types of actions.
- Type
- actor_email¶
Optional. If set, only return changes if they are made by a user in this list.
- Type
Sequence[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_v1alpha.types.SearchChangeHistoryEventsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageResponse message for SearchAccounts RPC.
- change_history_events¶
Results that were accessible to the caller.
- Type
Sequence[google.analytics.admin_v1alpha.types.ChangeHistoryEvent]
- class google.analytics.admin_v1alpha.types.ServiceLevel(value)[source]¶
Bases:
proto.enums.EnumVarious levels of service for Google Analytics.
- GOOGLE_ANALYTICS_360 = 2¶
- GOOGLE_ANALYTICS_STANDARD = 1¶
- SERVICE_LEVEL_UNSPECIFIED = 0¶
- class google.analytics.admin_v1alpha.types.UpdateAccountRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for UpdateAccount RPC.
- account¶
Required. The account to update. The account’s
namefield is used to identify the account.
- 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_v1alpha.types.UpdateCustomDimensionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.UpdateCustomMetricRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.UpdateDataRetentionSettingsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for UpdateDataRetentionSettings RPC.
- data_retention_settings¶
Required. The settings to update. The
namefield 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_v1alpha.types.UpdateDataStreamRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.UpdateDisplayVideo360AdvertiserLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for UpdateDisplayVideo360AdvertiserLink RPC.
- display_video_360_advertiser_link¶
The DisplayVideo360AdvertiserLink 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_v1alpha.types.UpdateGoogleAdsLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest 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_v1alpha.types.UpdateGoogleSignalsSettingsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for UpdateGoogleSignalsSettings RPC
- google_signals_settings¶
Required. The settings to update. The
namefield 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_v1alpha.types.UpdateMeasurementProtocolSecretRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for UpdateMeasurementProtocolSecret RPC
- measurement_protocol_secret¶
Required. The measurement protocol secret to update.
- update_mask¶
The list of fields to be updated. Omitted fields will not be updated.
- class google.analytics.admin_v1alpha.types.UpdatePropertyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for UpdateProperty RPC.
- property¶
Required. The property to update. The property’s
namefield 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.
- class google.analytics.admin_v1alpha.types.UpdateUserLinkRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageRequest message for UpdateUserLink RPC.
- user_link¶
Required. The user link to update.
- class google.analytics.admin_v1alpha.types.UserLink(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA resource message representing a user’s permissions on an Account or Property resource.
- direct_roles¶
Roles directly assigned to this user for this account or property.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
Excludes roles that are inherited from a higher-level entity, group, or organization admin role.
A UserLink that is updated to have an empty list of direct_roles will be deleted.
- Type
Sequence[str]