Class AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingV2Stub>
com.google.analytics.admin.v1beta.AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingV2Stub
- Enclosing class:
- AnalyticsAdminServiceGrpc
public static final class AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service AnalyticsAdminService.
Service Interface for the Google Analytics Admin API.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionAcknowledges the terms of user data collection for the specified property.com.google.protobuf.EmptyArchives a CustomDimension on a property.com.google.protobuf.EmptyArchives a CustomMetric on a property.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Deprecated.Creates a CustomDimension.Creates a CustomMetric.createDataStream(CreateDataStreamRequest request) Creates a DataStream.Creates a FirebaseLink.Creates a GoogleAdsLink.createKeyEvent(CreateKeyEventRequest request) Creates a Key Event.Creates a measurement protocol secret.createProperty(CreatePropertyRequest request) Creates a Google Analytics property with the specified location and attributes.com.google.protobuf.EmptydeleteAccount(DeleteAccountRequest request) Marks target Account as soft-deleted (ie: "trashed") and returns it.com.google.protobuf.EmptyDeprecated.com.google.protobuf.EmptydeleteDataStream(DeleteDataStreamRequest request) Deletes a DataStream on a property.com.google.protobuf.EmptyDeletes a FirebaseLink on a propertycom.google.protobuf.EmptyDeletes a GoogleAdsLink on a propertycom.google.protobuf.EmptydeleteKeyEvent(DeleteKeyEventRequest request) Deletes a Key Event.com.google.protobuf.EmptyDeletes target MeasurementProtocolSecret.deleteProperty(DeletePropertyRequest request) Marks target Property as soft-deleted (ie: "trashed") and returns it.getAccount(GetAccountRequest request) Lookup for a single Account.Deprecated.Lookup for a single CustomDimension.getCustomMetric(GetCustomMetricRequest request) Lookup for a single CustomMetric.Returns the singleton data retention settings for this property.Get data sharing settings on an account.getDataStream(GetDataStreamRequest request) Lookup for a single DataStream.getKeyEvent(GetKeyEventRequest request) Retrieve a single Key Event.Lookup for a single MeasurementProtocolSecret.getProperty(GetPropertyRequest request) Lookup for a single GA Property.listAccounts(ListAccountsRequest request) Returns all accounts accessible by the caller.Returns summaries of all accounts accessible by the caller.Deprecated.Lists CustomDimensions on a property.Lists CustomMetrics on a property.listDataStreams(ListDataStreamsRequest request) Lists DataStreams on a property.Lists FirebaseLinks on a property.Lists GoogleAdsLinks on a property.listKeyEvents(ListKeyEventsRequest request) Returns a list of Key Events in the specified parent property.Returns child MeasurementProtocolSecrets under the specified parent Property.listProperties(ListPropertiesRequest request) Returns child Properties under the specified parent Account.Requests a ticket for creating an account.runAccessReport(RunAccessReportRequest request) Returns a customized report of data access records.Searches through all changes to an account or its children given the specified set of filters.updateAccount(UpdateAccountRequest request) Updates an account.Deprecated.Updates a CustomDimension on a property.Updates a CustomMetric on a property.Updates the singleton data retention settings for this property.updateDataStream(UpdateDataStreamRequest request) Updates a DataStream on a property.Updates a GoogleAdsLink on a propertyupdateKeyEvent(UpdateKeyEventRequest request) Updates a Key Event.Updates a measurement protocol secret.updateProperty(UpdatePropertyRequest request) Updates a property.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingV2Stub>
-
getAccount
Lookup for a single Account.
- Throws:
io.grpc.StatusException
-
listAccounts
public ListAccountsResponse listAccounts(ListAccountsRequest request) throws io.grpc.StatusException Returns all accounts accessible by the caller. Note that these accounts might not currently have GA properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are found.
- Throws:
io.grpc.StatusException
-
deleteAccount
public com.google.protobuf.Empty deleteAccount(DeleteAccountRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
updateAccount
Updates an account.
- Throws:
io.grpc.StatusException
-
provisionAccountTicket
public ProvisionAccountTicketResponse provisionAccountTicket(ProvisionAccountTicketRequest request) throws io.grpc.StatusException Requests a ticket for creating an account.
- Throws:
io.grpc.StatusException
-
listAccountSummaries
public ListAccountSummariesResponse listAccountSummaries(ListAccountSummariesRequest request) throws io.grpc.StatusException Returns summaries of all accounts accessible by the caller.
- Throws:
io.grpc.StatusException
-
getProperty
Lookup for a single GA Property.
- Throws:
io.grpc.StatusException
-
listProperties
public ListPropertiesResponse listProperties(ListPropertiesRequest request) throws io.grpc.StatusException Returns child Properties under the specified parent Account. Properties will be excluded if the caller does not have access. Soft-deleted (ie: "trashed") properties are excluded by default. Returns an empty list if no relevant properties are found.
- Throws:
io.grpc.StatusException
-
createProperty
Creates a Google Analytics property with the specified location and attributes.
- Throws:
io.grpc.StatusException
-
deleteProperty
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.
- Throws:
io.grpc.StatusException
-
updateProperty
Updates a property.
- Throws:
io.grpc.StatusException
-
createFirebaseLink
public FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request) throws io.grpc.StatusException Creates a FirebaseLink. Properties can have at most one FirebaseLink.
- Throws:
io.grpc.StatusException
-
deleteFirebaseLink
public com.google.protobuf.Empty deleteFirebaseLink(DeleteFirebaseLinkRequest request) throws io.grpc.StatusException Deletes a FirebaseLink on a property
- Throws:
io.grpc.StatusException
-
listFirebaseLinks
public ListFirebaseLinksResponse listFirebaseLinks(ListFirebaseLinksRequest request) throws io.grpc.StatusException Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
- Throws:
io.grpc.StatusException
-
createGoogleAdsLink
public GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request) throws io.grpc.StatusException Creates a GoogleAdsLink.
- Throws:
io.grpc.StatusException
-
updateGoogleAdsLink
public GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request) throws io.grpc.StatusException Updates a GoogleAdsLink on a property
- Throws:
io.grpc.StatusException
-
deleteGoogleAdsLink
public com.google.protobuf.Empty deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request) throws io.grpc.StatusException Deletes a GoogleAdsLink on a property
- Throws:
io.grpc.StatusException
-
listGoogleAdsLinks
public ListGoogleAdsLinksResponse listGoogleAdsLinks(ListGoogleAdsLinksRequest request) throws io.grpc.StatusException Lists GoogleAdsLinks on a property.
- Throws:
io.grpc.StatusException
-
getDataSharingSettings
public DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request) throws io.grpc.StatusException Get data sharing settings on an account. Data sharing settings are singletons.
- Throws:
io.grpc.StatusException
-
getMeasurementProtocolSecret
public MeasurementProtocolSecret getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest request) throws io.grpc.StatusException Lookup for a single MeasurementProtocolSecret.
- Throws:
io.grpc.StatusException
-
listMeasurementProtocolSecrets
public ListMeasurementProtocolSecretsResponse listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest request) throws io.grpc.StatusException Returns child MeasurementProtocolSecrets under the specified parent Property.
- Throws:
io.grpc.StatusException
-
createMeasurementProtocolSecret
public MeasurementProtocolSecret createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest request) throws io.grpc.StatusException Creates a measurement protocol secret.
- Throws:
io.grpc.StatusException
-
deleteMeasurementProtocolSecret
public com.google.protobuf.Empty deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest request) throws io.grpc.StatusException Deletes target MeasurementProtocolSecret.
- Throws:
io.grpc.StatusException
-
updateMeasurementProtocolSecret
public MeasurementProtocolSecret updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest request) throws io.grpc.StatusException Updates a measurement protocol secret.
- Throws:
io.grpc.StatusException
-
acknowledgeUserDataCollection
public AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
searchChangeHistoryEvents
public SearchChangeHistoryEventsResponse searchChangeHistoryEvents(SearchChangeHistoryEventsRequest request) throws io.grpc.StatusException Searches through all changes to an account or its children given the specified set of filters. Only returns the subset of changes supported by the API. The UI may return additional changes.
- Throws:
io.grpc.StatusException
-
createConversionEvent
@Deprecated public ConversionEvent createConversionEvent(CreateConversionEventRequest request) throws io.grpc.StatusException Deprecated.Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified attributes.
- Throws:
io.grpc.StatusException
-
updateConversionEvent
@Deprecated public ConversionEvent updateConversionEvent(UpdateConversionEventRequest request) throws io.grpc.StatusException Deprecated.Deprecated: Use `UpdateKeyEvent` instead. Updates a conversion event with the specified attributes.
- Throws:
io.grpc.StatusException
-
getConversionEvent
@Deprecated public ConversionEvent getConversionEvent(GetConversionEventRequest request) throws io.grpc.StatusException Deprecated.Deprecated: Use `GetKeyEvent` instead. Retrieve a single conversion event.
- Throws:
io.grpc.StatusException
-
deleteConversionEvent
@Deprecated public com.google.protobuf.Empty deleteConversionEvent(DeleteConversionEventRequest request) throws io.grpc.StatusException Deprecated.Deprecated: Use `DeleteKeyEvent` instead. Deletes a conversion event in a property.
- Throws:
io.grpc.StatusException
-
listConversionEvents
@Deprecated public ListConversionEventsResponse listConversionEvents(ListConversionEventsRequest request) throws io.grpc.StatusException Deprecated.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.
- Throws:
io.grpc.StatusException
-
createKeyEvent
Creates a Key Event.
- Throws:
io.grpc.StatusException
-
updateKeyEvent
Updates a Key Event.
- Throws:
io.grpc.StatusException
-
getKeyEvent
Retrieve a single Key Event.
- Throws:
io.grpc.StatusException
-
deleteKeyEvent
public com.google.protobuf.Empty deleteKeyEvent(DeleteKeyEventRequest request) throws io.grpc.StatusException Deletes a Key Event.
- Throws:
io.grpc.StatusException
-
listKeyEvents
public ListKeyEventsResponse listKeyEvents(ListKeyEventsRequest request) throws io.grpc.StatusException Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found.
- Throws:
io.grpc.StatusException
-
createCustomDimension
public CustomDimension createCustomDimension(CreateCustomDimensionRequest request) throws io.grpc.StatusException Creates a CustomDimension.
- Throws:
io.grpc.StatusException
-
updateCustomDimension
public CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) throws io.grpc.StatusException Updates a CustomDimension on a property.
- Throws:
io.grpc.StatusException
-
listCustomDimensions
public ListCustomDimensionsResponse listCustomDimensions(ListCustomDimensionsRequest request) throws io.grpc.StatusException Lists CustomDimensions on a property.
- Throws:
io.grpc.StatusException
-
archiveCustomDimension
public com.google.protobuf.Empty archiveCustomDimension(ArchiveCustomDimensionRequest request) throws io.grpc.StatusException Archives a CustomDimension on a property.
- Throws:
io.grpc.StatusException
-
getCustomDimension
public CustomDimension getCustomDimension(GetCustomDimensionRequest request) throws io.grpc.StatusException Lookup for a single CustomDimension.
- Throws:
io.grpc.StatusException
-
createCustomMetric
public CustomMetric createCustomMetric(CreateCustomMetricRequest request) throws io.grpc.StatusException Creates a CustomMetric.
- Throws:
io.grpc.StatusException
-
updateCustomMetric
public CustomMetric updateCustomMetric(UpdateCustomMetricRequest request) throws io.grpc.StatusException Updates a CustomMetric on a property.
- Throws:
io.grpc.StatusException
-
listCustomMetrics
public ListCustomMetricsResponse listCustomMetrics(ListCustomMetricsRequest request) throws io.grpc.StatusException Lists CustomMetrics on a property.
- Throws:
io.grpc.StatusException
-
archiveCustomMetric
public com.google.protobuf.Empty archiveCustomMetric(ArchiveCustomMetricRequest request) throws io.grpc.StatusException Archives a CustomMetric on a property.
- Throws:
io.grpc.StatusException
-
getCustomMetric
Lookup for a single CustomMetric.
- Throws:
io.grpc.StatusException
-
getDataRetentionSettings
public DataRetentionSettings getDataRetentionSettings(GetDataRetentionSettingsRequest request) throws io.grpc.StatusException Returns the singleton data retention settings for this property.
- Throws:
io.grpc.StatusException
-
updateDataRetentionSettings
public DataRetentionSettings updateDataRetentionSettings(UpdateDataRetentionSettingsRequest request) throws io.grpc.StatusException Updates the singleton data retention settings for this property.
- Throws:
io.grpc.StatusException
-
createDataStream
Creates a DataStream.
- Throws:
io.grpc.StatusException
-
deleteDataStream
public com.google.protobuf.Empty deleteDataStream(DeleteDataStreamRequest request) throws io.grpc.StatusException Deletes a DataStream on a property.
- Throws:
io.grpc.StatusException
-
updateDataStream
Updates a DataStream on a property.
- Throws:
io.grpc.StatusException
-
listDataStreams
public ListDataStreamsResponse listDataStreams(ListDataStreamsRequest request) throws io.grpc.StatusException Lists DataStreams on a property.
- Throws:
io.grpc.StatusException
-
getDataStream
Lookup for a single DataStream.
- Throws:
io.grpc.StatusException
-
runAccessReport
public RunAccessReportResponse runAccessReport(RunAccessReportRequest request) throws io.grpc.StatusException Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.
- Throws:
io.grpc.StatusException
-