Struct gapi_grpc::google::analytics::admin::v1alpha::analytics_admin_service_client::AnalyticsAdminServiceClient[][src]

pub struct AnalyticsAdminServiceClient<T> { /* fields omitted */ }

Service Interface for the Analytics Admin API (GA4).

Implementations

impl AnalyticsAdminServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> AnalyticsAdminServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

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

Lookup for a single Account.

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

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.

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

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, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772

Returns an error if the target is not found.

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

Updates an account.

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

Requests a ticket for creating an account.

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

Returns summaries of all accounts accessible by the caller.

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

Lookup for a single “GA4” Property.

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

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.

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

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

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

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, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772

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

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

Updates a property.

Gets information about a user’s link to an account or property.

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

Lists all user links on an account or property.

Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles.

If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.

Creates a user link on an account or property.

If the user with the specified email already has permissions on the account or property, then the user’s existing permissions will be unioned with the permissions specified in the new UserLink.

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

This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created.

Updates a user link on an account or property.

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

Deletes a user link on an account or property.

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

pub async fn get_web_data_stream(
    &mut self,
    request: impl IntoRequest<GetWebDataStreamRequest>
) -> Result<Response<WebDataStream>, Status>
[src]

Lookup for a single WebDataStream

pub async fn delete_web_data_stream(
    &mut self,
    request: impl IntoRequest<DeleteWebDataStreamRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a web stream on a property.

pub async fn update_web_data_stream(
    &mut self,
    request: impl IntoRequest<UpdateWebDataStreamRequest>
) -> Result<Response<WebDataStream>, Status>
[src]

Updates a web stream on a property.

pub async fn create_web_data_stream(
    &mut self,
    request: impl IntoRequest<CreateWebDataStreamRequest>
) -> Result<Response<WebDataStream>, Status>
[src]

Creates a web stream with the specified location and attributes.

pub async fn list_web_data_streams(
    &mut self,
    request: impl IntoRequest<ListWebDataStreamsRequest>
) -> Result<Response<ListWebDataStreamsResponse>, Status>
[src]

Returns child web data streams under the specified parent property.

Web data streams will be excluded if the caller does not have access. Returns an empty list if no relevant web data streams are found.

pub async fn get_ios_app_data_stream(
    &mut self,
    request: impl IntoRequest<GetIosAppDataStreamRequest>
) -> Result<Response<IosAppDataStream>, Status>
[src]

Lookup for a single IosAppDataStream

pub async fn delete_ios_app_data_stream(
    &mut self,
    request: impl IntoRequest<DeleteIosAppDataStreamRequest>
) -> Result<Response<()>, Status>
[src]

Deletes an iOS app stream on a property.

pub async fn update_ios_app_data_stream(
    &mut self,
    request: impl IntoRequest<UpdateIosAppDataStreamRequest>
) -> Result<Response<IosAppDataStream>, Status>
[src]

Updates an iOS app stream on a property.

pub async fn list_ios_app_data_streams(
    &mut self,
    request: impl IntoRequest<ListIosAppDataStreamsRequest>
) -> Result<Response<ListIosAppDataStreamsResponse>, Status>
[src]

Returns child iOS app data streams under the specified parent property.

iOS app data streams will be excluded if the caller does not have access. Returns an empty list if no relevant iOS app data streams are found.

pub async fn get_android_app_data_stream(
    &mut self,
    request: impl IntoRequest<GetAndroidAppDataStreamRequest>
) -> Result<Response<AndroidAppDataStream>, Status>
[src]

Lookup for a single AndroidAppDataStream

pub async fn delete_android_app_data_stream(
    &mut self,
    request: impl IntoRequest<DeleteAndroidAppDataStreamRequest>
) -> Result<Response<()>, Status>
[src]

Deletes an android app stream on a property.

pub async fn update_android_app_data_stream(
    &mut self,
    request: impl IntoRequest<UpdateAndroidAppDataStreamRequest>
) -> Result<Response<AndroidAppDataStream>, Status>
[src]

Updates an android app stream on a property.

pub async fn list_android_app_data_streams(
    &mut self,
    request: impl IntoRequest<ListAndroidAppDataStreamsRequest>
) -> Result<Response<ListAndroidAppDataStreamsResponse>, Status>
[src]

Returns child android app streams under the specified parent property.

Android app streams will be excluded if the caller does not have access. Returns an empty list if no relevant android app streams are found.

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

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

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

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

Creates a FirebaseLink.

Properties can have at most one FirebaseLink.

Updates a FirebaseLink on a property

Deletes a FirebaseLink on a property

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

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

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.

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

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

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

Lookup for a single “GA4” MeasurementProtocolSecret.

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

Returns child MeasurementProtocolSecrets under the specified parent Property.

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

Creates a measurement protocol secret.

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

Deletes target MeasurementProtocolSecret.

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

Updates a measurement protocol secret.

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

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

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

Lookup for Google Signals settings for a property.

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

Updates Google Signals settings for a property.

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

Creates a conversion event with the specified attributes.

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

Retrieve a single conversion event.

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

Deletes a conversion event in a property.

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

Returns a list of conversion events in the specified parent property.

Returns an empty list if no conversion events are found.

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

Creates a CustomDimension.

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

Updates a CustomDimension on a property.

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

Lists CustomDimensions on a property.

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

Archives a CustomDimension on a property.

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

Lookup for a single CustomDimension.

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

Creates a CustomMetric.

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

Updates a CustomMetric on a property.

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

Lists CustomMetrics on a property.

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

Archives a CustomMetric on a property.

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

Lookup for a single CustomMetric.

Trait Implementations

impl<T: Clone> Clone for AnalyticsAdminServiceClient<T>[src]

impl<T> Debug for AnalyticsAdminServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for AnalyticsAdminServiceClient<T>

impl<T> Send for AnalyticsAdminServiceClient<T> where
    T: Send

impl<T> Sync for AnalyticsAdminServiceClient<T> where
    T: Sync

impl<T> Unpin for AnalyticsAdminServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for AnalyticsAdminServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]