pub struct AnalyticsAdminServiceClient<T> { /* private fields */ }
Expand description

Service Interface for the Analytics Admin API (GA4).

Implementations§

source§

impl<T> AnalyticsAdminServiceClient<T>
where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> AnalyticsAdminServiceClient<InterceptedService<T, F>>
where F: Interceptor, T::ResponseBody: Default, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,

source

pub fn send_compressed(self, encoding: CompressionEncoding) -> Self

Compress requests with the given encoding.

This requires the server to support it otherwise it might respond with an error.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

pub async fn get_account( &mut self, request: impl IntoRequest<GetAccountRequest>, ) -> Result<Response<Account>, Status>

Lookup for a single Account.

source

pub async fn list_accounts( &mut self, request: impl IntoRequest<ListAccountsRequest>, ) -> Result<Response<ListAccountsResponse>, Status>

Returns all accounts accessible by the caller.

Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: “trashed”) accounts are excluded by default. Returns an empty list if no relevant accounts are found.

source

pub async fn delete_account( &mut self, request: impl IntoRequest<DeleteAccountRequest>, ) -> Result<Response<()>, Status>

Marks target Account as soft-deleted (ie: “trashed”) and returns it.

This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI.

If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772

Returns an error if the target is not found.

source

pub async fn update_account( &mut self, request: impl IntoRequest<UpdateAccountRequest>, ) -> Result<Response<Account>, Status>

Updates an account.

source

pub async fn provision_account_ticket( &mut self, request: impl IntoRequest<ProvisionAccountTicketRequest>, ) -> Result<Response<ProvisionAccountTicketResponse>, Status>

Requests a ticket for creating an account.

source

pub async fn list_account_summaries( &mut self, request: impl IntoRequest<ListAccountSummariesRequest>, ) -> Result<Response<ListAccountSummariesResponse>, Status>

Returns summaries of all accounts accessible by the caller.

source

pub async fn get_property( &mut self, request: impl IntoRequest<GetPropertyRequest>, ) -> Result<Response<Property>, Status>

Lookup for a single “GA4” Property.

source

pub async fn list_properties( &mut self, request: impl IntoRequest<ListPropertiesRequest>, ) -> Result<Response<ListPropertiesResponse>, Status>

Returns child Properties under the specified parent Account.

Only “GA4” properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: “trashed”) properties are excluded by default. Returns an empty list if no relevant properties are found.

source

pub async fn create_property( &mut self, request: impl IntoRequest<CreatePropertyRequest>, ) -> Result<Response<Property>, Status>

Creates an “GA4” property with the specified location and attributes.

source

pub async fn delete_property( &mut self, request: impl IntoRequest<DeletePropertyRequest>, ) -> Result<Response<Property>, Status>

Marks target Property as soft-deleted (ie: “trashed”) and returns it.

This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI.

If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772

Returns an error if the target is not found, or is not a GA4 Property.

source

pub async fn update_property( &mut self, request: impl IntoRequest<UpdatePropertyRequest>, ) -> Result<Response<Property>, Status>

Updates a property.

Creates a FirebaseLink.

Properties can have at most one FirebaseLink.

Deletes a FirebaseLink on a property

Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.

source

pub async fn get_global_site_tag( &mut self, request: impl IntoRequest<GetGlobalSiteTagRequest>, ) -> Result<Response<GlobalSiteTag>, Status>

Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.

Creates a GoogleAdsLink.

Updates a GoogleAdsLink on a property

Deletes a GoogleAdsLink on a property

Lists GoogleAdsLinks on a property.

source

pub async fn get_data_sharing_settings( &mut self, request: impl IntoRequest<GetDataSharingSettingsRequest>, ) -> Result<Response<DataSharingSettings>, Status>

Get data sharing settings on an account. Data sharing settings are singletons.

source

pub async fn get_measurement_protocol_secret( &mut self, request: impl IntoRequest<GetMeasurementProtocolSecretRequest>, ) -> Result<Response<MeasurementProtocolSecret>, Status>

Lookup for a single “GA4” MeasurementProtocolSecret.

source

pub async fn list_measurement_protocol_secrets( &mut self, request: impl IntoRequest<ListMeasurementProtocolSecretsRequest>, ) -> Result<Response<ListMeasurementProtocolSecretsResponse>, Status>

Returns child MeasurementProtocolSecrets under the specified parent Property.

source

pub async fn create_measurement_protocol_secret( &mut self, request: impl IntoRequest<CreateMeasurementProtocolSecretRequest>, ) -> Result<Response<MeasurementProtocolSecret>, Status>

Creates a measurement protocol secret.

source

pub async fn delete_measurement_protocol_secret( &mut self, request: impl IntoRequest<DeleteMeasurementProtocolSecretRequest>, ) -> Result<Response<()>, Status>

Deletes target MeasurementProtocolSecret.

source

pub async fn update_measurement_protocol_secret( &mut self, request: impl IntoRequest<UpdateMeasurementProtocolSecretRequest>, ) -> Result<Response<MeasurementProtocolSecret>, Status>

Updates a measurement protocol secret.

source

pub async fn acknowledge_user_data_collection( &mut self, request: impl IntoRequest<AcknowledgeUserDataCollectionRequest>, ) -> Result<Response<AcknowledgeUserDataCollectionResponse>, Status>

Acknowledges the terms of user data collection for the specified property.

This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.

source

pub async fn get_sk_ad_network_conversion_value_schema( &mut self, request: impl IntoRequest<GetSkAdNetworkConversionValueSchemaRequest>, ) -> Result<Response<SkAdNetworkConversionValueSchema>, Status>

Looks up a single SKAdNetworkConversionValueSchema.

source

pub async fn create_sk_ad_network_conversion_value_schema( &mut self, request: impl IntoRequest<CreateSkAdNetworkConversionValueSchemaRequest>, ) -> Result<Response<SkAdNetworkConversionValueSchema>, Status>

Creates a SKAdNetworkConversionValueSchema.

source

pub async fn delete_sk_ad_network_conversion_value_schema( &mut self, request: impl IntoRequest<DeleteSkAdNetworkConversionValueSchemaRequest>, ) -> Result<Response<()>, Status>

Deletes target SKAdNetworkConversionValueSchema.

source

pub async fn update_sk_ad_network_conversion_value_schema( &mut self, request: impl IntoRequest<UpdateSkAdNetworkConversionValueSchemaRequest>, ) -> Result<Response<SkAdNetworkConversionValueSchema>, Status>

Updates a SKAdNetworkConversionValueSchema.

source

pub async fn list_sk_ad_network_conversion_value_schemas( &mut self, request: impl IntoRequest<ListSkAdNetworkConversionValueSchemasRequest>, ) -> Result<Response<ListSkAdNetworkConversionValueSchemasResponse>, Status>

Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one SKAdNetworkConversionValueSchema.

source

pub async fn search_change_history_events( &mut self, request: impl IntoRequest<SearchChangeHistoryEventsRequest>, ) -> Result<Response<SearchChangeHistoryEventsResponse>, Status>

Searches through all changes to an account or its children given the specified set of filters.

source

pub async fn get_google_signals_settings( &mut self, request: impl IntoRequest<GetGoogleSignalsSettingsRequest>, ) -> Result<Response<GoogleSignalsSettings>, Status>

Lookup for Google Signals settings for a property.

source

pub async fn update_google_signals_settings( &mut self, request: impl IntoRequest<UpdateGoogleSignalsSettingsRequest>, ) -> Result<Response<GoogleSignalsSettings>, Status>

Updates Google Signals settings for a property.

source

pub async fn create_conversion_event( &mut self, request: impl IntoRequest<CreateConversionEventRequest>, ) -> Result<Response<ConversionEvent>, Status>

Deprecated: Use CreateKeyEvent instead. Creates a conversion event with the specified attributes.

source

pub async fn update_conversion_event( &mut self, request: impl IntoRequest<UpdateConversionEventRequest>, ) -> Result<Response<ConversionEvent>, Status>

Deprecated: Use UpdateKeyEvent instead. Updates a conversion event with the specified attributes.

source

pub async fn get_conversion_event( &mut self, request: impl IntoRequest<GetConversionEventRequest>, ) -> Result<Response<ConversionEvent>, Status>

Deprecated: Use GetKeyEvent instead. Retrieve a single conversion event.

source

pub async fn delete_conversion_event( &mut self, request: impl IntoRequest<DeleteConversionEventRequest>, ) -> Result<Response<()>, Status>

Deprecated: Use DeleteKeyEvent instead. Deletes a conversion event in a property.

source

pub async fn list_conversion_events( &mut self, request: impl IntoRequest<ListConversionEventsRequest>, ) -> Result<Response<ListConversionEventsResponse>, Status>

Deprecated: Use ListKeyEvents instead. Returns a list of conversion events in the specified parent property.

Returns an empty list if no conversion events are found.

source

pub async fn create_key_event( &mut self, request: impl IntoRequest<CreateKeyEventRequest>, ) -> Result<Response<KeyEvent>, Status>

Creates a Key Event.

source

pub async fn update_key_event( &mut self, request: impl IntoRequest<UpdateKeyEventRequest>, ) -> Result<Response<KeyEvent>, Status>

Updates a Key Event.

source

pub async fn get_key_event( &mut self, request: impl IntoRequest<GetKeyEventRequest>, ) -> Result<Response<KeyEvent>, Status>

Retrieve a single Key Event.

source

pub async fn delete_key_event( &mut self, request: impl IntoRequest<DeleteKeyEventRequest>, ) -> Result<Response<()>, Status>

Deletes a Key Event.

source

pub async fn list_key_events( &mut self, request: impl IntoRequest<ListKeyEventsRequest>, ) -> Result<Response<ListKeyEventsResponse>, Status>

Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found.

Look up a single DisplayVideo360AdvertiserLink

Lists all DisplayVideo360AdvertiserLinks on a property.

Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360 advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.

Deletes a DisplayVideo360AdvertiserLink on a property.

Updates a DisplayVideo360AdvertiserLink on a property.

Lookup for a single DisplayVideo360AdvertiserLinkProposal.

Lists DisplayVideo360AdvertiserLinkProposals on a property.

Creates a DisplayVideo360AdvertiserLinkProposal.

Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on cancelled proposals.

Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal will be deleted and a new DisplayVideo360AdvertiserLink will be created.

Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either:

  • Declining a proposal initiated from Display & Video 360
  • Withdrawing a proposal initiated from Google Analytics After being cancelled, a proposal will eventually be deleted automatically.
source

pub async fn create_custom_dimension( &mut self, request: impl IntoRequest<CreateCustomDimensionRequest>, ) -> Result<Response<CustomDimension>, Status>

Creates a CustomDimension.

source

pub async fn update_custom_dimension( &mut self, request: impl IntoRequest<UpdateCustomDimensionRequest>, ) -> Result<Response<CustomDimension>, Status>

Updates a CustomDimension on a property.

source

pub async fn list_custom_dimensions( &mut self, request: impl IntoRequest<ListCustomDimensionsRequest>, ) -> Result<Response<ListCustomDimensionsResponse>, Status>

Lists CustomDimensions on a property.

source

pub async fn archive_custom_dimension( &mut self, request: impl IntoRequest<ArchiveCustomDimensionRequest>, ) -> Result<Response<()>, Status>

Archives a CustomDimension on a property.

source

pub async fn get_custom_dimension( &mut self, request: impl IntoRequest<GetCustomDimensionRequest>, ) -> Result<Response<CustomDimension>, Status>

Lookup for a single CustomDimension.

source

pub async fn create_custom_metric( &mut self, request: impl IntoRequest<CreateCustomMetricRequest>, ) -> Result<Response<CustomMetric>, Status>

Creates a CustomMetric.

source

pub async fn update_custom_metric( &mut self, request: impl IntoRequest<UpdateCustomMetricRequest>, ) -> Result<Response<CustomMetric>, Status>

Updates a CustomMetric on a property.

source

pub async fn list_custom_metrics( &mut self, request: impl IntoRequest<ListCustomMetricsRequest>, ) -> Result<Response<ListCustomMetricsResponse>, Status>

Lists CustomMetrics on a property.

source

pub async fn archive_custom_metric( &mut self, request: impl IntoRequest<ArchiveCustomMetricRequest>, ) -> Result<Response<()>, Status>

Archives a CustomMetric on a property.

source

pub async fn get_custom_metric( &mut self, request: impl IntoRequest<GetCustomMetricRequest>, ) -> Result<Response<CustomMetric>, Status>

Lookup for a single CustomMetric.

source

pub async fn get_data_retention_settings( &mut self, request: impl IntoRequest<GetDataRetentionSettingsRequest>, ) -> Result<Response<DataRetentionSettings>, Status>

Returns the singleton data retention settings for this property.

source

pub async fn update_data_retention_settings( &mut self, request: impl IntoRequest<UpdateDataRetentionSettingsRequest>, ) -> Result<Response<DataRetentionSettings>, Status>

Updates the singleton data retention settings for this property.

source

pub async fn create_data_stream( &mut self, request: impl IntoRequest<CreateDataStreamRequest>, ) -> Result<Response<DataStream>, Status>

Creates a DataStream.

source

pub async fn delete_data_stream( &mut self, request: impl IntoRequest<DeleteDataStreamRequest>, ) -> Result<Response<()>, Status>

Deletes a DataStream on a property.

source

pub async fn update_data_stream( &mut self, request: impl IntoRequest<UpdateDataStreamRequest>, ) -> Result<Response<DataStream>, Status>

Updates a DataStream on a property.

source

pub async fn list_data_streams( &mut self, request: impl IntoRequest<ListDataStreamsRequest>, ) -> Result<Response<ListDataStreamsResponse>, Status>

Lists DataStreams on a property.

source

pub async fn get_data_stream( &mut self, request: impl IntoRequest<GetDataStreamRequest>, ) -> Result<Response<DataStream>, Status>

Lookup for a single DataStream.

source

pub async fn get_audience( &mut self, request: impl IntoRequest<GetAudienceRequest>, ) -> Result<Response<Audience>, Status>

Lookup for a single Audience. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.

source

pub async fn list_audiences( &mut self, request: impl IntoRequest<ListAudiencesRequest>, ) -> Result<Response<ListAudiencesResponse>, Status>

Lists Audiences on a property. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.

source

pub async fn create_audience( &mut self, request: impl IntoRequest<CreateAudienceRequest>, ) -> Result<Response<Audience>, Status>

Creates an Audience.

source

pub async fn update_audience( &mut self, request: impl IntoRequest<UpdateAudienceRequest>, ) -> Result<Response<Audience>, Status>

Updates an Audience on a property.

source

pub async fn archive_audience( &mut self, request: impl IntoRequest<ArchiveAudienceRequest>, ) -> Result<Response<()>, Status>

Archives an Audience on a property.

Look up a single SearchAds360Link

Lists all SearchAds360Links on a property.

Creates a SearchAds360Link.

Deletes a SearchAds360Link on a property.

Updates a SearchAds360Link on a property.

source

pub async fn get_attribution_settings( &mut self, request: impl IntoRequest<GetAttributionSettingsRequest>, ) -> Result<Response<AttributionSettings>, Status>

Lookup for a AttributionSettings singleton.

source

pub async fn update_attribution_settings( &mut self, request: impl IntoRequest<UpdateAttributionSettingsRequest>, ) -> Result<Response<AttributionSettings>, Status>

Updates attribution settings on a property.

source

pub async fn run_access_report( &mut self, request: impl IntoRequest<RunAccessReportRequest>, ) -> Result<Response<RunAccessReportResponse>, Status>

Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years.

Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren’t related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators.

These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don’t include property configuration changes like adding a stream or changing a property’s time zone. For configuration change history, see searchChangeHistoryEvents.

source

pub async fn create_access_binding( &mut self, request: impl IntoRequest<CreateAccessBindingRequest>, ) -> Result<Response<AccessBinding>, Status>

Creates an access binding on an account or property.

source

pub async fn get_access_binding( &mut self, request: impl IntoRequest<GetAccessBindingRequest>, ) -> Result<Response<AccessBinding>, Status>

Gets information about an access binding.

source

pub async fn update_access_binding( &mut self, request: impl IntoRequest<UpdateAccessBindingRequest>, ) -> Result<Response<AccessBinding>, Status>

Updates an access binding on an account or property.

source

pub async fn delete_access_binding( &mut self, request: impl IntoRequest<DeleteAccessBindingRequest>, ) -> Result<Response<()>, Status>

Deletes an access binding on an account or property.

source

pub async fn list_access_bindings( &mut self, request: impl IntoRequest<ListAccessBindingsRequest>, ) -> Result<Response<ListAccessBindingsResponse>, Status>

Lists all access bindings on an account or property.

source

pub async fn batch_create_access_bindings( &mut self, request: impl IntoRequest<BatchCreateAccessBindingsRequest>, ) -> Result<Response<BatchCreateAccessBindingsResponse>, Status>

Creates information about multiple access bindings to an account or property.

This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.

source

pub async fn batch_get_access_bindings( &mut self, request: impl IntoRequest<BatchGetAccessBindingsRequest>, ) -> Result<Response<BatchGetAccessBindingsResponse>, Status>

Gets information about multiple access bindings to an account or property.

source

pub async fn batch_update_access_bindings( &mut self, request: impl IntoRequest<BatchUpdateAccessBindingsRequest>, ) -> Result<Response<BatchUpdateAccessBindingsResponse>, Status>

Updates information about multiple access bindings to an account or property.

source

pub async fn batch_delete_access_bindings( &mut self, request: impl IntoRequest<BatchDeleteAccessBindingsRequest>, ) -> Result<Response<()>, Status>

Deletes information about multiple users’ links to an account or property.

source

pub async fn get_expanded_data_set( &mut self, request: impl IntoRequest<GetExpandedDataSetRequest>, ) -> Result<Response<ExpandedDataSet>, Status>

Lookup for a single ExpandedDataSet.

source

pub async fn list_expanded_data_sets( &mut self, request: impl IntoRequest<ListExpandedDataSetsRequest>, ) -> Result<Response<ListExpandedDataSetsResponse>, Status>

Lists ExpandedDataSets on a property.

source

pub async fn create_expanded_data_set( &mut self, request: impl IntoRequest<CreateExpandedDataSetRequest>, ) -> Result<Response<ExpandedDataSet>, Status>

Creates a ExpandedDataSet.

source

pub async fn update_expanded_data_set( &mut self, request: impl IntoRequest<UpdateExpandedDataSetRequest>, ) -> Result<Response<ExpandedDataSet>, Status>

Updates a ExpandedDataSet on a property.

source

pub async fn delete_expanded_data_set( &mut self, request: impl IntoRequest<DeleteExpandedDataSetRequest>, ) -> Result<Response<()>, Status>

Deletes a ExpandedDataSet on a property.

source

pub async fn get_channel_group( &mut self, request: impl IntoRequest<GetChannelGroupRequest>, ) -> Result<Response<ChannelGroup>, Status>

Lookup for a single ChannelGroup.

source

pub async fn list_channel_groups( &mut self, request: impl IntoRequest<ListChannelGroupsRequest>, ) -> Result<Response<ListChannelGroupsResponse>, Status>

Lists ChannelGroups on a property.

source

pub async fn create_channel_group( &mut self, request: impl IntoRequest<CreateChannelGroupRequest>, ) -> Result<Response<ChannelGroup>, Status>

Creates a ChannelGroup.

source

pub async fn update_channel_group( &mut self, request: impl IntoRequest<UpdateChannelGroupRequest>, ) -> Result<Response<ChannelGroup>, Status>

Updates a ChannelGroup.

source

pub async fn delete_channel_group( &mut self, request: impl IntoRequest<DeleteChannelGroupRequest>, ) -> Result<Response<()>, Status>

Deletes a ChannelGroup on a property.

source

pub async fn set_automated_ga4_configuration_opt_out( &mut self, request: impl IntoRequest<SetAutomatedGa4ConfigurationOptOutRequest>, ) -> Result<Response<SetAutomatedGa4ConfigurationOptOutResponse>, Status>

Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.

source

pub async fn fetch_automated_ga4_configuration_opt_out( &mut self, request: impl IntoRequest<FetchAutomatedGa4ConfigurationOptOutRequest>, ) -> Result<Response<FetchAutomatedGa4ConfigurationOptOutResponse>, Status>

Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.

Creates a BigQueryLink.

Lookup for a single BigQuery Link.

Lists BigQuery Links on a property.

Deletes a BigQueryLink on a property.

Updates a BigQueryLink.

source

pub async fn get_enhanced_measurement_settings( &mut self, request: impl IntoRequest<GetEnhancedMeasurementSettingsRequest>, ) -> Result<Response<EnhancedMeasurementSettings>, Status>

Returns the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.

source

pub async fn update_enhanced_measurement_settings( &mut self, request: impl IntoRequest<UpdateEnhancedMeasurementSettingsRequest>, ) -> Result<Response<EnhancedMeasurementSettings>, Status>

Updates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.

source

pub async fn create_connected_site_tag( &mut self, request: impl IntoRequest<CreateConnectedSiteTagRequest>, ) -> Result<Response<CreateConnectedSiteTagResponse>, Status>

Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 connected site tags per property. Note: This API cannot be used on GA4 properties.

source

pub async fn delete_connected_site_tag( &mut self, request: impl IntoRequest<DeleteConnectedSiteTagRequest>, ) -> Result<Response<()>, Status>

Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on GA4 properties.

source

pub async fn list_connected_site_tags( &mut self, request: impl IntoRequest<ListConnectedSiteTagsRequest>, ) -> Result<Response<ListConnectedSiteTagsResponse>, Status>

Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected site tags will be returned. Note: this has no effect on GA4 property.

source

pub async fn fetch_connected_ga4_property( &mut self, request: impl IntoRequest<FetchConnectedGa4PropertyRequest>, ) -> Result<Response<FetchConnectedGa4PropertyResponse>, Status>

Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be used with GA4 properties.

Looks up a single AdSenseLink.

Creates an AdSenseLink.

Deletes an AdSenseLink.

Lists AdSenseLinks on a property.

source

pub async fn get_event_create_rule( &mut self, request: impl IntoRequest<GetEventCreateRuleRequest>, ) -> Result<Response<EventCreateRule>, Status>

Lookup for a single EventCreateRule.

source

pub async fn list_event_create_rules( &mut self, request: impl IntoRequest<ListEventCreateRulesRequest>, ) -> Result<Response<ListEventCreateRulesResponse>, Status>

Lists EventCreateRules on a web data stream.

source

pub async fn create_event_create_rule( &mut self, request: impl IntoRequest<CreateEventCreateRuleRequest>, ) -> Result<Response<EventCreateRule>, Status>

Creates an EventCreateRule.

source

pub async fn update_event_create_rule( &mut self, request: impl IntoRequest<UpdateEventCreateRuleRequest>, ) -> Result<Response<EventCreateRule>, Status>

Updates an EventCreateRule.

source

pub async fn delete_event_create_rule( &mut self, request: impl IntoRequest<DeleteEventCreateRuleRequest>, ) -> Result<Response<()>, Status>

Deletes an EventCreateRule.

source

pub async fn get_event_edit_rule( &mut self, request: impl IntoRequest<GetEventEditRuleRequest>, ) -> Result<Response<EventEditRule>, Status>

Lookup for a single EventEditRule.

source

pub async fn list_event_edit_rules( &mut self, request: impl IntoRequest<ListEventEditRulesRequest>, ) -> Result<Response<ListEventEditRulesResponse>, Status>

Lists EventEditRules on a web data stream.

source

pub async fn create_event_edit_rule( &mut self, request: impl IntoRequest<CreateEventEditRuleRequest>, ) -> Result<Response<EventEditRule>, Status>

Creates an EventEditRule.

source

pub async fn update_event_edit_rule( &mut self, request: impl IntoRequest<UpdateEventEditRuleRequest>, ) -> Result<Response<EventEditRule>, Status>

Updates an EventEditRule.

source

pub async fn delete_event_edit_rule( &mut self, request: impl IntoRequest<DeleteEventEditRuleRequest>, ) -> Result<Response<()>, Status>

Deletes an EventEditRule.

source

pub async fn reorder_event_edit_rules( &mut self, request: impl IntoRequest<ReorderEventEditRulesRequest>, ) -> Result<Response<()>, Status>

Changes the processing order of event edit rules on the specified stream.

source

pub async fn update_data_redaction_settings( &mut self, request: impl IntoRequest<UpdateDataRedactionSettingsRequest>, ) -> Result<Response<DataRedactionSettings>, Status>

Updates a DataRedactionSettings on a property.

source

pub async fn get_data_redaction_settings( &mut self, request: impl IntoRequest<GetDataRedactionSettingsRequest>, ) -> Result<Response<DataRedactionSettings>, Status>

Lookup for a single DataRedactionSettings.

source

pub async fn get_calculated_metric( &mut self, request: impl IntoRequest<GetCalculatedMetricRequest>, ) -> Result<Response<CalculatedMetric>, Status>

Lookup for a single CalculatedMetric.

source

pub async fn create_calculated_metric( &mut self, request: impl IntoRequest<CreateCalculatedMetricRequest>, ) -> Result<Response<CalculatedMetric>, Status>

Creates a CalculatedMetric.

source

pub async fn list_calculated_metrics( &mut self, request: impl IntoRequest<ListCalculatedMetricsRequest>, ) -> Result<Response<ListCalculatedMetricsResponse>, Status>

Lists CalculatedMetrics on a property.

source

pub async fn update_calculated_metric( &mut self, request: impl IntoRequest<UpdateCalculatedMetricRequest>, ) -> Result<Response<CalculatedMetric>, Status>

Updates a CalculatedMetric on a property.

source

pub async fn delete_calculated_metric( &mut self, request: impl IntoRequest<DeleteCalculatedMetricRequest>, ) -> Result<Response<()>, Status>

Deletes a CalculatedMetric on a property.

source

pub async fn create_rollup_property( &mut self, request: impl IntoRequest<CreateRollupPropertyRequest>, ) -> Result<Response<CreateRollupPropertyResponse>, Status>

Create a roll-up property and all roll-up property source links.

Lookup for a single roll-up property source Link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.

Lists roll-up property source Links on a property. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.

Creates a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.

Deletes a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.

source

pub async fn provision_subproperty( &mut self, request: impl IntoRequest<ProvisionSubpropertyRequest>, ) -> Result<Response<ProvisionSubpropertyResponse>, Status>

Create a subproperty and a subproperty event filter that applies to the created subproperty.

source

pub async fn create_subproperty_event_filter( &mut self, request: impl IntoRequest<CreateSubpropertyEventFilterRequest>, ) -> Result<Response<SubpropertyEventFilter>, Status>

Creates a subproperty Event Filter.

source

pub async fn get_subproperty_event_filter( &mut self, request: impl IntoRequest<GetSubpropertyEventFilterRequest>, ) -> Result<Response<SubpropertyEventFilter>, Status>

Lookup for a single subproperty Event Filter.

source

pub async fn list_subproperty_event_filters( &mut self, request: impl IntoRequest<ListSubpropertyEventFiltersRequest>, ) -> Result<Response<ListSubpropertyEventFiltersResponse>, Status>

List all subproperty Event Filters on a property.

source

pub async fn update_subproperty_event_filter( &mut self, request: impl IntoRequest<UpdateSubpropertyEventFilterRequest>, ) -> Result<Response<SubpropertyEventFilter>, Status>

Updates a subproperty Event Filter.

source

pub async fn delete_subproperty_event_filter( &mut self, request: impl IntoRequest<DeleteSubpropertyEventFilterRequest>, ) -> Result<Response<()>, Status>

Deletes a subproperty event filter.

Trait Implementations§

source§

impl<T: Clone> Clone for AnalyticsAdminServiceClient<T>

source§

fn clone(&self) -> AnalyticsAdminServiceClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for AnalyticsAdminServiceClient<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more