public static final class AnalyticsAdminServiceGrpc.AnalyticsAdminServiceStub extends AbstractAsyncStub<AnalyticsAdminServiceGrpc.AnalyticsAdminServiceStub>
Service Interface for the Analytics Admin API (GA4).
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractAsyncStub >
AnalyticsAdminServiceGrpc.AnalyticsAdminServiceStub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
acknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest request, StreamObserver<AcknowledgeUserDataCollectionResponse> responseObserver)
public void acknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest request, StreamObserver<AcknowledgeUserDataCollectionResponse> responseObserver)
Acknowledges the terms of user data collection for the specified property.
This acknowledgement must be completed (either in the Google Analytics UI
or via this API) before MeasurementProtocolSecret resources may be created.
Parameters
archiveCustomDimension(ArchiveCustomDimensionRequest request, StreamObserver<Empty> responseObserver)
public void archiveCustomDimension(ArchiveCustomDimensionRequest request, StreamObserver<Empty> responseObserver)
Archives a CustomDimension on a property.
Parameters
archiveCustomMetric(ArchiveCustomMetricRequest request, StreamObserver<Empty> responseObserver)
public void archiveCustomMetric(ArchiveCustomMetricRequest request, StreamObserver<Empty> responseObserver)
Archives a CustomMetric on a property.
Parameters
build(Channel channel, CallOptions callOptions)
protected AnalyticsAdminServiceGrpc.AnalyticsAdminServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name | Description |
channel | io.grpc.Channel
|
callOptions | io.grpc.CallOptions
|
Returns
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createConversionEvent(CreateConversionEventRequest request, StreamObserver<ConversionEvent> responseObserver)
public void createConversionEvent(CreateConversionEventRequest request, StreamObserver<ConversionEvent> responseObserver)
Creates a conversion event with the specified attributes.
Parameters
createCustomDimension(CreateCustomDimensionRequest request, StreamObserver<CustomDimension> responseObserver)
public void createCustomDimension(CreateCustomDimensionRequest request, StreamObserver<CustomDimension> responseObserver)
Creates a CustomDimension.
Parameters
createCustomMetric(CreateCustomMetricRequest request, StreamObserver<CustomMetric> responseObserver)
public void createCustomMetric(CreateCustomMetricRequest request, StreamObserver<CustomMetric> responseObserver)
Parameters
createDataStream(CreateDataStreamRequest request, StreamObserver<DataStream> responseObserver)
public void createDataStream(CreateDataStreamRequest request, StreamObserver<DataStream> responseObserver)
Parameters
createFirebaseLink(CreateFirebaseLinkRequest request, StreamObserver<FirebaseLink> responseObserver)
public void createFirebaseLink(CreateFirebaseLinkRequest request, StreamObserver<FirebaseLink> responseObserver)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Parameters
createGoogleAdsLink(CreateGoogleAdsLinkRequest request, StreamObserver<GoogleAdsLink> responseObserver)
public void createGoogleAdsLink(CreateGoogleAdsLinkRequest request, StreamObserver<GoogleAdsLink> responseObserver)
Parameters
createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest request, StreamObserver<MeasurementProtocolSecret> responseObserver)
public void createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest request, StreamObserver<MeasurementProtocolSecret> responseObserver)
Creates a measurement protocol secret.
Parameters
createProperty(CreatePropertyRequest request, StreamObserver<Property> responseObserver)
public void createProperty(CreatePropertyRequest request, StreamObserver<Property> responseObserver)
Creates an "GA4" property with the specified location and attributes.
Parameters
deleteAccount(DeleteAccountRequest request, StreamObserver<Empty> responseObserver)
public void deleteAccount(DeleteAccountRequest request, StreamObserver<Empty> responseObserver)
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.
Parameters
deleteConversionEvent(DeleteConversionEventRequest request, StreamObserver<Empty> responseObserver)
public void deleteConversionEvent(DeleteConversionEventRequest request, StreamObserver<Empty> responseObserver)
Deletes a conversion event in a property.
Parameters
deleteDataStream(DeleteDataStreamRequest request, StreamObserver<Empty> responseObserver)
public void deleteDataStream(DeleteDataStreamRequest request, StreamObserver<Empty> responseObserver)
Deletes a DataStream on a property.
Parameters
deleteFirebaseLink(DeleteFirebaseLinkRequest request, StreamObserver<Empty> responseObserver)
public void deleteFirebaseLink(DeleteFirebaseLinkRequest request, StreamObserver<Empty> responseObserver)
Deletes a FirebaseLink on a property
Parameters
deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request, StreamObserver<Empty> responseObserver)
public void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request, StreamObserver<Empty> responseObserver)
Deletes a GoogleAdsLink on a property
Parameters
deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest request, StreamObserver<Empty> responseObserver)
public void deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest request, StreamObserver<Empty> responseObserver)
Deletes target MeasurementProtocolSecret.
Parameters
deleteProperty(DeletePropertyRequest request, StreamObserver<Property> responseObserver)
public void deleteProperty(DeletePropertyRequest request, StreamObserver<Property> responseObserver)
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.
Parameters
getAccount(GetAccountRequest request, StreamObserver<Account> responseObserver)
public void getAccount(GetAccountRequest request, StreamObserver<Account> responseObserver)
Lookup for a single Account.
Parameters
getConversionEvent(GetConversionEventRequest request, StreamObserver<ConversionEvent> responseObserver)
public void getConversionEvent(GetConversionEventRequest request, StreamObserver<ConversionEvent> responseObserver)
Retrieve a single conversion event.
Parameters
getCustomDimension(GetCustomDimensionRequest request, StreamObserver<CustomDimension> responseObserver)
public void getCustomDimension(GetCustomDimensionRequest request, StreamObserver<CustomDimension> responseObserver)
Lookup for a single CustomDimension.
Parameters
getCustomMetric(GetCustomMetricRequest request, StreamObserver<CustomMetric> responseObserver)
public void getCustomMetric(GetCustomMetricRequest request, StreamObserver<CustomMetric> responseObserver)
Lookup for a single CustomMetric.
Parameters
getDataRetentionSettings(GetDataRetentionSettingsRequest request, StreamObserver<DataRetentionSettings> responseObserver)
public void getDataRetentionSettings(GetDataRetentionSettingsRequest request, StreamObserver<DataRetentionSettings> responseObserver)
Returns the singleton data retention settings for this property.
Parameters
getDataSharingSettings(GetDataSharingSettingsRequest request, StreamObserver<DataSharingSettings> responseObserver)
public void getDataSharingSettings(GetDataSharingSettingsRequest request, StreamObserver<DataSharingSettings> responseObserver)
Get data sharing settings on an account.
Data sharing settings are singletons.
Parameters
getDataStream(GetDataStreamRequest request, StreamObserver<DataStream> responseObserver)
public void getDataStream(GetDataStreamRequest request, StreamObserver<DataStream> responseObserver)
Lookup for a single DataStream.
Parameters
getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest request, StreamObserver<MeasurementProtocolSecret> responseObserver)
public void getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest request, StreamObserver<MeasurementProtocolSecret> responseObserver)
Lookup for a single "GA4" MeasurementProtocolSecret.
Parameters
getProperty(GetPropertyRequest request, StreamObserver<Property> responseObserver)
public void getProperty(GetPropertyRequest request, StreamObserver<Property> responseObserver)
Lookup for a single "GA4" Property.
Parameters
listAccountSummaries(ListAccountSummariesRequest request, StreamObserver<ListAccountSummariesResponse> responseObserver)
public void listAccountSummaries(ListAccountSummariesRequest request, StreamObserver<ListAccountSummariesResponse> responseObserver)
Returns summaries of all accounts accessible by the caller.
Parameters
listAccounts(ListAccountsRequest request, StreamObserver<ListAccountsResponse> responseObserver)
public void listAccounts(ListAccountsRequest request, StreamObserver<ListAccountsResponse> responseObserver)
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.
Parameters
listConversionEvents(ListConversionEventsRequest request, StreamObserver<ListConversionEventsResponse> responseObserver)
public void listConversionEvents(ListConversionEventsRequest request, StreamObserver<ListConversionEventsResponse> responseObserver)
Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Parameters
listCustomDimensions(ListCustomDimensionsRequest request, StreamObserver<ListCustomDimensionsResponse> responseObserver)
public void listCustomDimensions(ListCustomDimensionsRequest request, StreamObserver<ListCustomDimensionsResponse> responseObserver)
Lists CustomDimensions on a property.
Parameters
listCustomMetrics(ListCustomMetricsRequest request, StreamObserver<ListCustomMetricsResponse> responseObserver)
public void listCustomMetrics(ListCustomMetricsRequest request, StreamObserver<ListCustomMetricsResponse> responseObserver)
Lists CustomMetrics on a property.
Parameters
listDataStreams(ListDataStreamsRequest request, StreamObserver<ListDataStreamsResponse> responseObserver)
public void listDataStreams(ListDataStreamsRequest request, StreamObserver<ListDataStreamsResponse> responseObserver)
Lists DataStreams on a property.
Parameters
listFirebaseLinks(ListFirebaseLinksRequest request, StreamObserver<ListFirebaseLinksResponse> responseObserver)
public void listFirebaseLinks(ListFirebaseLinksRequest request, StreamObserver<ListFirebaseLinksResponse> responseObserver)
Lists FirebaseLinks on a property.
Properties can have at most one FirebaseLink.
Parameters
listGoogleAdsLinks(ListGoogleAdsLinksRequest request, StreamObserver<ListGoogleAdsLinksResponse> responseObserver)
public void listGoogleAdsLinks(ListGoogleAdsLinksRequest request, StreamObserver<ListGoogleAdsLinksResponse> responseObserver)
Lists GoogleAdsLinks on a property.
Parameters
listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest request, StreamObserver<ListMeasurementProtocolSecretsResponse> responseObserver)
public void listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest request, StreamObserver<ListMeasurementProtocolSecretsResponse> responseObserver)
Returns child MeasurementProtocolSecrets under the specified parent
Property.
Parameters
listProperties(ListPropertiesRequest request, StreamObserver<ListPropertiesResponse> responseObserver)
public void listProperties(ListPropertiesRequest request, StreamObserver<ListPropertiesResponse> responseObserver)
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.
Parameters
provisionAccountTicket(ProvisionAccountTicketRequest request, StreamObserver<ProvisionAccountTicketResponse> responseObserver)
public void provisionAccountTicket(ProvisionAccountTicketRequest request, StreamObserver<ProvisionAccountTicketResponse> responseObserver)
Requests a ticket for creating an account.
Parameters
searchChangeHistoryEvents(SearchChangeHistoryEventsRequest request, StreamObserver<SearchChangeHistoryEventsResponse> responseObserver)
public void searchChangeHistoryEvents(SearchChangeHistoryEventsRequest request, StreamObserver<SearchChangeHistoryEventsResponse> responseObserver)
Searches through all changes to an account or its children given the
specified set of filters.
Parameters
updateAccount(UpdateAccountRequest request, StreamObserver<Account> responseObserver)
public void updateAccount(UpdateAccountRequest request, StreamObserver<Account> responseObserver)
Parameters
updateCustomDimension(UpdateCustomDimensionRequest request, StreamObserver<CustomDimension> responseObserver)
public void updateCustomDimension(UpdateCustomDimensionRequest request, StreamObserver<CustomDimension> responseObserver)
Updates a CustomDimension on a property.
Parameters
updateCustomMetric(UpdateCustomMetricRequest request, StreamObserver<CustomMetric> responseObserver)
public void updateCustomMetric(UpdateCustomMetricRequest request, StreamObserver<CustomMetric> responseObserver)
Updates a CustomMetric on a property.
Parameters
updateDataRetentionSettings(UpdateDataRetentionSettingsRequest request, StreamObserver<DataRetentionSettings> responseObserver)
public void updateDataRetentionSettings(UpdateDataRetentionSettingsRequest request, StreamObserver<DataRetentionSettings> responseObserver)
Updates the singleton data retention settings for this property.
Parameters
updateDataStream(UpdateDataStreamRequest request, StreamObserver<DataStream> responseObserver)
public void updateDataStream(UpdateDataStreamRequest request, StreamObserver<DataStream> responseObserver)
Updates a DataStream on a property.
Parameters
updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request, StreamObserver<GoogleAdsLink> responseObserver)
public void updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request, StreamObserver<GoogleAdsLink> responseObserver)
Updates a GoogleAdsLink on a property
Parameters
updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest request, StreamObserver<MeasurementProtocolSecret> responseObserver)
public void updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest request, StreamObserver<MeasurementProtocolSecret> responseObserver)
Updates a measurement protocol secret.
Parameters
updateProperty(UpdatePropertyRequest request, StreamObserver<Property> responseObserver)
public void updateProperty(UpdatePropertyRequest request, StreamObserver<Property> responseObserver)
Parameters