public static final class AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingStub extends AbstractBlockingStub<AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingStub>
Service Interface for the Analytics Admin API (GA4).
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractBlockingStub >
AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingStub
Inherited Members
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractBlockingStub.<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)
public AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest request)
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.
Parameter
Returns
approveDisplayVideo360AdvertiserLinkProposal(ApproveDisplayVideo360AdvertiserLinkProposalRequest request)
public ApproveDisplayVideo360AdvertiserLinkProposalResponse approveDisplayVideo360AdvertiserLinkProposal(ApproveDisplayVideo360AdvertiserLinkProposalRequest request)
Approves a DisplayVideo360AdvertiserLinkProposal.
The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
DisplayVideo360AdvertiserLink will be created.
Parameter
Returns
archiveAudience(ArchiveAudienceRequest request)
public Empty archiveAudience(ArchiveAudienceRequest request)
Archives an Audience on a property.
Parameter
Returns
archiveCustomDimension(ArchiveCustomDimensionRequest request)
public Empty archiveCustomDimension(ArchiveCustomDimensionRequest request)
Archives a CustomDimension on a property.
Parameter
Returns
archiveCustomMetric(ArchiveCustomMetricRequest request)
public Empty archiveCustomMetric(ArchiveCustomMetricRequest request)
Archives a CustomMetric on a property.
Parameter
Returns
auditUserLinks(AuditUserLinksRequest request)
public AuditUserLinksResponse auditUserLinks(AuditUserLinksRequest request)
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.
Parameter
Returns
batchCreateUserLinks(BatchCreateUserLinksRequest request)
public BatchCreateUserLinksResponse batchCreateUserLinks(BatchCreateUserLinksRequest request)
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.
Parameter
Returns
batchDeleteUserLinks(BatchDeleteUserLinksRequest request)
public Empty batchDeleteUserLinks(BatchDeleteUserLinksRequest request)
Deletes information about multiple users' links to an account or property.
Parameter
Returns
batchGetUserLinks(BatchGetUserLinksRequest request)
public BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksRequest request)
Gets information about multiple users' links to an account or property.
Parameter
Returns
batchUpdateUserLinks(BatchUpdateUserLinksRequest request)
public BatchUpdateUserLinksResponse batchUpdateUserLinks(BatchUpdateUserLinksRequest request)
Updates information about multiple users' links to an account or property.
Parameter
Returns
build(Channel channel, CallOptions callOptions)
protected AnalyticsAdminServiceGrpc.AnalyticsAdminServiceBlockingStub 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)
cancelDisplayVideo360AdvertiserLinkProposal(CancelDisplayVideo360AdvertiserLinkProposalRequest request)
public DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360AdvertiserLinkProposal(CancelDisplayVideo360AdvertiserLinkProposalRequest request)
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.
Parameter
Returns
createAudience(CreateAudienceRequest request)
public Audience createAudience(CreateAudienceRequest request)
Parameter
Returns
createConversionEvent(CreateConversionEventRequest request)
public ConversionEvent createConversionEvent(CreateConversionEventRequest request)
Creates a conversion event with the specified attributes.
Parameter
Returns
createCustomDimension(CreateCustomDimensionRequest request)
public CustomDimension createCustomDimension(CreateCustomDimensionRequest request)
Creates a CustomDimension.
Parameter
Returns
createCustomMetric(CreateCustomMetricRequest request)
public CustomMetric createCustomMetric(CreateCustomMetricRequest request)
Parameter
Returns
createDataStream(CreateDataStreamRequest request)
public DataStream createDataStream(CreateDataStreamRequest request)
Parameter
Returns
createDisplayVideo360AdvertiserLink(CreateDisplayVideo360AdvertiserLinkRequest request)
public DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(CreateDisplayVideo360AdvertiserLinkRequest request)
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.
Parameter
Returns
createDisplayVideo360AdvertiserLinkProposal(CreateDisplayVideo360AdvertiserLinkProposalRequest request)
public DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(CreateDisplayVideo360AdvertiserLinkProposalRequest request)
Creates a DisplayVideo360AdvertiserLinkProposal.
Parameter
Returns
createFirebaseLink(CreateFirebaseLinkRequest request)
public FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Parameter
Returns
createGoogleAdsLink(CreateGoogleAdsLinkRequest request)
public GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request)
Parameter
Returns
createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest request)
public MeasurementProtocolSecret createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest request)
Creates a measurement protocol secret.
Parameter
Returns
createProperty(CreatePropertyRequest request)
public Property createProperty(CreatePropertyRequest request)
Creates an "GA4" property with the specified location and attributes.
Parameter
Returns
createUserLink(CreateUserLinkRequest request)
public UserLink createUserLink(CreateUserLinkRequest request)
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.
Parameter
Returns
deleteAccount(DeleteAccountRequest request)
public Empty deleteAccount(DeleteAccountRequest request)
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.
Parameter
Returns
deleteConversionEvent(DeleteConversionEventRequest request)
public Empty deleteConversionEvent(DeleteConversionEventRequest request)
Deletes a conversion event in a property.
Parameter
Returns
deleteDataStream(DeleteDataStreamRequest request)
public Empty deleteDataStream(DeleteDataStreamRequest request)
Deletes a DataStream on a property.
Parameter
Returns
deleteDisplayVideo360AdvertiserLink(DeleteDisplayVideo360AdvertiserLinkRequest request)
public Empty deleteDisplayVideo360AdvertiserLink(DeleteDisplayVideo360AdvertiserLinkRequest request)
Deletes a DisplayVideo360AdvertiserLink on a property.
Parameter
Returns
deleteDisplayVideo360AdvertiserLinkProposal(DeleteDisplayVideo360AdvertiserLinkProposalRequest request)
public Empty deleteDisplayVideo360AdvertiserLinkProposal(DeleteDisplayVideo360AdvertiserLinkProposalRequest request)
Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
This can only be used on cancelled proposals.
Parameter
Returns
deleteFirebaseLink(DeleteFirebaseLinkRequest request)
public Empty deleteFirebaseLink(DeleteFirebaseLinkRequest request)
Deletes a FirebaseLink on a property
Parameter
Returns
deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request)
public Empty deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request)
Deletes a GoogleAdsLink on a property
Parameter
Returns
deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest request)
public Empty deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest request)
Deletes target MeasurementProtocolSecret.
Parameter
Returns
deleteProperty(DeletePropertyRequest request)
public Property deleteProperty(DeletePropertyRequest request)
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.
Parameter
Returns
deleteUserLink(DeleteUserLinkRequest request)
public Empty deleteUserLink(DeleteUserLinkRequest request)
Deletes a user link on an account or property.
Parameter
Returns
getAccount(GetAccountRequest request)
public Account getAccount(GetAccountRequest request)
Lookup for a single Account.
Parameter
Returns
getAttributionSettings(GetAttributionSettingsRequest request)
public AttributionSettings getAttributionSettings(GetAttributionSettingsRequest request)
Lookup for a AttributionSettings singleton.
Parameter
Returns
getAudience(GetAudienceRequest request)
public Audience getAudience(GetAudienceRequest request)
Lookup for a single Audience.
Audiences created before 2020 may not be supported.
Parameter
Returns
getConversionEvent(GetConversionEventRequest request)
public ConversionEvent getConversionEvent(GetConversionEventRequest request)
Retrieve a single conversion event.
Parameter
Returns
getCustomDimension(GetCustomDimensionRequest request)
public CustomDimension getCustomDimension(GetCustomDimensionRequest request)
Lookup for a single CustomDimension.
Parameter
Returns
getCustomMetric(GetCustomMetricRequest request)
public CustomMetric getCustomMetric(GetCustomMetricRequest request)
Lookup for a single CustomMetric.
Parameter
Returns
getDataRetentionSettings(GetDataRetentionSettingsRequest request)
public DataRetentionSettings getDataRetentionSettings(GetDataRetentionSettingsRequest request)
Returns the singleton data retention settings for this property.
Parameter
Returns
getDataSharingSettings(GetDataSharingSettingsRequest request)
public DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request)
Get data sharing settings on an account.
Data sharing settings are singletons.
Parameter
Returns
getDataStream(GetDataStreamRequest request)
public DataStream getDataStream(GetDataStreamRequest request)
Lookup for a single DataStream.
Parameter
Returns
getDisplayVideo360AdvertiserLink(GetDisplayVideo360AdvertiserLinkRequest request)
public DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(GetDisplayVideo360AdvertiserLinkRequest request)
Look up a single DisplayVideo360AdvertiserLink
Parameter
Returns
getDisplayVideo360AdvertiserLinkProposal(GetDisplayVideo360AdvertiserLinkProposalRequest request)
public DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(GetDisplayVideo360AdvertiserLinkProposalRequest request)
Lookup for a single DisplayVideo360AdvertiserLinkProposal.
Parameter
Returns
getGlobalSiteTag(GetGlobalSiteTagRequest request)
public GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request)
Returns the Site Tag for the specified web stream.
Site Tags are immutable singletons.
Parameter
Returns
getGoogleSignalsSettings(GetGoogleSignalsSettingsRequest request)
public GoogleSignalsSettings getGoogleSignalsSettings(GetGoogleSignalsSettingsRequest request)
Lookup for Google Signals settings for a property.
Parameter
Returns
getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest request)
public MeasurementProtocolSecret getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest request)
Lookup for a single "GA4" MeasurementProtocolSecret.
Parameter
Returns
getProperty(GetPropertyRequest request)
public Property getProperty(GetPropertyRequest request)
Lookup for a single "GA4" Property.
Parameter
Returns
getUserLink(GetUserLinkRequest request)
public UserLink getUserLink(GetUserLinkRequest request)
Gets information about a user's link to an account or property.
Parameter
Returns
listAccountSummaries(ListAccountSummariesRequest request)
public ListAccountSummariesResponse listAccountSummaries(ListAccountSummariesRequest request)
Returns summaries of all accounts accessible by the caller.
Parameter
Returns
listAccounts(ListAccountsRequest request)
public ListAccountsResponse listAccounts(ListAccountsRequest request)
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.
Parameter
Returns
listAudiences(ListAudiencesRequest request)
public ListAudiencesResponse listAudiences(ListAudiencesRequest request)
Lists Audiences on a property.
Audiences created before 2020 may not be supported.
Parameter
Returns
listConversionEvents(ListConversionEventsRequest request)
public ListConversionEventsResponse listConversionEvents(ListConversionEventsRequest request)
Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Parameter
Returns
listCustomDimensions(ListCustomDimensionsRequest request)
public ListCustomDimensionsResponse listCustomDimensions(ListCustomDimensionsRequest request)
Lists CustomDimensions on a property.
Parameter
Returns
listCustomMetrics(ListCustomMetricsRequest request)
public ListCustomMetricsResponse listCustomMetrics(ListCustomMetricsRequest request)
Lists CustomMetrics on a property.
Parameter
Returns
listDataStreams(ListDataStreamsRequest request)
public ListDataStreamsResponse listDataStreams(ListDataStreamsRequest request)
Lists DataStreams on a property.
Parameter
Returns
listDisplayVideo360AdvertiserLinkProposals(ListDisplayVideo360AdvertiserLinkProposalsRequest request)
public ListDisplayVideo360AdvertiserLinkProposalsResponse listDisplayVideo360AdvertiserLinkProposals(ListDisplayVideo360AdvertiserLinkProposalsRequest request)
Lists DisplayVideo360AdvertiserLinkProposals on a property.
Parameter
Returns
listDisplayVideo360AdvertiserLinks(ListDisplayVideo360AdvertiserLinksRequest request)
public ListDisplayVideo360AdvertiserLinksResponse listDisplayVideo360AdvertiserLinks(ListDisplayVideo360AdvertiserLinksRequest request)
Lists all DisplayVideo360AdvertiserLinks on a property.
Parameter
Returns
listFirebaseLinks(ListFirebaseLinksRequest request)
public ListFirebaseLinksResponse listFirebaseLinks(ListFirebaseLinksRequest request)
Lists FirebaseLinks on a property.
Properties can have at most one FirebaseLink.
Parameter
Returns
listGoogleAdsLinks(ListGoogleAdsLinksRequest request)
public ListGoogleAdsLinksResponse listGoogleAdsLinks(ListGoogleAdsLinksRequest request)
Lists GoogleAdsLinks on a property.
Parameter
Returns
listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest request)
public ListMeasurementProtocolSecretsResponse listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest request)
Returns child MeasurementProtocolSecrets under the specified parent
Property.
Parameter
Returns
listProperties(ListPropertiesRequest request)
public ListPropertiesResponse listProperties(ListPropertiesRequest request)
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.
Parameter
Returns
listUserLinks(ListUserLinksRequest request)
public ListUserLinksResponse listUserLinks(ListUserLinksRequest request)
Lists all user links on an account or property.
Parameter
Returns
provisionAccountTicket(ProvisionAccountTicketRequest request)
public ProvisionAccountTicketResponse provisionAccountTicket(ProvisionAccountTicketRequest request)
Requests a ticket for creating an account.
Parameter
Returns
runAccessReport(RunAccessReportRequest request)
public RunAccessReportResponse runAccessReport(RunAccessReportRequest request)
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. The property must be
in Google Analytics 360. 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.
Parameter
Returns
searchChangeHistoryEvents(SearchChangeHistoryEventsRequest request)
public SearchChangeHistoryEventsResponse searchChangeHistoryEvents(SearchChangeHistoryEventsRequest request)
Searches through all changes to an account or its children given the
specified set of filters.
Parameter
Returns
updateAccount(UpdateAccountRequest request)
public Account updateAccount(UpdateAccountRequest request)
Parameter
Returns
updateAttributionSettings(UpdateAttributionSettingsRequest request)
public AttributionSettings updateAttributionSettings(UpdateAttributionSettingsRequest request)
Updates attribution settings on a property.
Parameter
Returns
updateAudience(UpdateAudienceRequest request)
public Audience updateAudience(UpdateAudienceRequest request)
Updates an Audience on a property.
Parameter
Returns
updateCustomDimension(UpdateCustomDimensionRequest request)
public CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request)
Updates a CustomDimension on a property.
Parameter
Returns
updateCustomMetric(UpdateCustomMetricRequest request)
public CustomMetric updateCustomMetric(UpdateCustomMetricRequest request)
Updates a CustomMetric on a property.
Parameter
Returns
updateDataRetentionSettings(UpdateDataRetentionSettingsRequest request)
public DataRetentionSettings updateDataRetentionSettings(UpdateDataRetentionSettingsRequest request)
Updates the singleton data retention settings for this property.
Parameter
Returns
updateDataStream(UpdateDataStreamRequest request)
public DataStream updateDataStream(UpdateDataStreamRequest request)
Updates a DataStream on a property.
Parameter
Returns
updateDisplayVideo360AdvertiserLink(UpdateDisplayVideo360AdvertiserLinkRequest request)
public DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(UpdateDisplayVideo360AdvertiserLinkRequest request)
Updates a DisplayVideo360AdvertiserLink on a property.
Parameter
Returns
updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request)
public GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request)
Updates a GoogleAdsLink on a property
Parameter
Returns
updateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest request)
public GoogleSignalsSettings updateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest request)
Updates Google Signals settings for a property.
Parameter
Returns
updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest request)
public MeasurementProtocolSecret updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest request)
Updates a measurement protocol secret.
Parameter
Returns
updateProperty(UpdatePropertyRequest request)
public Property updateProperty(UpdatePropertyRequest request)
Parameter
Returns
updateUserLink(UpdateUserLinkRequest request)
public UserLink updateUserLink(UpdateUserLinkRequest request)
Updates a user link on an account or property.
Parameter
Returns