Class AnalyticsAdminServiceClient (0.24.0)

public class AnalyticsAdminServiceClient implements BackgroundResource

Service Description: Service Interface for the Analytics Admin API (GA4).

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccountName name = AccountName.of("[ACCOUNT]");
   Account response = analyticsAdminServiceClient.getAccount(name);
 }
 

Note: close() needs to be called on the AnalyticsAdminServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of AnalyticsAdminServiceSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
     AnalyticsAdminServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
     AnalyticsAdminServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
 

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
     AnalyticsAdminServiceSettings.newHttpJsonBuilder().build();
 AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > AnalyticsAdminServiceClient

Implements

BackgroundResource

Static Methods

create()

public static final AnalyticsAdminServiceClient create()

Constructs an instance of AnalyticsAdminServiceClient with default settings.

Returns
TypeDescription
AnalyticsAdminServiceClient
Exceptions
TypeDescription
IOException

create(AnalyticsAdminServiceSettings settings)

public static final AnalyticsAdminServiceClient create(AnalyticsAdminServiceSettings settings)

Constructs an instance of AnalyticsAdminServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
NameDescription
settingsAnalyticsAdminServiceSettings
Returns
TypeDescription
AnalyticsAdminServiceClient
Exceptions
TypeDescription
IOException

create(AnalyticsAdminServiceStub stub)

public static final AnalyticsAdminServiceClient create(AnalyticsAdminServiceStub stub)

Constructs an instance of AnalyticsAdminServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(AnalyticsAdminServiceSettings).

Parameter
NameDescription
stubAnalyticsAdminServiceStub
Returns
TypeDescription
AnalyticsAdminServiceClient

Constructors

AnalyticsAdminServiceClient(AnalyticsAdminServiceSettings settings)

protected AnalyticsAdminServiceClient(AnalyticsAdminServiceSettings settings)

Constructs an instance of AnalyticsAdminServiceClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameter
NameDescription
settingsAnalyticsAdminServiceSettings

AnalyticsAdminServiceClient(AnalyticsAdminServiceStub stub)

protected AnalyticsAdminServiceClient(AnalyticsAdminServiceStub stub)
Parameter
NameDescription
stubAnalyticsAdminServiceStub

Methods

acknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest request)

public final 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 through this API) before MeasurementProtocolSecret resources may be created.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AcknowledgeUserDataCollectionRequest request =
       AcknowledgeUserDataCollectionRequest.newBuilder()
           .setProperty(PropertyName.of("[PROPERTY]").toString())
           .setAcknowledgement("acknowledgement1769490938")
           .build();
   AcknowledgeUserDataCollectionResponse response =
       analyticsAdminServiceClient.acknowledgeUserDataCollection(request);
 }
 
Parameter
NameDescription
requestAcknowledgeUserDataCollectionRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AcknowledgeUserDataCollectionResponse

acknowledgeUserDataCollectionCallable()

public final UnaryCallable<AcknowledgeUserDataCollectionRequest,AcknowledgeUserDataCollectionResponse> acknowledgeUserDataCollectionCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AcknowledgeUserDataCollectionRequest request =
       AcknowledgeUserDataCollectionRequest.newBuilder()
           .setProperty(PropertyName.of("[PROPERTY]").toString())
           .setAcknowledgement("acknowledgement1769490938")
           .build();
   ApiFuture<AcknowledgeUserDataCollectionResponse> future =
       analyticsAdminServiceClient.acknowledgeUserDataCollectionCallable().futureCall(request);
   // Do something.
   AcknowledgeUserDataCollectionResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<AcknowledgeUserDataCollectionRequest,AcknowledgeUserDataCollectionResponse>

approveDisplayVideo360AdvertiserLinkProposal(ApproveDisplayVideo360AdvertiserLinkProposalRequest request)

public final ApproveDisplayVideo360AdvertiserLinkProposalResponse approveDisplayVideo360AdvertiserLinkProposal(ApproveDisplayVideo360AdvertiserLinkProposalRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
       ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkProposalName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
                   .toString())
           .build();
   ApproveDisplayVideo360AdvertiserLinkProposalResponse response =
       analyticsAdminServiceClient.approveDisplayVideo360AdvertiserLinkProposal(request);
 }
 
Parameter
NameDescription
requestApproveDisplayVideo360AdvertiserLinkProposalRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
ApproveDisplayVideo360AdvertiserLinkProposalResponse

approveDisplayVideo360AdvertiserLinkProposalCallable()

public final UnaryCallable<ApproveDisplayVideo360AdvertiserLinkProposalRequest,ApproveDisplayVideo360AdvertiserLinkProposalResponse> approveDisplayVideo360AdvertiserLinkProposalCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
       ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkProposalName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
                   .toString())
           .build();
   ApiFuture<ApproveDisplayVideo360AdvertiserLinkProposalResponse> future =
       analyticsAdminServiceClient
           .approveDisplayVideo360AdvertiserLinkProposalCallable()
           .futureCall(request);
   // Do something.
   ApproveDisplayVideo360AdvertiserLinkProposalResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<ApproveDisplayVideo360AdvertiserLinkProposalRequest,ApproveDisplayVideo360AdvertiserLinkProposalResponse>

archiveAudience(ArchiveAudienceRequest request)

public final void archiveAudience(ArchiveAudienceRequest request)

Archives an Audience on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ArchiveAudienceRequest request =
       ArchiveAudienceRequest.newBuilder()
           .setName(PropertyName.of("[PROPERTY]").toString())
           .build();
   analyticsAdminServiceClient.archiveAudience(request);
 }
 
Parameter
NameDescription
requestArchiveAudienceRequest

The request object containing all of the parameters for the API call.

archiveAudienceCallable()

public final UnaryCallable<ArchiveAudienceRequest,Empty> archiveAudienceCallable()

Archives an Audience on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ArchiveAudienceRequest request =
       ArchiveAudienceRequest.newBuilder()
           .setName(PropertyName.of("[PROPERTY]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.archiveAudienceCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<ArchiveAudienceRequest,Empty>

archiveCustomDimension(ArchiveCustomDimensionRequest request)

public final void archiveCustomDimension(ArchiveCustomDimensionRequest request)

Archives a CustomDimension on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ArchiveCustomDimensionRequest request =
       ArchiveCustomDimensionRequest.newBuilder()
           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
           .build();
   analyticsAdminServiceClient.archiveCustomDimension(request);
 }
 
Parameter
NameDescription
requestArchiveCustomDimensionRequest

The request object containing all of the parameters for the API call.

archiveCustomDimension(CustomDimensionName name)

public final void archiveCustomDimension(CustomDimensionName name)

Archives a CustomDimension on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]");
   analyticsAdminServiceClient.archiveCustomDimension(name);
 }
 
Parameter
NameDescription
nameCustomDimensionName

Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678

archiveCustomDimension(String name)

public final void archiveCustomDimension(String name)

Archives a CustomDimension on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString();
   analyticsAdminServiceClient.archiveCustomDimension(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678

archiveCustomDimensionCallable()

public final UnaryCallable<ArchiveCustomDimensionRequest,Empty> archiveCustomDimensionCallable()

Archives a CustomDimension on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ArchiveCustomDimensionRequest request =
       ArchiveCustomDimensionRequest.newBuilder()
           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.archiveCustomDimensionCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<ArchiveCustomDimensionRequest,Empty>

archiveCustomMetric(ArchiveCustomMetricRequest request)

public final void archiveCustomMetric(ArchiveCustomMetricRequest request)

Archives a CustomMetric on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ArchiveCustomMetricRequest request =
       ArchiveCustomMetricRequest.newBuilder()
           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
           .build();
   analyticsAdminServiceClient.archiveCustomMetric(request);
 }
 
Parameter
NameDescription
requestArchiveCustomMetricRequest

The request object containing all of the parameters for the API call.

archiveCustomMetric(CustomMetricName name)

public final void archiveCustomMetric(CustomMetricName name)

Archives a CustomMetric on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]");
   analyticsAdminServiceClient.archiveCustomMetric(name);
 }
 
Parameter
NameDescription
nameCustomMetricName

Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678

archiveCustomMetric(String name)

public final void archiveCustomMetric(String name)

Archives a CustomMetric on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString();
   analyticsAdminServiceClient.archiveCustomMetric(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678

archiveCustomMetricCallable()

public final UnaryCallable<ArchiveCustomMetricRequest,Empty> archiveCustomMetricCallable()

Archives a CustomMetric on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ArchiveCustomMetricRequest request =
       ArchiveCustomMetricRequest.newBuilder()
           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.archiveCustomMetricCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<ArchiveCustomMetricRequest,Empty>
public final AnalyticsAdminServiceClient.AuditUserLinksPagedResponse 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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AuditUserLinksRequest request =
       AuditUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (AuditUserLink element :
       analyticsAdminServiceClient.auditUserLinks(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestAuditUserLinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.AuditUserLinksPagedResponse

auditUserLinksCallable()

public final UnaryCallable<AuditUserLinksRequest,AuditUserLinksResponse> auditUserLinksCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AuditUserLinksRequest request =
       AuditUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     AuditUserLinksResponse response =
         analyticsAdminServiceClient.auditUserLinksCallable().call(request);
     for (AuditUserLink element : response.getUserLinksList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<AuditUserLinksRequest,AuditUserLinksResponse>

auditUserLinksPagedCallable()

public final UnaryCallable<AuditUserLinksRequest,AnalyticsAdminServiceClient.AuditUserLinksPagedResponse> auditUserLinksPagedCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AuditUserLinksRequest request =
       AuditUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<AuditUserLink> future =
       analyticsAdminServiceClient.auditUserLinksPagedCallable().futureCall(request);
   // Do something.
   for (AuditUserLink element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<AuditUserLinksRequest,AuditUserLinksPagedResponse>

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchCreateAccessBindings(BatchCreateAccessBindingsRequest request)

public final BatchCreateAccessBindingsResponse batchCreateAccessBindings(BatchCreateAccessBindingsRequest request)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchCreateAccessBindingsRequest request =
       BatchCreateAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<CreateAccessBindingRequest>())
           .build();
   BatchCreateAccessBindingsResponse response =
       analyticsAdminServiceClient.batchCreateAccessBindings(request);
 }
 
Parameter
NameDescription
requestBatchCreateAccessBindingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
BatchCreateAccessBindingsResponse

batchCreateAccessBindingsCallable()

public final UnaryCallable<BatchCreateAccessBindingsRequest,BatchCreateAccessBindingsResponse> batchCreateAccessBindingsCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchCreateAccessBindingsRequest request =
       BatchCreateAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<CreateAccessBindingRequest>())
           .build();
   ApiFuture<BatchCreateAccessBindingsResponse> future =
       analyticsAdminServiceClient.batchCreateAccessBindingsCallable().futureCall(request);
   // Do something.
   BatchCreateAccessBindingsResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<BatchCreateAccessBindingsRequest,BatchCreateAccessBindingsResponse>
public final 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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchCreateUserLinksRequest request =
       BatchCreateUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setNotifyNewUsers(true)
           .addAllRequests(new ArrayList<CreateUserLinkRequest>())
           .build();
   BatchCreateUserLinksResponse response =
       analyticsAdminServiceClient.batchCreateUserLinks(request);
 }
 
Parameter
NameDescription
requestBatchCreateUserLinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
BatchCreateUserLinksResponse

batchCreateUserLinksCallable()

public final UnaryCallable<BatchCreateUserLinksRequest,BatchCreateUserLinksResponse> batchCreateUserLinksCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchCreateUserLinksRequest request =
       BatchCreateUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setNotifyNewUsers(true)
           .addAllRequests(new ArrayList<CreateUserLinkRequest>())
           .build();
   ApiFuture<BatchCreateUserLinksResponse> future =
       analyticsAdminServiceClient.batchCreateUserLinksCallable().futureCall(request);
   // Do something.
   BatchCreateUserLinksResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<BatchCreateUserLinksRequest,BatchCreateUserLinksResponse>

batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest request)

public final void batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchDeleteAccessBindingsRequest request =
       BatchDeleteAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<DeleteAccessBindingRequest>())
           .build();
   analyticsAdminServiceClient.batchDeleteAccessBindings(request);
 }
 
Parameter
NameDescription
requestBatchDeleteAccessBindingsRequest

The request object containing all of the parameters for the API call.

batchDeleteAccessBindingsCallable()

public final UnaryCallable<BatchDeleteAccessBindingsRequest,Empty> batchDeleteAccessBindingsCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchDeleteAccessBindingsRequest request =
       BatchDeleteAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<DeleteAccessBindingRequest>())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.batchDeleteAccessBindingsCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<BatchDeleteAccessBindingsRequest,Empty>
public final void batchDeleteUserLinks(BatchDeleteUserLinksRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchDeleteUserLinksRequest request =
       BatchDeleteUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<DeleteUserLinkRequest>())
           .build();
   analyticsAdminServiceClient.batchDeleteUserLinks(request);
 }
 
Parameter
NameDescription
requestBatchDeleteUserLinksRequest

The request object containing all of the parameters for the API call.

batchDeleteUserLinksCallable()

public final UnaryCallable<BatchDeleteUserLinksRequest,Empty> batchDeleteUserLinksCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchDeleteUserLinksRequest request =
       BatchDeleteUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<DeleteUserLinkRequest>())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.batchDeleteUserLinksCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<BatchDeleteUserLinksRequest,Empty>

batchGetAccessBindings(BatchGetAccessBindingsRequest request)

public final BatchGetAccessBindingsResponse batchGetAccessBindings(BatchGetAccessBindingsRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchGetAccessBindingsRequest request =
       BatchGetAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchGetAccessBindingsResponse response =
       analyticsAdminServiceClient.batchGetAccessBindings(request);
 }
 
Parameter
NameDescription
requestBatchGetAccessBindingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
BatchGetAccessBindingsResponse

batchGetAccessBindingsCallable()

public final UnaryCallable<BatchGetAccessBindingsRequest,BatchGetAccessBindingsResponse> batchGetAccessBindingsCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchGetAccessBindingsRequest request =
       BatchGetAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchGetAccessBindingsResponse> future =
       analyticsAdminServiceClient.batchGetAccessBindingsCallable().futureCall(request);
   // Do something.
   BatchGetAccessBindingsResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<BatchGetAccessBindingsRequest,BatchGetAccessBindingsResponse>
public final BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchGetUserLinksRequest request =
       BatchGetUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchGetUserLinksResponse response = analyticsAdminServiceClient.batchGetUserLinks(request);
 }
 
Parameter
NameDescription
requestBatchGetUserLinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
BatchGetUserLinksResponse

batchGetUserLinksCallable()

public final UnaryCallable<BatchGetUserLinksRequest,BatchGetUserLinksResponse> batchGetUserLinksCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchGetUserLinksRequest request =
       BatchGetUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchGetUserLinksResponse> future =
       analyticsAdminServiceClient.batchGetUserLinksCallable().futureCall(request);
   // Do something.
   BatchGetUserLinksResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<BatchGetUserLinksRequest,BatchGetUserLinksResponse>

batchUpdateAccessBindings(BatchUpdateAccessBindingsRequest request)

public final BatchUpdateAccessBindingsResponse batchUpdateAccessBindings(BatchUpdateAccessBindingsRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchUpdateAccessBindingsRequest request =
       BatchUpdateAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<UpdateAccessBindingRequest>())
           .build();
   BatchUpdateAccessBindingsResponse response =
       analyticsAdminServiceClient.batchUpdateAccessBindings(request);
 }
 
Parameter
NameDescription
requestBatchUpdateAccessBindingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
BatchUpdateAccessBindingsResponse

batchUpdateAccessBindingsCallable()

public final UnaryCallable<BatchUpdateAccessBindingsRequest,BatchUpdateAccessBindingsResponse> batchUpdateAccessBindingsCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchUpdateAccessBindingsRequest request =
       BatchUpdateAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<UpdateAccessBindingRequest>())
           .build();
   ApiFuture<BatchUpdateAccessBindingsResponse> future =
       analyticsAdminServiceClient.batchUpdateAccessBindingsCallable().futureCall(request);
   // Do something.
   BatchUpdateAccessBindingsResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<BatchUpdateAccessBindingsRequest,BatchUpdateAccessBindingsResponse>
public final BatchUpdateUserLinksResponse batchUpdateUserLinks(BatchUpdateUserLinksRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchUpdateUserLinksRequest request =
       BatchUpdateUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<UpdateUserLinkRequest>())
           .build();
   BatchUpdateUserLinksResponse response =
       analyticsAdminServiceClient.batchUpdateUserLinks(request);
 }
 
Parameter
NameDescription
requestBatchUpdateUserLinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
BatchUpdateUserLinksResponse

batchUpdateUserLinksCallable()

public final UnaryCallable<BatchUpdateUserLinksRequest,BatchUpdateUserLinksResponse> batchUpdateUserLinksCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BatchUpdateUserLinksRequest request =
       BatchUpdateUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .addAllRequests(new ArrayList<UpdateUserLinkRequest>())
           .build();
   ApiFuture<BatchUpdateUserLinksResponse> future =
       analyticsAdminServiceClient.batchUpdateUserLinksCallable().futureCall(request);
   // Do something.
   BatchUpdateUserLinksResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<BatchUpdateUserLinksRequest,BatchUpdateUserLinksResponse>

cancelDisplayVideo360AdvertiserLinkProposal(CancelDisplayVideo360AdvertiserLinkProposalRequest request)

public final 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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CancelDisplayVideo360AdvertiserLinkProposalRequest request =
       CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkProposalName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
                   .toString())
           .build();
   DisplayVideo360AdvertiserLinkProposal response =
       analyticsAdminServiceClient.cancelDisplayVideo360AdvertiserLinkProposal(request);
 }
 
Parameter
NameDescription
requestCancelDisplayVideo360AdvertiserLinkProposalRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DisplayVideo360AdvertiserLinkProposal

cancelDisplayVideo360AdvertiserLinkProposalCallable()

public final UnaryCallable<CancelDisplayVideo360AdvertiserLinkProposalRequest,DisplayVideo360AdvertiserLinkProposal> cancelDisplayVideo360AdvertiserLinkProposalCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CancelDisplayVideo360AdvertiserLinkProposalRequest request =
       CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkProposalName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
                   .toString())
           .build();
   ApiFuture<DisplayVideo360AdvertiserLinkProposal> future =
       analyticsAdminServiceClient
           .cancelDisplayVideo360AdvertiserLinkProposalCallable()
           .futureCall(request);
   // Do something.
   DisplayVideo360AdvertiserLinkProposal response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CancelDisplayVideo360AdvertiserLinkProposalRequest,DisplayVideo360AdvertiserLinkProposal>

close()

public final void close()

createAccessBinding(AccountName parent, AccessBinding accessBinding)

public final AccessBinding createAccessBinding(AccountName parent, AccessBinding accessBinding)

Creates an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccountName parent = AccountName.of("[ACCOUNT]");
   AccessBinding accessBinding = AccessBinding.newBuilder().build();
   AccessBinding response =
       analyticsAdminServiceClient.createAccessBinding(parent, accessBinding);
 }
 
Parameters
NameDescription
parentAccountName

Required. Formats: - accounts/{account} - properties/{property}

accessBindingAccessBinding

Required. The access binding to create.

Returns
TypeDescription
AccessBinding

createAccessBinding(CreateAccessBindingRequest request)

public final AccessBinding createAccessBinding(CreateAccessBindingRequest request)

Creates an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateAccessBindingRequest request =
       CreateAccessBindingRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setAccessBinding(AccessBinding.newBuilder().build())
           .build();
   AccessBinding response = analyticsAdminServiceClient.createAccessBinding(request);
 }
 
Parameter
NameDescription
requestCreateAccessBindingRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AccessBinding

createAccessBinding(PropertyName parent, AccessBinding accessBinding)

public final AccessBinding createAccessBinding(PropertyName parent, AccessBinding accessBinding)

Creates an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   AccessBinding accessBinding = AccessBinding.newBuilder().build();
   AccessBinding response =
       analyticsAdminServiceClient.createAccessBinding(parent, accessBinding);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Formats: - accounts/{account} - properties/{property}

accessBindingAccessBinding

Required. The access binding to create.

Returns
TypeDescription
AccessBinding

createAccessBinding(String parent, AccessBinding accessBinding)

public final AccessBinding createAccessBinding(String parent, AccessBinding accessBinding)

Creates an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = AccountName.of("[ACCOUNT]").toString();
   AccessBinding accessBinding = AccessBinding.newBuilder().build();
   AccessBinding response =
       analyticsAdminServiceClient.createAccessBinding(parent, accessBinding);
 }
 
Parameters
NameDescription
parentString

Required. Formats: - accounts/{account} - properties/{property}

accessBindingAccessBinding

Required. The access binding to create.

Returns
TypeDescription
AccessBinding

createAccessBindingCallable()

public final UnaryCallable<CreateAccessBindingRequest,AccessBinding> createAccessBindingCallable()

Creates an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateAccessBindingRequest request =
       CreateAccessBindingRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setAccessBinding(AccessBinding.newBuilder().build())
           .build();
   ApiFuture<AccessBinding> future =
       analyticsAdminServiceClient.createAccessBindingCallable().futureCall(request);
   // Do something.
   AccessBinding response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateAccessBindingRequest,AccessBinding>

createAudience(CreateAudienceRequest request)

public final Audience createAudience(CreateAudienceRequest request)

Creates an Audience.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateAudienceRequest request =
       CreateAudienceRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setAudience(Audience.newBuilder().build())
           .build();
   Audience response = analyticsAdminServiceClient.createAudience(request);
 }
 
Parameter
NameDescription
requestCreateAudienceRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Audience

createAudience(PropertyName parent, Audience audience)

public final Audience createAudience(PropertyName parent, Audience audience)

Creates an Audience.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   Audience audience = Audience.newBuilder().build();
   Audience response = analyticsAdminServiceClient.createAudience(parent, audience);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: properties/1234

audienceAudience

Required. The audience to create.

Returns
TypeDescription
Audience

createAudience(String parent, Audience audience)

public final Audience createAudience(String parent, Audience audience)

Creates an Audience.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   Audience audience = Audience.newBuilder().build();
   Audience response = analyticsAdminServiceClient.createAudience(parent, audience);
 }
 
Parameters
NameDescription
parentString

Required. Example format: properties/1234

audienceAudience

Required. The audience to create.

Returns
TypeDescription
Audience

createAudienceCallable()

public final UnaryCallable<CreateAudienceRequest,Audience> createAudienceCallable()

Creates an Audience.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateAudienceRequest request =
       CreateAudienceRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setAudience(Audience.newBuilder().build())
           .build();
   ApiFuture<Audience> future =
       analyticsAdminServiceClient.createAudienceCallable().futureCall(request);
   // Do something.
   Audience response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateAudienceRequest,Audience>

createConnectedSiteTag(CreateConnectedSiteTagRequest request)

public final CreateConnectedSiteTagResponse createConnectedSiteTag(CreateConnectedSiteTagRequest request)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateConnectedSiteTagRequest request =
       CreateConnectedSiteTagRequest.newBuilder()
           .setProperty("property-993141291")
           .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build())
           .build();
   CreateConnectedSiteTagResponse response =
       analyticsAdminServiceClient.createConnectedSiteTag(request);
 }
 
Parameter
NameDescription
requestCreateConnectedSiteTagRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
CreateConnectedSiteTagResponse

createConnectedSiteTagCallable()

public final UnaryCallable<CreateConnectedSiteTagRequest,CreateConnectedSiteTagResponse> createConnectedSiteTagCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateConnectedSiteTagRequest request =
       CreateConnectedSiteTagRequest.newBuilder()
           .setProperty("property-993141291")
           .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build())
           .build();
   ApiFuture<CreateConnectedSiteTagResponse> future =
       analyticsAdminServiceClient.createConnectedSiteTagCallable().futureCall(request);
   // Do something.
   CreateConnectedSiteTagResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateConnectedSiteTagRequest,CreateConnectedSiteTagResponse>

createConversionEvent(CreateConversionEventRequest request)

public final ConversionEvent createConversionEvent(CreateConversionEventRequest request)

Creates a conversion event with the specified attributes.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateConversionEventRequest request =
       CreateConversionEventRequest.newBuilder()
           .setConversionEvent(ConversionEvent.newBuilder().build())
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .build();
   ConversionEvent response = analyticsAdminServiceClient.createConversionEvent(request);
 }
 
Parameter
NameDescription
requestCreateConversionEventRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
ConversionEvent

createConversionEvent(PropertyName parent, ConversionEvent conversionEvent)

public final ConversionEvent createConversionEvent(PropertyName parent, ConversionEvent conversionEvent)

Creates a conversion event with the specified attributes.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
   ConversionEvent response =
       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
 }
 
Parameters
NameDescription
parentPropertyName

Required. The resource name of the parent property where this conversion event will be created. Format: properties/123

conversionEventConversionEvent

Required. The conversion event to create.

Returns
TypeDescription
ConversionEvent

createConversionEvent(String parent, ConversionEvent conversionEvent)

public final ConversionEvent createConversionEvent(String parent, ConversionEvent conversionEvent)

Creates a conversion event with the specified attributes.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
   ConversionEvent response =
       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
 }
 
Parameters
NameDescription
parentString

Required. The resource name of the parent property where this conversion event will be created. Format: properties/123

conversionEventConversionEvent

Required. The conversion event to create.

Returns
TypeDescription
ConversionEvent

createConversionEventCallable()

public final UnaryCallable<CreateConversionEventRequest,ConversionEvent> createConversionEventCallable()

Creates a conversion event with the specified attributes.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateConversionEventRequest request =
       CreateConversionEventRequest.newBuilder()
           .setConversionEvent(ConversionEvent.newBuilder().build())
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .build();
   ApiFuture<ConversionEvent> future =
       analyticsAdminServiceClient.createConversionEventCallable().futureCall(request);
   // Do something.
   ConversionEvent response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateConversionEventRequest,ConversionEvent>

createCustomDimension(CreateCustomDimensionRequest request)

public final CustomDimension createCustomDimension(CreateCustomDimensionRequest request)

Creates a CustomDimension.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateCustomDimensionRequest request =
       CreateCustomDimensionRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setCustomDimension(CustomDimension.newBuilder().build())
           .build();
   CustomDimension response = analyticsAdminServiceClient.createCustomDimension(request);
 }
 
Parameter
NameDescription
requestCreateCustomDimensionRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
CustomDimension

createCustomDimension(PropertyName parent, CustomDimension customDimension)

public final CustomDimension createCustomDimension(PropertyName parent, CustomDimension customDimension)

Creates a CustomDimension.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   CustomDimension customDimension = CustomDimension.newBuilder().build();
   CustomDimension response =
       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: properties/1234

customDimensionCustomDimension

Required. The CustomDimension to create.

Returns
TypeDescription
CustomDimension

createCustomDimension(String parent, CustomDimension customDimension)

public final CustomDimension createCustomDimension(String parent, CustomDimension customDimension)

Creates a CustomDimension.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   CustomDimension customDimension = CustomDimension.newBuilder().build();
   CustomDimension response =
       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
 }
 
Parameters
NameDescription
parentString

Required. Example format: properties/1234

customDimensionCustomDimension

Required. The CustomDimension to create.

Returns
TypeDescription
CustomDimension

createCustomDimensionCallable()

public final UnaryCallable<CreateCustomDimensionRequest,CustomDimension> createCustomDimensionCallable()

Creates a CustomDimension.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateCustomDimensionRequest request =
       CreateCustomDimensionRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setCustomDimension(CustomDimension.newBuilder().build())
           .build();
   ApiFuture<CustomDimension> future =
       analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
   // Do something.
   CustomDimension response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateCustomDimensionRequest,CustomDimension>

createCustomMetric(CreateCustomMetricRequest request)

public final CustomMetric createCustomMetric(CreateCustomMetricRequest request)

Creates a CustomMetric.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateCustomMetricRequest request =
       CreateCustomMetricRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setCustomMetric(CustomMetric.newBuilder().build())
           .build();
   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(request);
 }
 
Parameter
NameDescription
requestCreateCustomMetricRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
CustomMetric

createCustomMetric(PropertyName parent, CustomMetric customMetric)

public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric customMetric)

Creates a CustomMetric.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   CustomMetric customMetric = CustomMetric.newBuilder().build();
   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: properties/1234

customMetricCustomMetric

Required. The CustomMetric to create.

Returns
TypeDescription
CustomMetric

createCustomMetric(String parent, CustomMetric customMetric)

public final CustomMetric createCustomMetric(String parent, CustomMetric customMetric)

Creates a CustomMetric.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   CustomMetric customMetric = CustomMetric.newBuilder().build();
   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
 }
 
Parameters
NameDescription
parentString

Required. Example format: properties/1234

customMetricCustomMetric

Required. The CustomMetric to create.

Returns
TypeDescription
CustomMetric

createCustomMetricCallable()

public final UnaryCallable<CreateCustomMetricRequest,CustomMetric> createCustomMetricCallable()

Creates a CustomMetric.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateCustomMetricRequest request =
       CreateCustomMetricRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setCustomMetric(CustomMetric.newBuilder().build())
           .build();
   ApiFuture<CustomMetric> future =
       analyticsAdminServiceClient.createCustomMetricCallable().futureCall(request);
   // Do something.
   CustomMetric response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateCustomMetricRequest,CustomMetric>

createDataStream(CreateDataStreamRequest request)

public final DataStream createDataStream(CreateDataStreamRequest request)

Creates a DataStream.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateDataStreamRequest request =
       CreateDataStreamRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setDataStream(DataStream.newBuilder().build())
           .build();
   DataStream response = analyticsAdminServiceClient.createDataStream(request);
 }
 
Parameter
NameDescription
requestCreateDataStreamRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataStream

createDataStream(PropertyName parent, DataStream dataStream)

public final DataStream createDataStream(PropertyName parent, DataStream dataStream)

Creates a DataStream.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   DataStream dataStream = DataStream.newBuilder().build();
   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: properties/1234

dataStreamDataStream

Required. The DataStream to create.

Returns
TypeDescription
DataStream

createDataStream(String parent, DataStream dataStream)

public final DataStream createDataStream(String parent, DataStream dataStream)

Creates a DataStream.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   DataStream dataStream = DataStream.newBuilder().build();
   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
 }
 
Parameters
NameDescription
parentString

Required. Example format: properties/1234

dataStreamDataStream

Required. The DataStream to create.

Returns
TypeDescription
DataStream

createDataStreamCallable()

public final UnaryCallable<CreateDataStreamRequest,DataStream> createDataStreamCallable()

Creates a DataStream.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateDataStreamRequest request =
       CreateDataStreamRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setDataStream(DataStream.newBuilder().build())
           .build();
   ApiFuture<DataStream> future =
       analyticsAdminServiceClient.createDataStreamCallable().futureCall(request);
   // Do something.
   DataStream response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateDataStreamRequest,DataStream>
public final 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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateDisplayVideo360AdvertiserLinkRequest request =
       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
           .build();
   DisplayVideo360AdvertiserLink response =
       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(request);
 }
 
Parameter
NameDescription
requestCreateDisplayVideo360AdvertiserLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DisplayVideo360AdvertiserLink
public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
       DisplayVideo360AdvertiserLink.newBuilder().build();
   DisplayVideo360AdvertiserLink response =
       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(
           parent, displayVideo360AdvertiserLink);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: properties/1234

displayVideo360AdvertiserLinkDisplayVideo360AdvertiserLink

Required. The DisplayVideo360AdvertiserLink to create.

Returns
TypeDescription
DisplayVideo360AdvertiserLink
public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(String parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
       DisplayVideo360AdvertiserLink.newBuilder().build();
   DisplayVideo360AdvertiserLink response =
       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(
           parent, displayVideo360AdvertiserLink);
 }
 
Parameters
NameDescription
parentString

Required. Example format: properties/1234

displayVideo360AdvertiserLinkDisplayVideo360AdvertiserLink

Required. The DisplayVideo360AdvertiserLink to create.

Returns
TypeDescription
DisplayVideo360AdvertiserLink

createDisplayVideo360AdvertiserLinkCallable()

public final UnaryCallable<CreateDisplayVideo360AdvertiserLinkRequest,DisplayVideo360AdvertiserLink> createDisplayVideo360AdvertiserLinkCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateDisplayVideo360AdvertiserLinkRequest request =
       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
           .build();
   ApiFuture<DisplayVideo360AdvertiserLink> future =
       analyticsAdminServiceClient
           .createDisplayVideo360AdvertiserLinkCallable()
           .futureCall(request);
   // Do something.
   DisplayVideo360AdvertiserLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateDisplayVideo360AdvertiserLinkRequest,DisplayVideo360AdvertiserLink>

createDisplayVideo360AdvertiserLinkProposal(CreateDisplayVideo360AdvertiserLinkProposalRequest request)

public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(CreateDisplayVideo360AdvertiserLinkProposalRequest request)

Creates a DisplayVideo360AdvertiserLinkProposal.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setDisplayVideo360AdvertiserLinkProposal(
               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
           .build();
   DisplayVideo360AdvertiserLinkProposal response =
       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(request);
 }
 
Parameter
NameDescription
requestCreateDisplayVideo360AdvertiserLinkProposalRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DisplayVideo360AdvertiserLinkProposal

createDisplayVideo360AdvertiserLinkProposal(PropertyName parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal)

public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(PropertyName parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal)

Creates a DisplayVideo360AdvertiserLinkProposal.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
       DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
   DisplayVideo360AdvertiserLinkProposal response =
       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
           parent, displayVideo360AdvertiserLinkProposal);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: properties/1234

displayVideo360AdvertiserLinkProposalDisplayVideo360AdvertiserLinkProposal

Required. The DisplayVideo360AdvertiserLinkProposal to create.

Returns
TypeDescription
DisplayVideo360AdvertiserLinkProposal

createDisplayVideo360AdvertiserLinkProposal(String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal)

public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal)

Creates a DisplayVideo360AdvertiserLinkProposal.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
       DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
   DisplayVideo360AdvertiserLinkProposal response =
       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
           parent, displayVideo360AdvertiserLinkProposal);
 }
 
Parameters
NameDescription
parentString

Required. Example format: properties/1234

displayVideo360AdvertiserLinkProposalDisplayVideo360AdvertiserLinkProposal

Required. The DisplayVideo360AdvertiserLinkProposal to create.

Returns
TypeDescription
DisplayVideo360AdvertiserLinkProposal

createDisplayVideo360AdvertiserLinkProposalCallable()

public final UnaryCallable<CreateDisplayVideo360AdvertiserLinkProposalRequest,DisplayVideo360AdvertiserLinkProposal> createDisplayVideo360AdvertiserLinkProposalCallable()

Creates a DisplayVideo360AdvertiserLinkProposal.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setDisplayVideo360AdvertiserLinkProposal(
               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
           .build();
   ApiFuture<DisplayVideo360AdvertiserLinkProposal> future =
       analyticsAdminServiceClient
           .createDisplayVideo360AdvertiserLinkProposalCallable()
           .futureCall(request);
   // Do something.
   DisplayVideo360AdvertiserLinkProposal response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateDisplayVideo360AdvertiserLinkProposalRequest,DisplayVideo360AdvertiserLinkProposal>

createExpandedDataSet(CreateExpandedDataSetRequest request)

public final ExpandedDataSet createExpandedDataSet(CreateExpandedDataSetRequest request)

Creates a ExpandedDataSet.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateExpandedDataSetRequest request =
       CreateExpandedDataSetRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
           .build();
   ExpandedDataSet response = analyticsAdminServiceClient.createExpandedDataSet(request);
 }
 
Parameter
NameDescription
requestCreateExpandedDataSetRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
ExpandedDataSet

createExpandedDataSet(PropertyName parent, ExpandedDataSet expandedDataSet)

public final ExpandedDataSet createExpandedDataSet(PropertyName parent, ExpandedDataSet expandedDataSet)

Creates a ExpandedDataSet.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build();
   ExpandedDataSet response =
       analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: properties/1234

expandedDataSetExpandedDataSet

Required. The ExpandedDataSet to create.

Returns
TypeDescription
ExpandedDataSet

createExpandedDataSet(String parent, ExpandedDataSet expandedDataSet)

public final ExpandedDataSet createExpandedDataSet(String parent, ExpandedDataSet expandedDataSet)

Creates a ExpandedDataSet.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build();
   ExpandedDataSet response =
       analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet);
 }
 
Parameters
NameDescription
parentString

Required. Example format: properties/1234

expandedDataSetExpandedDataSet

Required. The ExpandedDataSet to create.

Returns
TypeDescription
ExpandedDataSet

createExpandedDataSetCallable()

public final UnaryCallable<CreateExpandedDataSetRequest,ExpandedDataSet> createExpandedDataSetCallable()

Creates a ExpandedDataSet.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateExpandedDataSetRequest request =
       CreateExpandedDataSetRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
           .build();
   ApiFuture<ExpandedDataSet> future =
       analyticsAdminServiceClient.createExpandedDataSetCallable().futureCall(request);
   // Do something.
   ExpandedDataSet response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateExpandedDataSetRequest,ExpandedDataSet>
public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request)

Creates a FirebaseLink.

Properties can have at most one FirebaseLink.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateFirebaseLinkRequest request =
       CreateFirebaseLinkRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setFirebaseLink(FirebaseLink.newBuilder().build())
           .build();
   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(request);
 }
 
Parameter
NameDescription
requestCreateFirebaseLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
FirebaseLink
public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink firebaseLink)

Creates a FirebaseLink.

Properties can have at most one FirebaseLink.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Format: properties/{property_id} Example: properties/1234

firebaseLinkFirebaseLink

Required. The Firebase link to create.

Returns
TypeDescription
FirebaseLink
public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebaseLink)

Creates a FirebaseLink.

Properties can have at most one FirebaseLink.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
 }
 
Parameters
NameDescription
parentString

Required. Format: properties/{property_id} Example: properties/1234

firebaseLinkFirebaseLink

Required. The Firebase link to create.

Returns
TypeDescription
FirebaseLink

createFirebaseLinkCallable()

public final UnaryCallable<CreateFirebaseLinkRequest,FirebaseLink> createFirebaseLinkCallable()

Creates a FirebaseLink.

Properties can have at most one FirebaseLink.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateFirebaseLinkRequest request =
       CreateFirebaseLinkRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setFirebaseLink(FirebaseLink.newBuilder().build())
           .build();
   ApiFuture<FirebaseLink> future =
       analyticsAdminServiceClient.createFirebaseLinkCallable().futureCall(request);
   // Do something.
   FirebaseLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateFirebaseLinkRequest,FirebaseLink>
public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request)

Creates a GoogleAdsLink.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateGoogleAdsLinkRequest request =
       CreateGoogleAdsLinkRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
           .build();
   GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(request);
 }
 
Parameter
NameDescription
requestCreateGoogleAdsLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
GoogleAdsLink
public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink)

Creates a GoogleAdsLink.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
   GoogleAdsLink response =
       analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: properties/1234

googleAdsLinkGoogleAdsLink

Required. The GoogleAdsLink to create.

Returns
TypeDescription
GoogleAdsLink
public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink googleAdsLink)

Creates a GoogleAdsLink.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
   GoogleAdsLink response =
       analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
 }
 
Parameters
NameDescription
parentString

Required. Example format: properties/1234

googleAdsLinkGoogleAdsLink

Required. The GoogleAdsLink to create.

Returns
TypeDescription
GoogleAdsLink

createGoogleAdsLinkCallable()

public final UnaryCallable<CreateGoogleAdsLinkRequest,GoogleAdsLink> createGoogleAdsLinkCallable()

Creates a GoogleAdsLink.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateGoogleAdsLinkRequest request =
       CreateGoogleAdsLinkRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
           .build();
   ApiFuture<GoogleAdsLink> future =
       analyticsAdminServiceClient.createGoogleAdsLinkCallable().futureCall(request);
   // Do something.
   GoogleAdsLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateGoogleAdsLinkRequest,GoogleAdsLink>

createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest request)

public final MeasurementProtocolSecret createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest request)

Creates a measurement protocol secret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateMeasurementProtocolSecretRequest request =
       CreateMeasurementProtocolSecretRequest.newBuilder()
           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
           .build();
   MeasurementProtocolSecret response =
       analyticsAdminServiceClient.createMeasurementProtocolSecret(request);
 }
 
Parameter
NameDescription
requestCreateMeasurementProtocolSecretRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
MeasurementProtocolSecret

createMeasurementProtocolSecret(DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret)

public final MeasurementProtocolSecret createMeasurementProtocolSecret(DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret)

Creates a measurement protocol secret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
   MeasurementProtocolSecret measurementProtocolSecret =
       MeasurementProtocolSecret.newBuilder().build();
   MeasurementProtocolSecret response =
       analyticsAdminServiceClient.createMeasurementProtocolSecret(
           parent, measurementProtocolSecret);
 }
 
Parameters
NameDescription
parentDataStreamName

Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}

measurementProtocolSecretMeasurementProtocolSecret

Required. The measurement protocol secret to create.

Returns
TypeDescription
MeasurementProtocolSecret

createMeasurementProtocolSecret(String parent, MeasurementProtocolSecret measurementProtocolSecret)

public final MeasurementProtocolSecret createMeasurementProtocolSecret(String parent, MeasurementProtocolSecret measurementProtocolSecret)

Creates a measurement protocol secret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
   MeasurementProtocolSecret measurementProtocolSecret =
       MeasurementProtocolSecret.newBuilder().build();
   MeasurementProtocolSecret response =
       analyticsAdminServiceClient.createMeasurementProtocolSecret(
           parent, measurementProtocolSecret);
 }
 
Parameters
NameDescription
parentString

Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}

measurementProtocolSecretMeasurementProtocolSecret

Required. The measurement protocol secret to create.

Returns
TypeDescription
MeasurementProtocolSecret

createMeasurementProtocolSecretCallable()

public final UnaryCallable<CreateMeasurementProtocolSecretRequest,MeasurementProtocolSecret> createMeasurementProtocolSecretCallable()

Creates a measurement protocol secret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateMeasurementProtocolSecretRequest request =
       CreateMeasurementProtocolSecretRequest.newBuilder()
           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
           .build();
   ApiFuture<MeasurementProtocolSecret> future =
       analyticsAdminServiceClient.createMeasurementProtocolSecretCallable().futureCall(request);
   // Do something.
   MeasurementProtocolSecret response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateMeasurementProtocolSecretRequest,MeasurementProtocolSecret>

createProperty(CreatePropertyRequest request)

public final Property createProperty(CreatePropertyRequest request)

Creates an "GA4" property with the specified location and attributes.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreatePropertyRequest request =
       CreatePropertyRequest.newBuilder().setProperty(Property.newBuilder().build()).build();
   Property response = analyticsAdminServiceClient.createProperty(request);
 }
 
Parameter
NameDescription
requestCreatePropertyRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Property

createProperty(Property property)

public final Property createProperty(Property property)

Creates an "GA4" property with the specified location and attributes.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   Property property = Property.newBuilder().build();
   Property response = analyticsAdminServiceClient.createProperty(property);
 }
 
Parameter
NameDescription
propertyProperty

Required. The property to create. Note: the supplied property must specify its parent.

Returns
TypeDescription
Property

createPropertyCallable()

public final UnaryCallable<CreatePropertyRequest,Property> createPropertyCallable()

Creates an "GA4" property with the specified location and attributes.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreatePropertyRequest request =
       CreatePropertyRequest.newBuilder().setProperty(Property.newBuilder().build()).build();
   ApiFuture<Property> future =
       analyticsAdminServiceClient.createPropertyCallable().futureCall(request);
   // Do something.
   Property response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreatePropertyRequest,Property>
public final SearchAds360Link createSearchAds360Link(CreateSearchAds360LinkRequest request)

Creates a SearchAds360Link.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateSearchAds360LinkRequest request =
       CreateSearchAds360LinkRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setSearchAds360Link(SearchAds360Link.newBuilder().build())
           .build();
   SearchAds360Link response = analyticsAdminServiceClient.createSearchAds360Link(request);
 }
 
Parameter
NameDescription
requestCreateSearchAds360LinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SearchAds360Link
public final SearchAds360Link createSearchAds360Link(PropertyName parent, SearchAds360Link searchAds360Link)

Creates a SearchAds360Link.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build();
   SearchAds360Link response =
       analyticsAdminServiceClient.createSearchAds360Link(parent, searchAds360Link);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: properties/1234

searchAds360LinkSearchAds360Link

Required. The SearchAds360Link to create.

Returns
TypeDescription
SearchAds360Link
public final SearchAds360Link createSearchAds360Link(String parent, SearchAds360Link searchAds360Link)

Creates a SearchAds360Link.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build();
   SearchAds360Link response =
       analyticsAdminServiceClient.createSearchAds360Link(parent, searchAds360Link);
 }
 
Parameters
NameDescription
parentString

Required. Example format: properties/1234

searchAds360LinkSearchAds360Link

Required. The SearchAds360Link to create.

Returns
TypeDescription
SearchAds360Link

createSearchAds360LinkCallable()

public final UnaryCallable<CreateSearchAds360LinkRequest,SearchAds360Link> createSearchAds360LinkCallable()

Creates a SearchAds360Link.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateSearchAds360LinkRequest request =
       CreateSearchAds360LinkRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setSearchAds360Link(SearchAds360Link.newBuilder().build())
           .build();
   ApiFuture<SearchAds360Link> future =
       analyticsAdminServiceClient.createSearchAds360LinkCallable().futureCall(request);
   // Do something.
   SearchAds360Link response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateSearchAds360LinkRequest,SearchAds360Link>
public final UserLink createUserLink(AccountName parent, UserLink userLink)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccountName parent = AccountName.of("[ACCOUNT]");
   UserLink userLink = UserLink.newBuilder().build();
   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
 }
 
Parameters
NameDescription
parentAccountName

Required. Example format: accounts/1234

userLinkUserLink

Required. The user link to create.

Returns
TypeDescription
UserLink
public final 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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateUserLinkRequest request =
       CreateUserLinkRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setNotifyNewUser(true)
           .setUserLink(UserLink.newBuilder().build())
           .build();
   UserLink response = analyticsAdminServiceClient.createUserLink(request);
 }
 
Parameter
NameDescription
requestCreateUserLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
UserLink
public final UserLink createUserLink(PropertyName parent, UserLink userLink)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   UserLink userLink = UserLink.newBuilder().build();
   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
 }
 
Parameters
NameDescription
parentPropertyName

Required. Example format: accounts/1234

userLinkUserLink

Required. The user link to create.

Returns
TypeDescription
UserLink
public final UserLink createUserLink(String parent, UserLink userLink)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = AccountName.of("[ACCOUNT]").toString();
   UserLink userLink = UserLink.newBuilder().build();
   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
 }
 
Parameters
NameDescription
parentString

Required. Example format: accounts/1234

userLinkUserLink

Required. The user link to create.

Returns
TypeDescription
UserLink

createUserLinkCallable()

public final UnaryCallable<CreateUserLinkRequest,UserLink> createUserLinkCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CreateUserLinkRequest request =
       CreateUserLinkRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setNotifyNewUser(true)
           .setUserLink(UserLink.newBuilder().build())
           .build();
   ApiFuture<UserLink> future =
       analyticsAdminServiceClient.createUserLinkCallable().futureCall(request);
   // Do something.
   UserLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateUserLinkRequest,UserLink>

deleteAccessBinding(AccessBindingName name)

public final void deleteAccessBinding(AccessBindingName name)

Deletes an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccessBindingName name =
       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]");
   analyticsAdminServiceClient.deleteAccessBinding(name);
 }
 
Parameter
NameDescription
nameAccessBindingName

Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}

deleteAccessBinding(DeleteAccessBindingRequest request)

public final void deleteAccessBinding(DeleteAccessBindingRequest request)

Deletes an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteAccessBindingRequest request =
       DeleteAccessBindingRequest.newBuilder()
           .setName(
               AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]")
                   .toString())
           .build();
   analyticsAdminServiceClient.deleteAccessBinding(request);
 }
 
Parameter
NameDescription
requestDeleteAccessBindingRequest

The request object containing all of the parameters for the API call.

deleteAccessBinding(String name)

public final void deleteAccessBinding(String name)

Deletes an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name =
       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString();
   analyticsAdminServiceClient.deleteAccessBinding(name);
 }
 
Parameter
NameDescription
nameString

Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}

deleteAccessBindingCallable()

public final UnaryCallable<DeleteAccessBindingRequest,Empty> deleteAccessBindingCallable()

Deletes an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteAccessBindingRequest request =
       DeleteAccessBindingRequest.newBuilder()
           .setName(
               AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]")
                   .toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteAccessBindingCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteAccessBindingRequest,Empty>

deleteAccount(AccountName name)

public final void deleteAccount(AccountName name)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccountName name = AccountName.of("[ACCOUNT]");
   analyticsAdminServiceClient.deleteAccount(name);
 }
 
Parameter
NameDescription
nameAccountName

Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100"

deleteAccount(DeleteAccountRequest request)

public final void 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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteAccountRequest request =
       DeleteAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
   analyticsAdminServiceClient.deleteAccount(request);
 }
 
Parameter
NameDescription
requestDeleteAccountRequest

The request object containing all of the parameters for the API call.

deleteAccount(String name)

public final void deleteAccount(String name)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = AccountName.of("[ACCOUNT]").toString();
   analyticsAdminServiceClient.deleteAccount(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100"

deleteAccountCallable()

public final UnaryCallable<DeleteAccountRequest,Empty> deleteAccountCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteAccountRequest request =
       DeleteAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteAccountCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteAccountRequest,Empty>

deleteConnectedSiteTag(DeleteConnectedSiteTagRequest request)

public final void deleteConnectedSiteTag(DeleteConnectedSiteTagRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteConnectedSiteTagRequest request =
       DeleteConnectedSiteTagRequest.newBuilder()
           .setProperty("property-993141291")
           .setTagId("tagId110119509")
           .build();
   analyticsAdminServiceClient.deleteConnectedSiteTag(request);
 }
 
Parameter
NameDescription
requestDeleteConnectedSiteTagRequest

The request object containing all of the parameters for the API call.

deleteConnectedSiteTagCallable()

public final UnaryCallable<DeleteConnectedSiteTagRequest,Empty> deleteConnectedSiteTagCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteConnectedSiteTagRequest request =
       DeleteConnectedSiteTagRequest.newBuilder()
           .setProperty("property-993141291")
           .setTagId("tagId110119509")
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteConnectedSiteTagCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteConnectedSiteTagRequest,Empty>

deleteConversionEvent(ConversionEventName name)

public final void deleteConversionEvent(ConversionEventName name)

Deletes a conversion event in a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
   analyticsAdminServiceClient.deleteConversionEvent(name);
 }
 
Parameter
NameDescription
nameConversionEventName

Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456"

deleteConversionEvent(DeleteConversionEventRequest request)

public final void deleteConversionEvent(DeleteConversionEventRequest request)

Deletes a conversion event in a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteConversionEventRequest request =
       DeleteConversionEventRequest.newBuilder()
           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
           .build();
   analyticsAdminServiceClient.deleteConversionEvent(request);
 }
 
Parameter
NameDescription
requestDeleteConversionEventRequest

The request object containing all of the parameters for the API call.

deleteConversionEvent(String name)

public final void deleteConversionEvent(String name)

Deletes a conversion event in a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
   analyticsAdminServiceClient.deleteConversionEvent(name);
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456"

deleteConversionEventCallable()

public final UnaryCallable<DeleteConversionEventRequest,Empty> deleteConversionEventCallable()

Deletes a conversion event in a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteConversionEventRequest request =
       DeleteConversionEventRequest.newBuilder()
           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteConversionEventCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteConversionEventRequest,Empty>

deleteDataStream(DataStreamName name)

public final void deleteDataStream(DataStreamName name)

Deletes a DataStream on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
   analyticsAdminServiceClient.deleteDataStream(name);
 }
 
Parameter
NameDescription
nameDataStreamName

Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678

deleteDataStream(DeleteDataStreamRequest request)

public final void deleteDataStream(DeleteDataStreamRequest request)

Deletes a DataStream on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteDataStreamRequest request =
       DeleteDataStreamRequest.newBuilder()
           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .build();
   analyticsAdminServiceClient.deleteDataStream(request);
 }
 
Parameter
NameDescription
requestDeleteDataStreamRequest

The request object containing all of the parameters for the API call.

deleteDataStream(String name)

public final void deleteDataStream(String name)

Deletes a DataStream on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
   analyticsAdminServiceClient.deleteDataStream(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678

deleteDataStreamCallable()

public final UnaryCallable<DeleteDataStreamRequest,Empty> deleteDataStreamCallable()

Deletes a DataStream on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteDataStreamRequest request =
       DeleteDataStreamRequest.newBuilder()
           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteDataStreamCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteDataStreamRequest,Empty>
public final void deleteDisplayVideo360AdvertiserLink(DeleteDisplayVideo360AdvertiserLinkRequest request)

Deletes a DisplayVideo360AdvertiserLink on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteDisplayVideo360AdvertiserLinkRequest request =
       DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
                   .toString())
           .build();
   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(request);
 }
 
Parameter
NameDescription
requestDeleteDisplayVideo360AdvertiserLinkRequest

The request object containing all of the parameters for the API call.

public final void deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name)

Deletes a DisplayVideo360AdvertiserLink on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DisplayVideo360AdvertiserLinkName name =
       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
 }
 
Parameter
NameDescription
nameDisplayVideo360AdvertiserLinkName

Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: properties/1234/displayVideo360AdvertiserLinks/5678

public final void deleteDisplayVideo360AdvertiserLink(String name)

Deletes a DisplayVideo360AdvertiserLink on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name =
       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
           .toString();
   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: properties/1234/displayVideo360AdvertiserLinks/5678

deleteDisplayVideo360AdvertiserLinkCallable()

public final UnaryCallable<DeleteDisplayVideo360AdvertiserLinkRequest,Empty> deleteDisplayVideo360AdvertiserLinkCallable()

Deletes a DisplayVideo360AdvertiserLink on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteDisplayVideo360AdvertiserLinkRequest request =
       DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
                   .toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient
           .deleteDisplayVideo360AdvertiserLinkCallable()
           .futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteDisplayVideo360AdvertiserLinkRequest,Empty>

deleteDisplayVideo360AdvertiserLinkProposal(DeleteDisplayVideo360AdvertiserLinkProposalRequest request)

public final void deleteDisplayVideo360AdvertiserLinkProposal(DeleteDisplayVideo360AdvertiserLinkProposalRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
       DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkProposalName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
                   .toString())
           .build();
   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(request);
 }
 
Parameter
NameDescription
requestDeleteDisplayVideo360AdvertiserLinkProposalRequest

The request object containing all of the parameters for the API call.

deleteDisplayVideo360AdvertiserLinkProposal(DisplayVideo360AdvertiserLinkProposalName name)

public final void deleteDisplayVideo360AdvertiserLinkProposal(DisplayVideo360AdvertiserLinkProposalName name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DisplayVideo360AdvertiserLinkProposalName name =
       DisplayVideo360AdvertiserLinkProposalName.of(
           "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
 }
 
Parameter
NameDescription
nameDisplayVideo360AdvertiserLinkProposalName

Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678

deleteDisplayVideo360AdvertiserLinkProposal(String name)

public final void deleteDisplayVideo360AdvertiserLinkProposal(String name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name =
       DisplayVideo360AdvertiserLinkProposalName.of(
               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
           .toString();
   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678

deleteDisplayVideo360AdvertiserLinkProposalCallable()

public final UnaryCallable<DeleteDisplayVideo360AdvertiserLinkProposalRequest,Empty> deleteDisplayVideo360AdvertiserLinkProposalCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
       DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkProposalName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
                   .toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient
           .deleteDisplayVideo360AdvertiserLinkProposalCallable()
           .futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteDisplayVideo360AdvertiserLinkProposalRequest,Empty>

deleteExpandedDataSet(DeleteExpandedDataSetRequest request)

public final void deleteExpandedDataSet(DeleteExpandedDataSetRequest request)

Deletes a ExpandedDataSet on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteExpandedDataSetRequest request =
       DeleteExpandedDataSetRequest.newBuilder()
           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
           .build();
   analyticsAdminServiceClient.deleteExpandedDataSet(request);
 }
 
Parameter
NameDescription
requestDeleteExpandedDataSetRequest

The request object containing all of the parameters for the API call.

deleteExpandedDataSet(ExpandedDataSetName name)

public final void deleteExpandedDataSet(ExpandedDataSetName name)

Deletes a ExpandedDataSet on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]");
   analyticsAdminServiceClient.deleteExpandedDataSet(name);
 }
 
Parameter
NameDescription
nameExpandedDataSetName

Required. Example format: properties/1234/expandedDataSets/5678

deleteExpandedDataSet(String name)

public final void deleteExpandedDataSet(String name)

Deletes a ExpandedDataSet on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString();
   analyticsAdminServiceClient.deleteExpandedDataSet(name);
 }
 
Parameter
NameDescription
nameString

Required. Example format: properties/1234/expandedDataSets/5678

deleteExpandedDataSetCallable()

public final UnaryCallable<DeleteExpandedDataSetRequest,Empty> deleteExpandedDataSetCallable()

Deletes a ExpandedDataSet on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteExpandedDataSetRequest request =
       DeleteExpandedDataSetRequest.newBuilder()
           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteExpandedDataSetCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteExpandedDataSetRequest,Empty>
public final void deleteFirebaseLink(DeleteFirebaseLinkRequest request)

Deletes a FirebaseLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteFirebaseLinkRequest request =
       DeleteFirebaseLinkRequest.newBuilder()
           .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
           .build();
   analyticsAdminServiceClient.deleteFirebaseLink(request);
 }
 
Parameter
NameDescription
requestDeleteFirebaseLinkRequest

The request object containing all of the parameters for the API call.

public final void deleteFirebaseLink(FirebaseLinkName name)

Deletes a FirebaseLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]");
   analyticsAdminServiceClient.deleteFirebaseLink(name);
 }
 
Parameter
NameDescription
nameFirebaseLinkName

Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678

public final void deleteFirebaseLink(String name)

Deletes a FirebaseLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString();
   analyticsAdminServiceClient.deleteFirebaseLink(name);
 }
 
Parameter
NameDescription
nameString

Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678

deleteFirebaseLinkCallable()

public final UnaryCallable<DeleteFirebaseLinkRequest,Empty> deleteFirebaseLinkCallable()

Deletes a FirebaseLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteFirebaseLinkRequest request =
       DeleteFirebaseLinkRequest.newBuilder()
           .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteFirebaseLinkCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteFirebaseLinkRequest,Empty>
public final void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request)

Deletes a GoogleAdsLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteGoogleAdsLinkRequest request =
       DeleteGoogleAdsLinkRequest.newBuilder()
           .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
           .build();
   analyticsAdminServiceClient.deleteGoogleAdsLink(request);
 }
 
Parameter
NameDescription
requestDeleteGoogleAdsLinkRequest

The request object containing all of the parameters for the API call.

public final void deleteGoogleAdsLink(GoogleAdsLinkName name)

Deletes a GoogleAdsLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]");
   analyticsAdminServiceClient.deleteGoogleAdsLink(name);
 }
 
Parameter
NameDescription
nameGoogleAdsLinkName

Required. Example format: properties/1234/googleAdsLinks/5678

public final void deleteGoogleAdsLink(String name)

Deletes a GoogleAdsLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString();
   analyticsAdminServiceClient.deleteGoogleAdsLink(name);
 }
 
Parameter
NameDescription
nameString

Required. Example format: properties/1234/googleAdsLinks/5678

deleteGoogleAdsLinkCallable()

public final UnaryCallable<DeleteGoogleAdsLinkRequest,Empty> deleteGoogleAdsLinkCallable()

Deletes a GoogleAdsLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteGoogleAdsLinkRequest request =
       DeleteGoogleAdsLinkRequest.newBuilder()
           .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteGoogleAdsLinkCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteGoogleAdsLinkRequest,Empty>

deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest request)

public final void deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest request)

Deletes target MeasurementProtocolSecret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteMeasurementProtocolSecretRequest request =
       DeleteMeasurementProtocolSecretRequest.newBuilder()
           .setName(
               MeasurementProtocolSecretName.of(
                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
                   .toString())
           .build();
   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(request);
 }
 
Parameter
NameDescription
requestDeleteMeasurementProtocolSecretRequest

The request object containing all of the parameters for the API call.

deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name)

public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name)

Deletes target MeasurementProtocolSecret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   MeasurementProtocolSecretName name =
       MeasurementProtocolSecretName.of(
           "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
 }
 
Parameter
NameDescription
nameMeasurementProtocolSecretName

Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}

deleteMeasurementProtocolSecret(String name)

public final void deleteMeasurementProtocolSecret(String name)

Deletes target MeasurementProtocolSecret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name =
       MeasurementProtocolSecretName.of(
               "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
           .toString();
   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}

deleteMeasurementProtocolSecretCallable()

public final UnaryCallable<DeleteMeasurementProtocolSecretRequest,Empty> deleteMeasurementProtocolSecretCallable()

Deletes target MeasurementProtocolSecret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteMeasurementProtocolSecretRequest request =
       DeleteMeasurementProtocolSecretRequest.newBuilder()
           .setName(
               MeasurementProtocolSecretName.of(
                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
                   .toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteMeasurementProtocolSecretCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteMeasurementProtocolSecretRequest,Empty>

deleteProperty(DeletePropertyRequest request)

public final 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 a GA4 Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeletePropertyRequest request =
       DeletePropertyRequest.newBuilder()
           .setName(PropertyName.of("[PROPERTY]").toString())
           .build();
   Property response = analyticsAdminServiceClient.deleteProperty(request);
 }
 
Parameter
NameDescription
requestDeletePropertyRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Property

deleteProperty(PropertyName name)

public final Property deleteProperty(PropertyName name)

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 a GA4 Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName name = PropertyName.of("[PROPERTY]");
   Property response = analyticsAdminServiceClient.deleteProperty(name);
 }
 
Parameter
NameDescription
namePropertyName

Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000"

Returns
TypeDescription
Property

deleteProperty(String name)

public final Property deleteProperty(String name)

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 a GA4 Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = PropertyName.of("[PROPERTY]").toString();
   Property response = analyticsAdminServiceClient.deleteProperty(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000"

Returns
TypeDescription
Property

deletePropertyCallable()

public final UnaryCallable<DeletePropertyRequest,Property> deletePropertyCallable()

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 a GA4 Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeletePropertyRequest request =
       DeletePropertyRequest.newBuilder()
           .setName(PropertyName.of("[PROPERTY]").toString())
           .build();
   ApiFuture<Property> future =
       analyticsAdminServiceClient.deletePropertyCallable().futureCall(request);
   // Do something.
   Property response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeletePropertyRequest,Property>
public final void deleteSearchAds360Link(DeleteSearchAds360LinkRequest request)

Deletes a SearchAds360Link on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteSearchAds360LinkRequest request =
       DeleteSearchAds360LinkRequest.newBuilder()
           .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString())
           .build();
   analyticsAdminServiceClient.deleteSearchAds360Link(request);
 }
 
Parameter
NameDescription
requestDeleteSearchAds360LinkRequest

The request object containing all of the parameters for the API call.

public final void deleteSearchAds360Link(SearchAds360LinkName name)

Deletes a SearchAds360Link on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]");
   analyticsAdminServiceClient.deleteSearchAds360Link(name);
 }
 
Parameter
NameDescription
nameSearchAds360LinkName

Required. The name of the SearchAds360Link to delete. Example format: properties/1234/SearchAds360Links/5678

public final void deleteSearchAds360Link(String name)

Deletes a SearchAds360Link on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString();
   analyticsAdminServiceClient.deleteSearchAds360Link(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the SearchAds360Link to delete. Example format: properties/1234/SearchAds360Links/5678

deleteSearchAds360LinkCallable()

public final UnaryCallable<DeleteSearchAds360LinkRequest,Empty> deleteSearchAds360LinkCallable()

Deletes a SearchAds360Link on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteSearchAds360LinkRequest request =
       DeleteSearchAds360LinkRequest.newBuilder()
           .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteSearchAds360LinkCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteSearchAds360LinkRequest,Empty>
public final void deleteUserLink(DeleteUserLinkRequest request)

Deletes a user link on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteUserLinkRequest request =
       DeleteUserLinkRequest.newBuilder()
           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
           .build();
   analyticsAdminServiceClient.deleteUserLink(request);
 }
 
Parameter
NameDescription
requestDeleteUserLinkRequest

The request object containing all of the parameters for the API call.

public final void deleteUserLink(UserLinkName name)

Deletes a user link on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
   analyticsAdminServiceClient.deleteUserLink(name);
 }
 
Parameter
NameDescription
nameUserLinkName

Required. Example format: accounts/1234/userLinks/5678

public final void deleteUserLink(String name)

Deletes a user link on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString();
   analyticsAdminServiceClient.deleteUserLink(name);
 }
 
Parameter
NameDescription
nameString

Required. Example format: accounts/1234/userLinks/5678

deleteUserLinkCallable()

public final UnaryCallable<DeleteUserLinkRequest,Empty> deleteUserLinkCallable()

Deletes a user link on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DeleteUserLinkRequest request =
       DeleteUserLinkRequest.newBuilder()
           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
           .build();
   ApiFuture<Empty> future =
       analyticsAdminServiceClient.deleteUserLinkCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteUserLinkRequest,Empty>

fetchAutomatedGa4ConfigurationOptOut(FetchAutomatedGa4ConfigurationOptOutRequest request)

public final FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4ConfigurationOptOut(FetchAutomatedGa4ConfigurationOptOutRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   FetchAutomatedGa4ConfigurationOptOutRequest request =
       FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder()
           .setProperty("property-993141291")
           .build();
   FetchAutomatedGa4ConfigurationOptOutResponse response =
       analyticsAdminServiceClient.fetchAutomatedGa4ConfigurationOptOut(request);
 }
 
Parameter
NameDescription
requestFetchAutomatedGa4ConfigurationOptOutRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
FetchAutomatedGa4ConfigurationOptOutResponse

fetchAutomatedGa4ConfigurationOptOutCallable()

public final UnaryCallable<FetchAutomatedGa4ConfigurationOptOutRequest,FetchAutomatedGa4ConfigurationOptOutResponse> fetchAutomatedGa4ConfigurationOptOutCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   FetchAutomatedGa4ConfigurationOptOutRequest request =
       FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder()
           .setProperty("property-993141291")
           .build();
   ApiFuture<FetchAutomatedGa4ConfigurationOptOutResponse> future =
       analyticsAdminServiceClient
           .fetchAutomatedGa4ConfigurationOptOutCallable()
           .futureCall(request);
   // Do something.
   FetchAutomatedGa4ConfigurationOptOutResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<FetchAutomatedGa4ConfigurationOptOutRequest,FetchAutomatedGa4ConfigurationOptOutResponse>

getAccessBinding(AccessBindingName name)

public final AccessBinding getAccessBinding(AccessBindingName name)

Gets information about an access binding.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccessBindingName name =
       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]");
   AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name);
 }
 
Parameter
NameDescription
nameAccessBindingName

Required. The name of the access binding to retrieve. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}

Returns
TypeDescription
AccessBinding

getAccessBinding(GetAccessBindingRequest request)

public final AccessBinding getAccessBinding(GetAccessBindingRequest request)

Gets information about an access binding.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetAccessBindingRequest request =
       GetAccessBindingRequest.newBuilder()
           .setName(
               AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]")
                   .toString())
           .build();
   AccessBinding response = analyticsAdminServiceClient.getAccessBinding(request);
 }
 
Parameter
NameDescription
requestGetAccessBindingRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AccessBinding

getAccessBinding(String name)

public final AccessBinding getAccessBinding(String name)

Gets information about an access binding.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name =
       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString();
   AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the access binding to retrieve. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}

Returns
TypeDescription
AccessBinding

getAccessBindingCallable()

public final UnaryCallable<GetAccessBindingRequest,AccessBinding> getAccessBindingCallable()

Gets information about an access binding.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetAccessBindingRequest request =
       GetAccessBindingRequest.newBuilder()
           .setName(
               AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]")
                   .toString())
           .build();
   ApiFuture<AccessBinding> future =
       analyticsAdminServiceClient.getAccessBindingCallable().futureCall(request);
   // Do something.
   AccessBinding response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetAccessBindingRequest,AccessBinding>

getAccount(AccountName name)

public final Account getAccount(AccountName name)

Lookup for a single Account.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccountName name = AccountName.of("[ACCOUNT]");
   Account response = analyticsAdminServiceClient.getAccount(name);
 }
 
Parameter
NameDescription
nameAccountName

Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100"

Returns
TypeDescription
Account

getAccount(GetAccountRequest request)

public final Account getAccount(GetAccountRequest request)

Lookup for a single Account.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetAccountRequest request =
       GetAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
   Account response = analyticsAdminServiceClient.getAccount(request);
 }
 
Parameter
NameDescription
requestGetAccountRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Account

getAccount(String name)

public final Account getAccount(String name)

Lookup for a single Account.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = AccountName.of("[ACCOUNT]").toString();
   Account response = analyticsAdminServiceClient.getAccount(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100"

Returns
TypeDescription
Account

getAccountCallable()

public final UnaryCallable<GetAccountRequest,Account> getAccountCallable()

Lookup for a single Account.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetAccountRequest request =
       GetAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
   ApiFuture<Account> future =
       analyticsAdminServiceClient.getAccountCallable().futureCall(request);
   // Do something.
   Account response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetAccountRequest,Account>

getAttributionSettings(AttributionSettingsName name)

public final AttributionSettings getAttributionSettings(AttributionSettingsName name)

Lookup for a AttributionSettings singleton.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]");
   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name);
 }
 
Parameter
NameDescription
nameAttributionSettingsName

Required. The name of the attribution settings to retrieve. Format: properties/{property}/attributionSettings

Returns
TypeDescription
AttributionSettings

getAttributionSettings(GetAttributionSettingsRequest request)

public final AttributionSettings getAttributionSettings(GetAttributionSettingsRequest request)

Lookup for a AttributionSettings singleton.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetAttributionSettingsRequest request =
       GetAttributionSettingsRequest.newBuilder()
           .setName(AttributionSettingsName.of("[PROPERTY]").toString())
           .build();
   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(request);
 }
 
Parameter
NameDescription
requestGetAttributionSettingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AttributionSettings

getAttributionSettings(String name)

public final AttributionSettings getAttributionSettings(String name)

Lookup for a AttributionSettings singleton.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = AttributionSettingsName.of("[PROPERTY]").toString();
   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the attribution settings to retrieve. Format: properties/{property}/attributionSettings

Returns
TypeDescription
AttributionSettings

getAttributionSettingsCallable()

public final UnaryCallable<GetAttributionSettingsRequest,AttributionSettings> getAttributionSettingsCallable()

Lookup for a AttributionSettings singleton.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetAttributionSettingsRequest request =
       GetAttributionSettingsRequest.newBuilder()
           .setName(AttributionSettingsName.of("[PROPERTY]").toString())
           .build();
   ApiFuture<AttributionSettings> future =
       analyticsAdminServiceClient.getAttributionSettingsCallable().futureCall(request);
   // Do something.
   AttributionSettings response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetAttributionSettingsRequest,AttributionSettings>

getAudience(AudienceName name)

public final Audience getAudience(AudienceName name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]");
   Audience response = analyticsAdminServiceClient.getAudience(name);
 }
 
Parameter
NameDescription
nameAudienceName

Required. The name of the Audience to get. Example format: properties/1234/audiences/5678

Returns
TypeDescription
Audience

getAudience(GetAudienceRequest request)

public final Audience getAudience(GetAudienceRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetAudienceRequest request =
       GetAudienceRequest.newBuilder()
           .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString())
           .build();
   Audience response = analyticsAdminServiceClient.getAudience(request);
 }
 
Parameter
NameDescription
requestGetAudienceRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Audience

getAudience(String name)

public final Audience getAudience(String name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString();
   Audience response = analyticsAdminServiceClient.getAudience(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the Audience to get. Example format: properties/1234/audiences/5678

Returns
TypeDescription
Audience

getAudienceCallable()

public final UnaryCallable<GetAudienceRequest,Audience> getAudienceCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetAudienceRequest request =
       GetAudienceRequest.newBuilder()
           .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString())
           .build();
   ApiFuture<Audience> future =
       analyticsAdminServiceClient.getAudienceCallable().futureCall(request);
   // Do something.
   Audience response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetAudienceRequest,Audience>
public final BigQueryLink getBigQueryLink(BigQueryLinkName name)

Lookup for a single BigQuery Link.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]");
   BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name);
 }
 
Parameter
NameDescription
nameBigQueryLinkName

Required. The name of the BigQuery link to lookup. Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: properties/123/bigQueryLinks/456

Returns
TypeDescription
BigQueryLink
public final BigQueryLink getBigQueryLink(GetBigQueryLinkRequest request)

Lookup for a single BigQuery Link.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetBigQueryLinkRequest request =
       GetBigQueryLinkRequest.newBuilder()
           .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString())
           .build();
   BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(request);
 }
 
Parameter
NameDescription
requestGetBigQueryLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
BigQueryLink
public final BigQueryLink getBigQueryLink(String name)

Lookup for a single BigQuery Link.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString();
   BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the BigQuery link to lookup. Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: properties/123/bigQueryLinks/456

Returns
TypeDescription
BigQueryLink

getBigQueryLinkCallable()

public final UnaryCallable<GetBigQueryLinkRequest,BigQueryLink> getBigQueryLinkCallable()

Lookup for a single BigQuery Link.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetBigQueryLinkRequest request =
       GetBigQueryLinkRequest.newBuilder()
           .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString())
           .build();
   ApiFuture<BigQueryLink> future =
       analyticsAdminServiceClient.getBigQueryLinkCallable().futureCall(request);
   // Do something.
   BigQueryLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetBigQueryLinkRequest,BigQueryLink>

getConversionEvent(ConversionEventName name)

public final ConversionEvent getConversionEvent(ConversionEventName name)

Retrieve a single conversion event.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
 }
 
Parameter
NameDescription
nameConversionEventName

Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456"

Returns
TypeDescription
ConversionEvent

getConversionEvent(GetConversionEventRequest request)

public final ConversionEvent getConversionEvent(GetConversionEventRequest request)

Retrieve a single conversion event.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetConversionEventRequest request =
       GetConversionEventRequest.newBuilder()
           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
           .build();
   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(request);
 }
 
Parameter
NameDescription
requestGetConversionEventRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
ConversionEvent

getConversionEvent(String name)

public final ConversionEvent getConversionEvent(String name)

Retrieve a single conversion event.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456"

Returns
TypeDescription
ConversionEvent

getConversionEventCallable()

public final UnaryCallable<GetConversionEventRequest,ConversionEvent> getConversionEventCallable()

Retrieve a single conversion event.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetConversionEventRequest request =
       GetConversionEventRequest.newBuilder()
           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
           .build();
   ApiFuture<ConversionEvent> future =
       analyticsAdminServiceClient.getConversionEventCallable().futureCall(request);
   // Do something.
   ConversionEvent response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetConversionEventRequest,ConversionEvent>

getCustomDimension(CustomDimensionName name)

public final CustomDimension getCustomDimension(CustomDimensionName name)

Lookup for a single CustomDimension.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]");
   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
 }
 
Parameter
NameDescription
nameCustomDimensionName

Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678

Returns
TypeDescription
CustomDimension

getCustomDimension(GetCustomDimensionRequest request)

public final CustomDimension getCustomDimension(GetCustomDimensionRequest request)

Lookup for a single CustomDimension.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetCustomDimensionRequest request =
       GetCustomDimensionRequest.newBuilder()
           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
           .build();
   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(request);
 }
 
Parameter
NameDescription
requestGetCustomDimensionRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
CustomDimension

getCustomDimension(String name)

public final CustomDimension getCustomDimension(String name)

Lookup for a single CustomDimension.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString();
   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678

Returns
TypeDescription
CustomDimension

getCustomDimensionCallable()

public final UnaryCallable<GetCustomDimensionRequest,CustomDimension> getCustomDimensionCallable()

Lookup for a single CustomDimension.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetCustomDimensionRequest request =
       GetCustomDimensionRequest.newBuilder()
           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
           .build();
   ApiFuture<CustomDimension> future =
       analyticsAdminServiceClient.getCustomDimensionCallable().futureCall(request);
   // Do something.
   CustomDimension response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetCustomDimensionRequest,CustomDimension>

getCustomMetric(CustomMetricName name)

public final CustomMetric getCustomMetric(CustomMetricName name)

Lookup for a single CustomMetric.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]");
   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
 }
 
Parameter
NameDescription
nameCustomMetricName

Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678

Returns
TypeDescription
CustomMetric

getCustomMetric(GetCustomMetricRequest request)

public final CustomMetric getCustomMetric(GetCustomMetricRequest request)

Lookup for a single CustomMetric.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetCustomMetricRequest request =
       GetCustomMetricRequest.newBuilder()
           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
           .build();
   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(request);
 }
 
Parameter
NameDescription
requestGetCustomMetricRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
CustomMetric

getCustomMetric(String name)

public final CustomMetric getCustomMetric(String name)

Lookup for a single CustomMetric.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString();
   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678

Returns
TypeDescription
CustomMetric

getCustomMetricCallable()

public final UnaryCallable<GetCustomMetricRequest,CustomMetric> getCustomMetricCallable()

Lookup for a single CustomMetric.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetCustomMetricRequest request =
       GetCustomMetricRequest.newBuilder()
           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
           .build();
   ApiFuture<CustomMetric> future =
       analyticsAdminServiceClient.getCustomMetricCallable().futureCall(request);
   // Do something.
   CustomMetric response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetCustomMetricRequest,CustomMetric>

getDataRetentionSettings(DataRetentionSettingsName name)

public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name)

Returns the singleton data retention settings for this property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]");
   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
 }
 
Parameter
NameDescription
nameDataRetentionSettingsName

Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings"

Returns
TypeDescription
DataRetentionSettings

getDataRetentionSettings(GetDataRetentionSettingsRequest request)

public final DataRetentionSettings getDataRetentionSettings(GetDataRetentionSettingsRequest request)

Returns the singleton data retention settings for this property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDataRetentionSettingsRequest request =
       GetDataRetentionSettingsRequest.newBuilder()
           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
           .build();
   DataRetentionSettings response =
       analyticsAdminServiceClient.getDataRetentionSettings(request);
 }
 
Parameter
NameDescription
requestGetDataRetentionSettingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataRetentionSettings

getDataRetentionSettings(String name)

public final DataRetentionSettings getDataRetentionSettings(String name)

Returns the singleton data retention settings for this property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = DataRetentionSettingsName.of("[PROPERTY]").toString();
   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings"

Returns
TypeDescription
DataRetentionSettings

getDataRetentionSettingsCallable()

public final UnaryCallable<GetDataRetentionSettingsRequest,DataRetentionSettings> getDataRetentionSettingsCallable()

Returns the singleton data retention settings for this property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDataRetentionSettingsRequest request =
       GetDataRetentionSettingsRequest.newBuilder()
           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
           .build();
   ApiFuture<DataRetentionSettings> future =
       analyticsAdminServiceClient.getDataRetentionSettingsCallable().futureCall(request);
   // Do something.
   DataRetentionSettings response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetDataRetentionSettingsRequest,DataRetentionSettings>

getDataSharingSettings(DataSharingSettingsName name)

public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]");
   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name);
 }
 
Parameter
NameDescription
nameDataSharingSettingsName

Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings"

Returns
TypeDescription
DataSharingSettings

getDataSharingSettings(GetDataSharingSettingsRequest request)

public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDataSharingSettingsRequest request =
       GetDataSharingSettingsRequest.newBuilder()
           .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
           .build();
   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(request);
 }
 
Parameter
NameDescription
requestGetDataSharingSettingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataSharingSettings

getDataSharingSettings(String name)

public final DataSharingSettings getDataSharingSettings(String name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = DataSharingSettingsName.of("[ACCOUNT]").toString();
   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings"

Returns
TypeDescription
DataSharingSettings

getDataSharingSettingsCallable()

public final UnaryCallable<GetDataSharingSettingsRequest,DataSharingSettings> getDataSharingSettingsCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDataSharingSettingsRequest request =
       GetDataSharingSettingsRequest.newBuilder()
           .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
           .build();
   ApiFuture<DataSharingSettings> future =
       analyticsAdminServiceClient.getDataSharingSettingsCallable().futureCall(request);
   // Do something.
   DataSharingSettings response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetDataSharingSettingsRequest,DataSharingSettings>

getDataStream(DataStreamName name)

public final DataStream getDataStream(DataStreamName name)

Lookup for a single DataStream.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
   DataStream response = analyticsAdminServiceClient.getDataStream(name);
 }
 
Parameter
NameDescription
nameDataStreamName

Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678

Returns
TypeDescription
DataStream

getDataStream(GetDataStreamRequest request)

public final DataStream getDataStream(GetDataStreamRequest request)

Lookup for a single DataStream.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDataStreamRequest request =
       GetDataStreamRequest.newBuilder()
           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .build();
   DataStream response = analyticsAdminServiceClient.getDataStream(request);
 }
 
Parameter
NameDescription
requestGetDataStreamRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataStream

getDataStream(String name)

public final DataStream getDataStream(String name)

Lookup for a single DataStream.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
   DataStream response = analyticsAdminServiceClient.getDataStream(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678

Returns
TypeDescription
DataStream

getDataStreamCallable()

public final UnaryCallable<GetDataStreamRequest,DataStream> getDataStreamCallable()

Lookup for a single DataStream.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDataStreamRequest request =
       GetDataStreamRequest.newBuilder()
           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .build();
   ApiFuture<DataStream> future =
       analyticsAdminServiceClient.getDataStreamCallable().futureCall(request);
   // Do something.
   DataStream response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetDataStreamRequest,DataStream>
public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name)

Look up a single DisplayVideo360AdvertiserLink

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DisplayVideo360AdvertiserLinkName name =
       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
   DisplayVideo360AdvertiserLink response =
       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
 }
 
Parameter
NameDescription
nameDisplayVideo360AdvertiserLinkName

Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: properties/1234/displayVideo360AdvertiserLink/5678

Returns
TypeDescription
DisplayVideo360AdvertiserLink
public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(GetDisplayVideo360AdvertiserLinkRequest request)

Look up a single DisplayVideo360AdvertiserLink

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDisplayVideo360AdvertiserLinkRequest request =
       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
                   .toString())
           .build();
   DisplayVideo360AdvertiserLink response =
       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(request);
 }
 
Parameter
NameDescription
requestGetDisplayVideo360AdvertiserLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DisplayVideo360AdvertiserLink
public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(String name)

Look up a single DisplayVideo360AdvertiserLink

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name =
       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
           .toString();
   DisplayVideo360AdvertiserLink response =
       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: properties/1234/displayVideo360AdvertiserLink/5678

Returns
TypeDescription
DisplayVideo360AdvertiserLink

getDisplayVideo360AdvertiserLinkCallable()

public final UnaryCallable<GetDisplayVideo360AdvertiserLinkRequest,DisplayVideo360AdvertiserLink> getDisplayVideo360AdvertiserLinkCallable()

Look up a single DisplayVideo360AdvertiserLink

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDisplayVideo360AdvertiserLinkRequest request =
       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
                   .toString())
           .build();
   ApiFuture<DisplayVideo360AdvertiserLink> future =
       analyticsAdminServiceClient
           .getDisplayVideo360AdvertiserLinkCallable()
           .futureCall(request);
   // Do something.
   DisplayVideo360AdvertiserLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetDisplayVideo360AdvertiserLinkRequest,DisplayVideo360AdvertiserLink>

getDisplayVideo360AdvertiserLinkProposal(DisplayVideo360AdvertiserLinkProposalName name)

public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(DisplayVideo360AdvertiserLinkProposalName name)

Lookup for a single DisplayVideo360AdvertiserLinkProposal.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DisplayVideo360AdvertiserLinkProposalName name =
       DisplayVideo360AdvertiserLinkProposalName.of(
           "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
   DisplayVideo360AdvertiserLinkProposal response =
       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
 }
 
Parameter
NameDescription
nameDisplayVideo360AdvertiserLinkProposalName

Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678

Returns
TypeDescription
DisplayVideo360AdvertiserLinkProposal

getDisplayVideo360AdvertiserLinkProposal(GetDisplayVideo360AdvertiserLinkProposalRequest request)

public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(GetDisplayVideo360AdvertiserLinkProposalRequest request)

Lookup for a single DisplayVideo360AdvertiserLinkProposal.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDisplayVideo360AdvertiserLinkProposalRequest request =
       GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkProposalName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
                   .toString())
           .build();
   DisplayVideo360AdvertiserLinkProposal response =
       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(request);
 }
 
Parameter
NameDescription
requestGetDisplayVideo360AdvertiserLinkProposalRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DisplayVideo360AdvertiserLinkProposal

getDisplayVideo360AdvertiserLinkProposal(String name)

public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(String name)

Lookup for a single DisplayVideo360AdvertiserLinkProposal.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name =
       DisplayVideo360AdvertiserLinkProposalName.of(
               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
           .toString();
   DisplayVideo360AdvertiserLinkProposal response =
       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678

Returns
TypeDescription
DisplayVideo360AdvertiserLinkProposal

getDisplayVideo360AdvertiserLinkProposalCallable()

public final UnaryCallable<GetDisplayVideo360AdvertiserLinkProposalRequest,DisplayVideo360AdvertiserLinkProposal> getDisplayVideo360AdvertiserLinkProposalCallable()

Lookup for a single DisplayVideo360AdvertiserLinkProposal.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetDisplayVideo360AdvertiserLinkProposalRequest request =
       GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
           .setName(
               DisplayVideo360AdvertiserLinkProposalName.of(
                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
                   .toString())
           .build();
   ApiFuture<DisplayVideo360AdvertiserLinkProposal> future =
       analyticsAdminServiceClient
           .getDisplayVideo360AdvertiserLinkProposalCallable()
           .futureCall(request);
   // Do something.
   DisplayVideo360AdvertiserLinkProposal response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetDisplayVideo360AdvertiserLinkProposalRequest,DisplayVideo360AdvertiserLinkProposal>

getEnhancedMeasurementSettings(EnhancedMeasurementSettingsName name)

public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(EnhancedMeasurementSettingsName name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   EnhancedMeasurementSettingsName name =
       EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]");
   EnhancedMeasurementSettings response =
       analyticsAdminServiceClient.getEnhancedMeasurementSettings(name);
 }
 
Parameter
NameDescription
nameEnhancedMeasurementSettingsName

Required. The name of the settings to lookup. Format: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

Returns
TypeDescription
EnhancedMeasurementSettings

getEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest request)

public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetEnhancedMeasurementSettingsRequest request =
       GetEnhancedMeasurementSettingsRequest.newBuilder()
           .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .build();
   EnhancedMeasurementSettings response =
       analyticsAdminServiceClient.getEnhancedMeasurementSettings(request);
 }
 
Parameter
NameDescription
requestGetEnhancedMeasurementSettingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
EnhancedMeasurementSettings

getEnhancedMeasurementSettings(String name)

public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(String name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString();
   EnhancedMeasurementSettings response =
       analyticsAdminServiceClient.getEnhancedMeasurementSettings(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the settings to lookup. Format: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

Returns
TypeDescription
EnhancedMeasurementSettings

getEnhancedMeasurementSettingsCallable()

public final UnaryCallable<GetEnhancedMeasurementSettingsRequest,EnhancedMeasurementSettings> getEnhancedMeasurementSettingsCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetEnhancedMeasurementSettingsRequest request =
       GetEnhancedMeasurementSettingsRequest.newBuilder()
           .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .build();
   ApiFuture<EnhancedMeasurementSettings> future =
       analyticsAdminServiceClient.getEnhancedMeasurementSettingsCallable().futureCall(request);
   // Do something.
   EnhancedMeasurementSettings response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetEnhancedMeasurementSettingsRequest,EnhancedMeasurementSettings>

getExpandedDataSet(ExpandedDataSetName name)

public final ExpandedDataSet getExpandedDataSet(ExpandedDataSetName name)

Lookup for a single ExpandedDataSet.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]");
   ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name);
 }
 
Parameter
NameDescription
nameExpandedDataSetName

Required. The name of the Audience to get. Example format: properties/1234/expandedDataSets/5678

Returns
TypeDescription
ExpandedDataSet

getExpandedDataSet(GetExpandedDataSetRequest request)

public final ExpandedDataSet getExpandedDataSet(GetExpandedDataSetRequest request)

Lookup for a single ExpandedDataSet.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetExpandedDataSetRequest request =
       GetExpandedDataSetRequest.newBuilder()
           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
           .build();
   ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(request);
 }
 
Parameter
NameDescription
requestGetExpandedDataSetRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
ExpandedDataSet

getExpandedDataSet(String name)

public final ExpandedDataSet getExpandedDataSet(String name)

Lookup for a single ExpandedDataSet.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString();
   ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the Audience to get. Example format: properties/1234/expandedDataSets/5678

Returns
TypeDescription
ExpandedDataSet

getExpandedDataSetCallable()

public final UnaryCallable<GetExpandedDataSetRequest,ExpandedDataSet> getExpandedDataSetCallable()

Lookup for a single ExpandedDataSet.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetExpandedDataSetRequest request =
       GetExpandedDataSetRequest.newBuilder()
           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
           .build();
   ApiFuture<ExpandedDataSet> future =
       analyticsAdminServiceClient.getExpandedDataSetCallable().futureCall(request);
   // Do something.
   ExpandedDataSet response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetExpandedDataSetRequest,ExpandedDataSet>

getGlobalSiteTag(GetGlobalSiteTagRequest request)

public final GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetGlobalSiteTagRequest request =
       GetGlobalSiteTagRequest.newBuilder()
           .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .build();
   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(request);
 }
 
Parameter
NameDescription
requestGetGlobalSiteTagRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
GlobalSiteTag

getGlobalSiteTag(GlobalSiteTagName name)

public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]");
   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name);
 }
 
Parameter
NameDescription
nameGlobalSiteTagName

Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

Returns
TypeDescription
GlobalSiteTag

getGlobalSiteTag(String name)

public final GlobalSiteTag getGlobalSiteTag(String name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString();
   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

Returns
TypeDescription
GlobalSiteTag

getGlobalSiteTagCallable()

public final UnaryCallable<GetGlobalSiteTagRequest,GlobalSiteTag> getGlobalSiteTagCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetGlobalSiteTagRequest request =
       GetGlobalSiteTagRequest.newBuilder()
           .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .build();
   ApiFuture<GlobalSiteTag> future =
       analyticsAdminServiceClient.getGlobalSiteTagCallable().futureCall(request);
   // Do something.
   GlobalSiteTag response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetGlobalSiteTagRequest,GlobalSiteTag>

getGoogleSignalsSettings(GetGoogleSignalsSettingsRequest request)

public final GoogleSignalsSettings getGoogleSignalsSettings(GetGoogleSignalsSettingsRequest request)

Lookup for Google Signals settings for a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetGoogleSignalsSettingsRequest request =
       GetGoogleSignalsSettingsRequest.newBuilder()
           .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
           .build();
   GoogleSignalsSettings response =
       analyticsAdminServiceClient.getGoogleSignalsSettings(request);
 }
 
Parameter
NameDescription
requestGetGoogleSignalsSettingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
GoogleSignalsSettings

getGoogleSignalsSettings(GoogleSignalsSettingsName name)

public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSettingsName name)

Lookup for Google Signals settings for a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]");
   GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
 }
 
Parameter
NameDescription
nameGoogleSignalsSettingsName

Required. The name of the google signals settings to retrieve. Format: properties/{property}/googleSignalsSettings

Returns
TypeDescription
GoogleSignalsSettings

getGoogleSignalsSettings(String name)

public final GoogleSignalsSettings getGoogleSignalsSettings(String name)

Lookup for Google Signals settings for a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = GoogleSignalsSettingsName.of("[PROPERTY]").toString();
   GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the google signals settings to retrieve. Format: properties/{property}/googleSignalsSettings

Returns
TypeDescription
GoogleSignalsSettings

getGoogleSignalsSettingsCallable()

public final UnaryCallable<GetGoogleSignalsSettingsRequest,GoogleSignalsSettings> getGoogleSignalsSettingsCallable()

Lookup for Google Signals settings for a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetGoogleSignalsSettingsRequest request =
       GetGoogleSignalsSettingsRequest.newBuilder()
           .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
           .build();
   ApiFuture<GoogleSignalsSettings> future =
       analyticsAdminServiceClient.getGoogleSignalsSettingsCallable().futureCall(request);
   // Do something.
   GoogleSignalsSettings response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetGoogleSignalsSettingsRequest,GoogleSignalsSettings>

getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest request)

public final MeasurementProtocolSecret getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest request)

Lookup for a single "GA4" MeasurementProtocolSecret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetMeasurementProtocolSecretRequest request =
       GetMeasurementProtocolSecretRequest.newBuilder()
           .setName(
               MeasurementProtocolSecretName.of(
                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
                   .toString())
           .build();
   MeasurementProtocolSecret response =
       analyticsAdminServiceClient.getMeasurementProtocolSecret(request);
 }
 
Parameter
NameDescription
requestGetMeasurementProtocolSecretRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
MeasurementProtocolSecret

getMeasurementProtocolSecret(MeasurementProtocolSecretName name)

public final MeasurementProtocolSecret getMeasurementProtocolSecret(MeasurementProtocolSecretName name)

Lookup for a single "GA4" MeasurementProtocolSecret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   MeasurementProtocolSecretName name =
       MeasurementProtocolSecretName.of(
           "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
   MeasurementProtocolSecret response =
       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
 }
 
Parameter
NameDescription
nameMeasurementProtocolSecretName

Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}

Returns
TypeDescription
MeasurementProtocolSecret

getMeasurementProtocolSecret(String name)

public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name)

Lookup for a single "GA4" MeasurementProtocolSecret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name =
       MeasurementProtocolSecretName.of(
               "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
           .toString();
   MeasurementProtocolSecret response =
       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}

Returns
TypeDescription
MeasurementProtocolSecret

getMeasurementProtocolSecretCallable()

public final UnaryCallable<GetMeasurementProtocolSecretRequest,MeasurementProtocolSecret> getMeasurementProtocolSecretCallable()

Lookup for a single "GA4" MeasurementProtocolSecret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetMeasurementProtocolSecretRequest request =
       GetMeasurementProtocolSecretRequest.newBuilder()
           .setName(
               MeasurementProtocolSecretName.of(
                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
                   .toString())
           .build();
   ApiFuture<MeasurementProtocolSecret> future =
       analyticsAdminServiceClient.getMeasurementProtocolSecretCallable().futureCall(request);
   // Do something.
   MeasurementProtocolSecret response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetMeasurementProtocolSecretRequest,MeasurementProtocolSecret>

getProperty(GetPropertyRequest request)

public final Property getProperty(GetPropertyRequest request)

Lookup for a single "GA4" Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetPropertyRequest request =
       GetPropertyRequest.newBuilder().setName(PropertyName.of("[PROPERTY]").toString()).build();
   Property response = analyticsAdminServiceClient.getProperty(request);
 }
 
Parameter
NameDescription
requestGetPropertyRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Property

getProperty(PropertyName name)

public final Property getProperty(PropertyName name)

Lookup for a single "GA4" Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName name = PropertyName.of("[PROPERTY]");
   Property response = analyticsAdminServiceClient.getProperty(name);
 }
 
Parameter
NameDescription
namePropertyName

Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000"

Returns
TypeDescription
Property

getProperty(String name)

public final Property getProperty(String name)

Lookup for a single "GA4" Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = PropertyName.of("[PROPERTY]").toString();
   Property response = analyticsAdminServiceClient.getProperty(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000"

Returns
TypeDescription
Property

getPropertyCallable()

public final UnaryCallable<GetPropertyRequest,Property> getPropertyCallable()

Lookup for a single "GA4" Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetPropertyRequest request =
       GetPropertyRequest.newBuilder().setName(PropertyName.of("[PROPERTY]").toString()).build();
   ApiFuture<Property> future =
       analyticsAdminServiceClient.getPropertyCallable().futureCall(request);
   // Do something.
   Property response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetPropertyRequest,Property>
public final SearchAds360Link getSearchAds360Link(GetSearchAds360LinkRequest request)

Look up a single SearchAds360Link

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetSearchAds360LinkRequest request =
       GetSearchAds360LinkRequest.newBuilder()
           .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString())
           .build();
   SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(request);
 }
 
Parameter
NameDescription
requestGetSearchAds360LinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SearchAds360Link
public final SearchAds360Link getSearchAds360Link(SearchAds360LinkName name)

Look up a single SearchAds360Link

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]");
   SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(name);
 }
 
Parameter
NameDescription
nameSearchAds360LinkName

Required. The name of the SearchAds360Link to get. Example format: properties/1234/SearchAds360Link/5678

Returns
TypeDescription
SearchAds360Link
public final SearchAds360Link getSearchAds360Link(String name)

Look up a single SearchAds360Link

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString();
   SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the SearchAds360Link to get. Example format: properties/1234/SearchAds360Link/5678

Returns
TypeDescription
SearchAds360Link

getSearchAds360LinkCallable()

public final UnaryCallable<GetSearchAds360LinkRequest,SearchAds360Link> getSearchAds360LinkCallable()

Look up a single SearchAds360Link

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetSearchAds360LinkRequest request =
       GetSearchAds360LinkRequest.newBuilder()
           .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString())
           .build();
   ApiFuture<SearchAds360Link> future =
       analyticsAdminServiceClient.getSearchAds360LinkCallable().futureCall(request);
   // Do something.
   SearchAds360Link response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetSearchAds360LinkRequest,SearchAds360Link>

getSettings()

public final AnalyticsAdminServiceSettings getSettings()
Returns
TypeDescription
AnalyticsAdminServiceSettings

getStub()

public AnalyticsAdminServiceStub getStub()
Returns
TypeDescription
AnalyticsAdminServiceStub
public final UserLink getUserLink(GetUserLinkRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetUserLinkRequest request =
       GetUserLinkRequest.newBuilder()
           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
           .build();
   UserLink response = analyticsAdminServiceClient.getUserLink(request);
 }
 
Parameter
NameDescription
requestGetUserLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
UserLink
public final UserLink getUserLink(UserLinkName name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
   UserLink response = analyticsAdminServiceClient.getUserLink(name);
 }
 
Parameter
NameDescription
nameUserLinkName

Required. Example format: accounts/1234/userLinks/5678

Returns
TypeDescription
UserLink
public final UserLink getUserLink(String name)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString();
   UserLink response = analyticsAdminServiceClient.getUserLink(name);
 }
 
Parameter
NameDescription
nameString

Required. Example format: accounts/1234/userLinks/5678

Returns
TypeDescription
UserLink

getUserLinkCallable()

public final UnaryCallable<GetUserLinkRequest,UserLink> getUserLinkCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GetUserLinkRequest request =
       GetUserLinkRequest.newBuilder()
           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
           .build();
   ApiFuture<UserLink> future =
       analyticsAdminServiceClient.getUserLinkCallable().futureCall(request);
   // Do something.
   UserLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetUserLinkRequest,UserLink>

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAccessBindings(AccountName parent)

public final AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse listAccessBindings(AccountName parent)

Lists all access bindings on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccountName parent = AccountName.of("[ACCOUNT]");
   for (AccessBinding element :
       analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentAccountName

Required. Formats: - accounts/{account} - properties/{property}

Returns
TypeDescription
AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse

listAccessBindings(ListAccessBindingsRequest request)

public final AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse listAccessBindings(ListAccessBindingsRequest request)

Lists all access bindings on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAccessBindingsRequest request =
       ListAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (AccessBinding element :
       analyticsAdminServiceClient.listAccessBindings(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListAccessBindingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse

listAccessBindings(PropertyName parent)

public final AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse listAccessBindings(PropertyName parent)

Lists all access bindings on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (AccessBinding element :
       analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Formats: - accounts/{account} - properties/{property}

Returns
TypeDescription
AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse

listAccessBindings(String parent)

public final AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse listAccessBindings(String parent)

Lists all access bindings on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = AccountName.of("[ACCOUNT]").toString();
   for (AccessBinding element :
       analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Formats: - accounts/{account} - properties/{property}

Returns
TypeDescription
AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse

listAccessBindingsCallable()

public final UnaryCallable<ListAccessBindingsRequest,ListAccessBindingsResponse> listAccessBindingsCallable()

Lists all access bindings on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAccessBindingsRequest request =
       ListAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListAccessBindingsResponse response =
         analyticsAdminServiceClient.listAccessBindingsCallable().call(request);
     for (AccessBinding element : response.getAccessBindingsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListAccessBindingsRequest,ListAccessBindingsResponse>

listAccessBindingsPagedCallable()

public final UnaryCallable<ListAccessBindingsRequest,AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse> listAccessBindingsPagedCallable()

Lists all access bindings on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAccessBindingsRequest request =
       ListAccessBindingsRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<AccessBinding> future =
       analyticsAdminServiceClient.listAccessBindingsPagedCallable().futureCall(request);
   // Do something.
   for (AccessBinding element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListAccessBindingsRequest,ListAccessBindingsPagedResponse>

listAccountSummaries(ListAccountSummariesRequest request)

public final AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse listAccountSummaries(ListAccountSummariesRequest request)

Returns summaries of all accounts accessible by the caller.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAccountSummariesRequest request =
       ListAccountSummariesRequest.newBuilder()
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (AccountSummary element :
       analyticsAdminServiceClient.listAccountSummaries(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListAccountSummariesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse

listAccountSummariesCallable()

public final UnaryCallable<ListAccountSummariesRequest,ListAccountSummariesResponse> listAccountSummariesCallable()

Returns summaries of all accounts accessible by the caller.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAccountSummariesRequest request =
       ListAccountSummariesRequest.newBuilder()
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListAccountSummariesResponse response =
         analyticsAdminServiceClient.listAccountSummariesCallable().call(request);
     for (AccountSummary element : response.getAccountSummariesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListAccountSummariesRequest,ListAccountSummariesResponse>

listAccountSummariesPagedCallable()

public final UnaryCallable<ListAccountSummariesRequest,AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse> listAccountSummariesPagedCallable()

Returns summaries of all accounts accessible by the caller.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAccountSummariesRequest request =
       ListAccountSummariesRequest.newBuilder()
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<AccountSummary> future =
       analyticsAdminServiceClient.listAccountSummariesPagedCallable().futureCall(request);
   // Do something.
   for (AccountSummary element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListAccountSummariesRequest,ListAccountSummariesPagedResponse>

listAccounts(ListAccountsRequest request)

public final AnalyticsAdminServiceClient.ListAccountsPagedResponse 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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAccountsRequest request =
       ListAccountsRequest.newBuilder()
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setShowDeleted(true)
           .build();
   for (Account element : analyticsAdminServiceClient.listAccounts(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListAccountsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListAccountsPagedResponse

listAccountsCallable()

public final UnaryCallable<ListAccountsRequest,ListAccountsResponse> listAccountsCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAccountsRequest request =
       ListAccountsRequest.newBuilder()
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setShowDeleted(true)
           .build();
   while (true) {
     ListAccountsResponse response =
         analyticsAdminServiceClient.listAccountsCallable().call(request);
     for (Account element : response.getAccountsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListAccountsRequest,ListAccountsResponse>

listAccountsPagedCallable()

public final UnaryCallable<ListAccountsRequest,AnalyticsAdminServiceClient.ListAccountsPagedResponse> listAccountsPagedCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAccountsRequest request =
       ListAccountsRequest.newBuilder()
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setShowDeleted(true)
           .build();
   ApiFuture<Account> future =
       analyticsAdminServiceClient.listAccountsPagedCallable().futureCall(request);
   // Do something.
   for (Account element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListAccountsRequest,ListAccountsPagedResponse>

listAudiences(ListAudiencesRequest request)

public final AnalyticsAdminServiceClient.ListAudiencesPagedResponse listAudiences(ListAudiencesRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAudiencesRequest request =
       ListAudiencesRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (Audience element : analyticsAdminServiceClient.listAudiences(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListAudiencesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListAudiencesPagedResponse

listAudiences(PropertyName parent)

public final AnalyticsAdminServiceClient.ListAudiencesPagedResponse listAudiences(PropertyName parent)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListAudiencesPagedResponse

listAudiences(String parent)

public final AnalyticsAdminServiceClient.ListAudiencesPagedResponse listAudiences(String parent)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListAudiencesPagedResponse

listAudiencesCallable()

public final UnaryCallable<ListAudiencesRequest,ListAudiencesResponse> listAudiencesCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAudiencesRequest request =
       ListAudiencesRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListAudiencesResponse response =
         analyticsAdminServiceClient.listAudiencesCallable().call(request);
     for (Audience element : response.getAudiencesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListAudiencesRequest,ListAudiencesResponse>

listAudiencesPagedCallable()

public final UnaryCallable<ListAudiencesRequest,AnalyticsAdminServiceClient.ListAudiencesPagedResponse> listAudiencesPagedCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListAudiencesRequest request =
       ListAudiencesRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<Audience> future =
       analyticsAdminServiceClient.listAudiencesPagedCallable().futureCall(request);
   // Do something.
   for (Audience element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListAudiencesRequest,ListAudiencesPagedResponse>
public final AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksRequest request)

Lists BigQuery Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListBigQueryLinksRequest request =
       ListBigQueryLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (BigQueryLink element :
       analyticsAdminServiceClient.listBigQueryLinks(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListBigQueryLinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse
public final AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse listBigQueryLinks(PropertyName parent)

Lists BigQuery Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (BigQueryLink element :
       analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. The name of the property to list BigQuery links under. Format: properties/{property_id} Example: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse
public final AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse listBigQueryLinks(String parent)

Lists BigQuery Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (BigQueryLink element :
       analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. The name of the property to list BigQuery links under. Format: properties/{property_id} Example: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse

listBigQueryLinksCallable()

public final UnaryCallable<ListBigQueryLinksRequest,ListBigQueryLinksResponse> listBigQueryLinksCallable()

Lists BigQuery Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListBigQueryLinksRequest request =
       ListBigQueryLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListBigQueryLinksResponse response =
         analyticsAdminServiceClient.listBigQueryLinksCallable().call(request);
     for (BigQueryLink element : response.getBigqueryLinksList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListBigQueryLinksRequest,ListBigQueryLinksResponse>

listBigQueryLinksPagedCallable()

public final UnaryCallable<ListBigQueryLinksRequest,AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse> listBigQueryLinksPagedCallable()

Lists BigQuery Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListBigQueryLinksRequest request =
       ListBigQueryLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<BigQueryLink> future =
       analyticsAdminServiceClient.listBigQueryLinksPagedCallable().futureCall(request);
   // Do something.
   for (BigQueryLink element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListBigQueryLinksRequest,ListBigQueryLinksPagedResponse>

listConnectedSiteTags(ListConnectedSiteTagsRequest request)

public final ListConnectedSiteTagsResponse listConnectedSiteTags(ListConnectedSiteTagsRequest request)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListConnectedSiteTagsRequest request =
       ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build();
   ListConnectedSiteTagsResponse response =
       analyticsAdminServiceClient.listConnectedSiteTags(request);
 }
 
Parameter
NameDescription
requestListConnectedSiteTagsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
ListConnectedSiteTagsResponse

listConnectedSiteTagsCallable()

public final UnaryCallable<ListConnectedSiteTagsRequest,ListConnectedSiteTagsResponse> listConnectedSiteTagsCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListConnectedSiteTagsRequest request =
       ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build();
   ApiFuture<ListConnectedSiteTagsResponse> future =
       analyticsAdminServiceClient.listConnectedSiteTagsCallable().futureCall(request);
   // Do something.
   ListConnectedSiteTagsResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<ListConnectedSiteTagsRequest,ListConnectedSiteTagsResponse>

listConversionEvents(ListConversionEventsRequest request)

public final AnalyticsAdminServiceClient.ListConversionEventsPagedResponse listConversionEvents(ListConversionEventsRequest request)

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

Returns an empty list if no conversion events are found.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListConversionEventsRequest request =
       ListConversionEventsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (ConversionEvent element :
       analyticsAdminServiceClient.listConversionEvents(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListConversionEventsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListConversionEventsPagedResponse

listConversionEvents(PropertyName parent)

public final AnalyticsAdminServiceClient.ListConversionEventsPagedResponse listConversionEvents(PropertyName parent)

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

Returns an empty list if no conversion events are found.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (ConversionEvent element :
       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. The resource name of the parent property. Example: 'properties/123'

Returns
TypeDescription
AnalyticsAdminServiceClient.ListConversionEventsPagedResponse

listConversionEvents(String parent)

public final AnalyticsAdminServiceClient.ListConversionEventsPagedResponse listConversionEvents(String parent)

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

Returns an empty list if no conversion events are found.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (ConversionEvent element :
       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. The resource name of the parent property. Example: 'properties/123'

Returns
TypeDescription
AnalyticsAdminServiceClient.ListConversionEventsPagedResponse

listConversionEventsCallable()

public final UnaryCallable<ListConversionEventsRequest,ListConversionEventsResponse> listConversionEventsCallable()

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

Returns an empty list if no conversion events are found.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListConversionEventsRequest request =
       ListConversionEventsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListConversionEventsResponse response =
         analyticsAdminServiceClient.listConversionEventsCallable().call(request);
     for (ConversionEvent element : response.getConversionEventsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListConversionEventsRequest,ListConversionEventsResponse>

listConversionEventsPagedCallable()

public final UnaryCallable<ListConversionEventsRequest,AnalyticsAdminServiceClient.ListConversionEventsPagedResponse> listConversionEventsPagedCallable()

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

Returns an empty list if no conversion events are found.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListConversionEventsRequest request =
       ListConversionEventsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<ConversionEvent> future =
       analyticsAdminServiceClient.listConversionEventsPagedCallable().futureCall(request);
   // Do something.
   for (ConversionEvent element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListConversionEventsRequest,ListConversionEventsPagedResponse>

listCustomDimensions(ListCustomDimensionsRequest request)

public final AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse listCustomDimensions(ListCustomDimensionsRequest request)

Lists CustomDimensions on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListCustomDimensionsRequest request =
       ListCustomDimensionsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (CustomDimension element :
       analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListCustomDimensionsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse

listCustomDimensions(PropertyName parent)

public final AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent)

Lists CustomDimensions on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (CustomDimension element :
       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse

listCustomDimensions(String parent)

public final AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse listCustomDimensions(String parent)

Lists CustomDimensions on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (CustomDimension element :
       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse

listCustomDimensionsCallable()

public final UnaryCallable<ListCustomDimensionsRequest,ListCustomDimensionsResponse> listCustomDimensionsCallable()

Lists CustomDimensions on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListCustomDimensionsRequest request =
       ListCustomDimensionsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListCustomDimensionsResponse response =
         analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
     for (CustomDimension element : response.getCustomDimensionsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListCustomDimensionsRequest,ListCustomDimensionsResponse>

listCustomDimensionsPagedCallable()

public final UnaryCallable<ListCustomDimensionsRequest,AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse> listCustomDimensionsPagedCallable()

Lists CustomDimensions on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListCustomDimensionsRequest request =
       ListCustomDimensionsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<CustomDimension> future =
       analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
   // Do something.
   for (CustomDimension element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListCustomDimensionsRequest,ListCustomDimensionsPagedResponse>

listCustomMetrics(ListCustomMetricsRequest request)

public final AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsRequest request)

Lists CustomMetrics on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListCustomMetricsRequest request =
       ListCustomMetricsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (CustomMetric element :
       analyticsAdminServiceClient.listCustomMetrics(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListCustomMetricsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse

listCustomMetrics(PropertyName parent)

public final AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse listCustomMetrics(PropertyName parent)

Lists CustomMetrics on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (CustomMetric element :
       analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse

listCustomMetrics(String parent)

public final AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse listCustomMetrics(String parent)

Lists CustomMetrics on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (CustomMetric element :
       analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse

listCustomMetricsCallable()

public final UnaryCallable<ListCustomMetricsRequest,ListCustomMetricsResponse> listCustomMetricsCallable()

Lists CustomMetrics on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListCustomMetricsRequest request =
       ListCustomMetricsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListCustomMetricsResponse response =
         analyticsAdminServiceClient.listCustomMetricsCallable().call(request);
     for (CustomMetric element : response.getCustomMetricsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListCustomMetricsRequest,ListCustomMetricsResponse>

listCustomMetricsPagedCallable()

public final UnaryCallable<ListCustomMetricsRequest,AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse> listCustomMetricsPagedCallable()

Lists CustomMetrics on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListCustomMetricsRequest request =
       ListCustomMetricsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<CustomMetric> future =
       analyticsAdminServiceClient.listCustomMetricsPagedCallable().futureCall(request);
   // Do something.
   for (CustomMetric element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListCustomMetricsRequest,ListCustomMetricsPagedResponse>

listDataStreams(ListDataStreamsRequest request)

public final AnalyticsAdminServiceClient.ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest request)

Lists DataStreams on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListDataStreamsRequest request =
       ListDataStreamsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (DataStream element : analyticsAdminServiceClient.listDataStreams(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListDataStreamsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListDataStreamsPagedResponse

listDataStreams(PropertyName parent)

public final AnalyticsAdminServiceClient.ListDataStreamsPagedResponse listDataStreams(PropertyName parent)

Lists DataStreams on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListDataStreamsPagedResponse

listDataStreams(String parent)

public final AnalyticsAdminServiceClient.ListDataStreamsPagedResponse listDataStreams(String parent)

Lists DataStreams on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListDataStreamsPagedResponse

listDataStreamsCallable()

public final UnaryCallable<ListDataStreamsRequest,ListDataStreamsResponse> listDataStreamsCallable()

Lists DataStreams on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListDataStreamsRequest request =
       ListDataStreamsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListDataStreamsResponse response =
         analyticsAdminServiceClient.listDataStreamsCallable().call(request);
     for (DataStream element : response.getDataStreamsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDataStreamsRequest,ListDataStreamsResponse>

listDataStreamsPagedCallable()

public final UnaryCallable<ListDataStreamsRequest,AnalyticsAdminServiceClient.ListDataStreamsPagedResponse> listDataStreamsPagedCallable()

Lists DataStreams on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListDataStreamsRequest request =
       ListDataStreamsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<DataStream> future =
       analyticsAdminServiceClient.listDataStreamsPagedCallable().futureCall(request);
   // Do something.
   for (DataStream element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDataStreamsRequest,ListDataStreamsPagedResponse>

listDisplayVideo360AdvertiserLinkProposals(ListDisplayVideo360AdvertiserLinkProposalsRequest request)

public final AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse listDisplayVideo360AdvertiserLinkProposals(ListDisplayVideo360AdvertiserLinkProposalsRequest request)

Lists DisplayVideo360AdvertiserLinkProposals on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (DisplayVideo360AdvertiserLinkProposal element :
       analyticsAdminServiceClient
           .listDisplayVideo360AdvertiserLinkProposals(request)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListDisplayVideo360AdvertiserLinkProposalsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse

listDisplayVideo360AdvertiserLinkProposals(PropertyName parent)

public final AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse listDisplayVideo360AdvertiserLinkProposals(PropertyName parent)

Lists DisplayVideo360AdvertiserLinkProposals on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (DisplayVideo360AdvertiserLinkProposal element :
       analyticsAdminServiceClient
           .listDisplayVideo360AdvertiserLinkProposals(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse

listDisplayVideo360AdvertiserLinkProposals(String parent)

public final AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse listDisplayVideo360AdvertiserLinkProposals(String parent)

Lists DisplayVideo360AdvertiserLinkProposals on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (DisplayVideo360AdvertiserLinkProposal element :
       analyticsAdminServiceClient
           .listDisplayVideo360AdvertiserLinkProposals(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse

listDisplayVideo360AdvertiserLinkProposalsCallable()

public final UnaryCallable<ListDisplayVideo360AdvertiserLinkProposalsRequest,ListDisplayVideo360AdvertiserLinkProposalsResponse> listDisplayVideo360AdvertiserLinkProposalsCallable()

Lists DisplayVideo360AdvertiserLinkProposals on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListDisplayVideo360AdvertiserLinkProposalsResponse response =
         analyticsAdminServiceClient
             .listDisplayVideo360AdvertiserLinkProposalsCallable()
             .call(request);
     for (DisplayVideo360AdvertiserLinkProposal element :
         response.getDisplayVideo360AdvertiserLinkProposalsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDisplayVideo360AdvertiserLinkProposalsRequest,ListDisplayVideo360AdvertiserLinkProposalsResponse>

listDisplayVideo360AdvertiserLinkProposalsPagedCallable()

public final UnaryCallable<ListDisplayVideo360AdvertiserLinkProposalsRequest,AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> listDisplayVideo360AdvertiserLinkProposalsPagedCallable()

Lists DisplayVideo360AdvertiserLinkProposals on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<DisplayVideo360AdvertiserLinkProposal> future =
       analyticsAdminServiceClient
           .listDisplayVideo360AdvertiserLinkProposalsPagedCallable()
           .futureCall(request);
   // Do something.
   for (DisplayVideo360AdvertiserLinkProposal element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDisplayVideo360AdvertiserLinkProposalsRequest,ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
public final AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(ListDisplayVideo360AdvertiserLinksRequest request)

Lists all DisplayVideo360AdvertiserLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListDisplayVideo360AdvertiserLinksRequest request =
       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (DisplayVideo360AdvertiserLink element :
       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListDisplayVideo360AdvertiserLinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse
public final AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(PropertyName parent)

Lists all DisplayVideo360AdvertiserLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (DisplayVideo360AdvertiserLink element :
       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse
public final AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(String parent)

Lists all DisplayVideo360AdvertiserLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (DisplayVideo360AdvertiserLink element :
       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse

listDisplayVideo360AdvertiserLinksCallable()

public final UnaryCallable<ListDisplayVideo360AdvertiserLinksRequest,ListDisplayVideo360AdvertiserLinksResponse> listDisplayVideo360AdvertiserLinksCallable()

Lists all DisplayVideo360AdvertiserLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListDisplayVideo360AdvertiserLinksRequest request =
       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListDisplayVideo360AdvertiserLinksResponse response =
         analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinksCallable().call(request);
     for (DisplayVideo360AdvertiserLink element :
         response.getDisplayVideo360AdvertiserLinksList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDisplayVideo360AdvertiserLinksRequest,ListDisplayVideo360AdvertiserLinksResponse>

listDisplayVideo360AdvertiserLinksPagedCallable()

public final UnaryCallable<ListDisplayVideo360AdvertiserLinksRequest,AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse> listDisplayVideo360AdvertiserLinksPagedCallable()

Lists all DisplayVideo360AdvertiserLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListDisplayVideo360AdvertiserLinksRequest request =
       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<DisplayVideo360AdvertiserLink> future =
       analyticsAdminServiceClient
           .listDisplayVideo360AdvertiserLinksPagedCallable()
           .futureCall(request);
   // Do something.
   for (DisplayVideo360AdvertiserLink element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDisplayVideo360AdvertiserLinksRequest,ListDisplayVideo360AdvertiserLinksPagedResponse>

listExpandedDataSets(ListExpandedDataSetsRequest request)

public final AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse listExpandedDataSets(ListExpandedDataSetsRequest request)

Lists ExpandedDataSets on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListExpandedDataSetsRequest request =
       ListExpandedDataSetsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (ExpandedDataSet element :
       analyticsAdminServiceClient.listExpandedDataSets(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListExpandedDataSetsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse

listExpandedDataSets(PropertyName parent)

public final AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse listExpandedDataSets(PropertyName parent)

Lists ExpandedDataSets on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (ExpandedDataSet element :
       analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse

listExpandedDataSets(String parent)

public final AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse listExpandedDataSets(String parent)

Lists ExpandedDataSets on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (ExpandedDataSet element :
       analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse

listExpandedDataSetsCallable()

public final UnaryCallable<ListExpandedDataSetsRequest,ListExpandedDataSetsResponse> listExpandedDataSetsCallable()

Lists ExpandedDataSets on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListExpandedDataSetsRequest request =
       ListExpandedDataSetsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListExpandedDataSetsResponse response =
         analyticsAdminServiceClient.listExpandedDataSetsCallable().call(request);
     for (ExpandedDataSet element : response.getExpandedDataSetsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListExpandedDataSetsRequest,ListExpandedDataSetsResponse>

listExpandedDataSetsPagedCallable()

public final UnaryCallable<ListExpandedDataSetsRequest,AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse> listExpandedDataSetsPagedCallable()

Lists ExpandedDataSets on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListExpandedDataSetsRequest request =
       ListExpandedDataSetsRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<ExpandedDataSet> future =
       analyticsAdminServiceClient.listExpandedDataSetsPagedCallable().futureCall(request);
   // Do something.
   for (ExpandedDataSet element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListExpandedDataSetsRequest,ListExpandedDataSetsPagedResponse>
public final AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListFirebaseLinksRequest request =
       ListFirebaseLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (FirebaseLink element :
       analyticsAdminServiceClient.listFirebaseLinks(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListFirebaseLinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse
public final AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (FirebaseLink element :
       analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Format: properties/{property_id} Example: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse
public final AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse listFirebaseLinks(String parent)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (FirebaseLink element :
       analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Format: properties/{property_id} Example: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse

listFirebaseLinksCallable()

public final UnaryCallable<ListFirebaseLinksRequest,ListFirebaseLinksResponse> listFirebaseLinksCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListFirebaseLinksRequest request =
       ListFirebaseLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListFirebaseLinksResponse response =
         analyticsAdminServiceClient.listFirebaseLinksCallable().call(request);
     for (FirebaseLink element : response.getFirebaseLinksList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListFirebaseLinksRequest,ListFirebaseLinksResponse>

listFirebaseLinksPagedCallable()

public final UnaryCallable<ListFirebaseLinksRequest,AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse> listFirebaseLinksPagedCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListFirebaseLinksRequest request =
       ListFirebaseLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<FirebaseLink> future =
       analyticsAdminServiceClient.listFirebaseLinksPagedCallable().futureCall(request);
   // Do something.
   for (FirebaseLink element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListFirebaseLinksRequest,ListFirebaseLinksPagedResponse>
public final AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(ListGoogleAdsLinksRequest request)

Lists GoogleAdsLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListGoogleAdsLinksRequest request =
       ListGoogleAdsLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (GoogleAdsLink element :
       analyticsAdminServiceClient.listGoogleAdsLinks(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListGoogleAdsLinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse
public final AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName parent)

Lists GoogleAdsLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (GoogleAdsLink element :
       analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse
public final AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent)

Lists GoogleAdsLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (GoogleAdsLink element :
       analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse

listGoogleAdsLinksCallable()

public final UnaryCallable<ListGoogleAdsLinksRequest,ListGoogleAdsLinksResponse> listGoogleAdsLinksCallable()

Lists GoogleAdsLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListGoogleAdsLinksRequest request =
       ListGoogleAdsLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListGoogleAdsLinksResponse response =
         analyticsAdminServiceClient.listGoogleAdsLinksCallable().call(request);
     for (GoogleAdsLink element : response.getGoogleAdsLinksList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListGoogleAdsLinksRequest,ListGoogleAdsLinksResponse>

listGoogleAdsLinksPagedCallable()

public final UnaryCallable<ListGoogleAdsLinksRequest,AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse> listGoogleAdsLinksPagedCallable()

Lists GoogleAdsLinks on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListGoogleAdsLinksRequest request =
       ListGoogleAdsLinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<GoogleAdsLink> future =
       analyticsAdminServiceClient.listGoogleAdsLinksPagedCallable().futureCall(request);
   // Do something.
   for (GoogleAdsLink element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListGoogleAdsLinksRequest,ListGoogleAdsLinksPagedResponse>

listMeasurementProtocolSecrets(DataStreamName parent)

public final AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(DataStreamName parent)

Returns child MeasurementProtocolSecrets under the specified parent Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
   for (MeasurementProtocolSecret element :
       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentDataStreamName

Required. The resource name of the parent stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets

Returns
TypeDescription
AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse

listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest request)

public final AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest request)

Returns child MeasurementProtocolSecrets under the specified parent Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListMeasurementProtocolSecretsRequest request =
       ListMeasurementProtocolSecretsRequest.newBuilder()
           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (MeasurementProtocolSecret element :
       analyticsAdminServiceClient.listMeasurementProtocolSecrets(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListMeasurementProtocolSecretsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse

listMeasurementProtocolSecrets(String parent)

public final AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(String parent)

Returns child MeasurementProtocolSecrets under the specified parent Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
   for (MeasurementProtocolSecret element :
       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. The resource name of the parent stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets

Returns
TypeDescription
AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse

listMeasurementProtocolSecretsCallable()

public final UnaryCallable<ListMeasurementProtocolSecretsRequest,ListMeasurementProtocolSecretsResponse> listMeasurementProtocolSecretsCallable()

Returns child MeasurementProtocolSecrets under the specified parent Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListMeasurementProtocolSecretsRequest request =
       ListMeasurementProtocolSecretsRequest.newBuilder()
           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListMeasurementProtocolSecretsResponse response =
         analyticsAdminServiceClient.listMeasurementProtocolSecretsCallable().call(request);
     for (MeasurementProtocolSecret element : response.getMeasurementProtocolSecretsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListMeasurementProtocolSecretsRequest,ListMeasurementProtocolSecretsResponse>

listMeasurementProtocolSecretsPagedCallable()

public final UnaryCallable<ListMeasurementProtocolSecretsRequest,AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse> listMeasurementProtocolSecretsPagedCallable()

Returns child MeasurementProtocolSecrets under the specified parent Property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListMeasurementProtocolSecretsRequest request =
       ListMeasurementProtocolSecretsRequest.newBuilder()
           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<MeasurementProtocolSecret> future =
       analyticsAdminServiceClient
           .listMeasurementProtocolSecretsPagedCallable()
           .futureCall(request);
   // Do something.
   for (MeasurementProtocolSecret element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListMeasurementProtocolSecretsRequest,ListMeasurementProtocolSecretsPagedResponse>

listProperties(ListPropertiesRequest request)

public final AnalyticsAdminServiceClient.ListPropertiesPagedResponse 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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListPropertiesRequest request =
       ListPropertiesRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setShowDeleted(true)
           .build();
   for (Property element : analyticsAdminServiceClient.listProperties(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListPropertiesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListPropertiesPagedResponse

listPropertiesCallable()

public final UnaryCallable<ListPropertiesRequest,ListPropertiesResponse> listPropertiesCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListPropertiesRequest request =
       ListPropertiesRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setShowDeleted(true)
           .build();
   while (true) {
     ListPropertiesResponse response =
         analyticsAdminServiceClient.listPropertiesCallable().call(request);
     for (Property element : response.getPropertiesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListPropertiesRequest,ListPropertiesResponse>

listPropertiesPagedCallable()

public final UnaryCallable<ListPropertiesRequest,AnalyticsAdminServiceClient.ListPropertiesPagedResponse> listPropertiesPagedCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListPropertiesRequest request =
       ListPropertiesRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setShowDeleted(true)
           .build();
   ApiFuture<Property> future =
       analyticsAdminServiceClient.listPropertiesPagedCallable().futureCall(request);
   // Do something.
   for (Property element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListPropertiesRequest,ListPropertiesPagedResponse>
public final AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse listSearchAds360Links(ListSearchAds360LinksRequest request)

Lists all SearchAds360Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListSearchAds360LinksRequest request =
       ListSearchAds360LinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (SearchAds360Link element :
       analyticsAdminServiceClient.listSearchAds360Links(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListSearchAds360LinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse
public final AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse listSearchAds360Links(PropertyName parent)

Lists all SearchAds360Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (SearchAds360Link element :
       analyticsAdminServiceClient.listSearchAds360Links(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse
public final AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse listSearchAds360Links(String parent)

Lists all SearchAds360Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = PropertyName.of("[PROPERTY]").toString();
   for (SearchAds360Link element :
       analyticsAdminServiceClient.listSearchAds360Links(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: properties/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse

listSearchAds360LinksCallable()

public final UnaryCallable<ListSearchAds360LinksRequest,ListSearchAds360LinksResponse> listSearchAds360LinksCallable()

Lists all SearchAds360Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListSearchAds360LinksRequest request =
       ListSearchAds360LinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListSearchAds360LinksResponse response =
         analyticsAdminServiceClient.listSearchAds360LinksCallable().call(request);
     for (SearchAds360Link element : response.getSearchAds360LinksList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListSearchAds360LinksRequest,ListSearchAds360LinksResponse>

listSearchAds360LinksPagedCallable()

public final UnaryCallable<ListSearchAds360LinksRequest,AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse> listSearchAds360LinksPagedCallable()

Lists all SearchAds360Links on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListSearchAds360LinksRequest request =
       ListSearchAds360LinksRequest.newBuilder()
           .setParent(PropertyName.of("[PROPERTY]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<SearchAds360Link> future =
       analyticsAdminServiceClient.listSearchAds360LinksPagedCallable().futureCall(request);
   // Do something.
   for (SearchAds360Link element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListSearchAds360LinksRequest,ListSearchAds360LinksPagedResponse>
public final AnalyticsAdminServiceClient.ListUserLinksPagedResponse listUserLinks(AccountName parent)

Lists all user links on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccountName parent = AccountName.of("[ACCOUNT]");
   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentAccountName

Required. Example format: accounts/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListUserLinksPagedResponse
public final AnalyticsAdminServiceClient.ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest request)

Lists all user links on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListUserLinksRequest request =
       ListUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (UserLink element : analyticsAdminServiceClient.listUserLinks(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListUserLinksRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.ListUserLinksPagedResponse
public final AnalyticsAdminServiceClient.ListUserLinksPagedResponse listUserLinks(PropertyName parent)

Lists all user links on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   PropertyName parent = PropertyName.of("[PROPERTY]");
   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentPropertyName

Required. Example format: accounts/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListUserLinksPagedResponse
public final AnalyticsAdminServiceClient.ListUserLinksPagedResponse listUserLinks(String parent)

Lists all user links on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   String parent = AccountName.of("[ACCOUNT]").toString();
   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Example format: accounts/1234

Returns
TypeDescription
AnalyticsAdminServiceClient.ListUserLinksPagedResponse

listUserLinksCallable()

public final UnaryCallable<ListUserLinksRequest,ListUserLinksResponse> listUserLinksCallable()

Lists all user links on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListUserLinksRequest request =
       ListUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListUserLinksResponse response =
         analyticsAdminServiceClient.listUserLinksCallable().call(request);
     for (UserLink element : response.getUserLinksList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListUserLinksRequest,ListUserLinksResponse>

listUserLinksPagedCallable()

public final UnaryCallable<ListUserLinksRequest,AnalyticsAdminServiceClient.ListUserLinksPagedResponse> listUserLinksPagedCallable()

Lists all user links on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ListUserLinksRequest request =
       ListUserLinksRequest.newBuilder()
           .setParent(AccountName.of("[ACCOUNT]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<UserLink> future =
       analyticsAdminServiceClient.listUserLinksPagedCallable().futureCall(request);
   // Do something.
   for (UserLink element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListUserLinksRequest,ListUserLinksPagedResponse>

provisionAccountTicket(ProvisionAccountTicketRequest request)

public final ProvisionAccountTicketResponse provisionAccountTicket(ProvisionAccountTicketRequest request)

Requests a ticket for creating an account.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ProvisionAccountTicketRequest request =
       ProvisionAccountTicketRequest.newBuilder()
           .setAccount(Account.newBuilder().build())
           .setRedirectUri("redirectUri1970337776")
           .build();
   ProvisionAccountTicketResponse response =
       analyticsAdminServiceClient.provisionAccountTicket(request);
 }
 
Parameter
NameDescription
requestProvisionAccountTicketRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
ProvisionAccountTicketResponse

provisionAccountTicketCallable()

public final UnaryCallable<ProvisionAccountTicketRequest,ProvisionAccountTicketResponse> provisionAccountTicketCallable()

Requests a ticket for creating an account.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ProvisionAccountTicketRequest request =
       ProvisionAccountTicketRequest.newBuilder()
           .setAccount(Account.newBuilder().build())
           .setRedirectUri("redirectUri1970337776")
           .build();
   ApiFuture<ProvisionAccountTicketResponse> future =
       analyticsAdminServiceClient.provisionAccountTicketCallable().futureCall(request);
   // Do something.
   ProvisionAccountTicketResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<ProvisionAccountTicketRequest,ProvisionAccountTicketResponse>

runAccessReport(RunAccessReportRequest request)

public final 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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   RunAccessReportRequest request =
       RunAccessReportRequest.newBuilder()
           .setEntity("entity-1298275357")
           .addAllDimensions(new ArrayList<AccessDimension>())
           .addAllMetrics(new ArrayList<AccessMetric>())
           .addAllDateRanges(new ArrayList<AccessDateRange>())
           .setDimensionFilter(AccessFilterExpression.newBuilder().build())
           .setMetricFilter(AccessFilterExpression.newBuilder().build())
           .setOffset(-1019779949)
           .setLimit(102976443)
           .setTimeZone("timeZone-2077180903")
           .addAllOrderBys(new ArrayList<AccessOrderBy>())
           .setReturnEntityQuota(true)
           .build();
   RunAccessReportResponse response = analyticsAdminServiceClient.runAccessReport(request);
 }
 
Parameter
NameDescription
requestRunAccessReportRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
RunAccessReportResponse

runAccessReportCallable()

public final UnaryCallable<RunAccessReportRequest,RunAccessReportResponse> runAccessReportCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   RunAccessReportRequest request =
       RunAccessReportRequest.newBuilder()
           .setEntity("entity-1298275357")
           .addAllDimensions(new ArrayList<AccessDimension>())
           .addAllMetrics(new ArrayList<AccessMetric>())
           .addAllDateRanges(new ArrayList<AccessDateRange>())
           .setDimensionFilter(AccessFilterExpression.newBuilder().build())
           .setMetricFilter(AccessFilterExpression.newBuilder().build())
           .setOffset(-1019779949)
           .setLimit(102976443)
           .setTimeZone("timeZone-2077180903")
           .addAllOrderBys(new ArrayList<AccessOrderBy>())
           .setReturnEntityQuota(true)
           .build();
   ApiFuture<RunAccessReportResponse> future =
       analyticsAdminServiceClient.runAccessReportCallable().futureCall(request);
   // Do something.
   RunAccessReportResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<RunAccessReportRequest,RunAccessReportResponse>

searchChangeHistoryEvents(SearchChangeHistoryEventsRequest request)

public final AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents(SearchChangeHistoryEventsRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   SearchChangeHistoryEventsRequest request =
       SearchChangeHistoryEventsRequest.newBuilder()
           .setAccount(AccountName.of("[ACCOUNT]").toString())
           .setProperty(PropertyName.of("[PROPERTY]").toString())
           .addAllResourceType(new ArrayList<ChangeHistoryResourceType>())
           .addAllAction(new ArrayList<ActionType>())
           .addAllActorEmail(new ArrayList<String>())
           .setEarliestChangeTime(Timestamp.newBuilder().build())
           .setLatestChangeTime(Timestamp.newBuilder().build())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (ChangeHistoryEvent element :
       analyticsAdminServiceClient.searchChangeHistoryEvents(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestSearchChangeHistoryEventsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse

searchChangeHistoryEventsCallable()

public final UnaryCallable<SearchChangeHistoryEventsRequest,SearchChangeHistoryEventsResponse> searchChangeHistoryEventsCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   SearchChangeHistoryEventsRequest request =
       SearchChangeHistoryEventsRequest.newBuilder()
           .setAccount(AccountName.of("[ACCOUNT]").toString())
           .setProperty(PropertyName.of("[PROPERTY]").toString())
           .addAllResourceType(new ArrayList<ChangeHistoryResourceType>())
           .addAllAction(new ArrayList<ActionType>())
           .addAllActorEmail(new ArrayList<String>())
           .setEarliestChangeTime(Timestamp.newBuilder().build())
           .setLatestChangeTime(Timestamp.newBuilder().build())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     SearchChangeHistoryEventsResponse response =
         analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
     for (ChangeHistoryEvent element : response.getChangeHistoryEventsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<SearchChangeHistoryEventsRequest,SearchChangeHistoryEventsResponse>

searchChangeHistoryEventsPagedCallable()

public final UnaryCallable<SearchChangeHistoryEventsRequest,AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse> searchChangeHistoryEventsPagedCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   SearchChangeHistoryEventsRequest request =
       SearchChangeHistoryEventsRequest.newBuilder()
           .setAccount(AccountName.of("[ACCOUNT]").toString())
           .setProperty(PropertyName.of("[PROPERTY]").toString())
           .addAllResourceType(new ArrayList<ChangeHistoryResourceType>())
           .addAllAction(new ArrayList<ActionType>())
           .addAllActorEmail(new ArrayList<String>())
           .setEarliestChangeTime(Timestamp.newBuilder().build())
           .setLatestChangeTime(Timestamp.newBuilder().build())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<ChangeHistoryEvent> future =
       analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
   // Do something.
   for (ChangeHistoryEvent element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<SearchChangeHistoryEventsRequest,SearchChangeHistoryEventsPagedResponse>

setAutomatedGa4ConfigurationOptOut(SetAutomatedGa4ConfigurationOptOutRequest request)

public final SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4ConfigurationOptOut(SetAutomatedGa4ConfigurationOptOutRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   SetAutomatedGa4ConfigurationOptOutRequest request =
       SetAutomatedGa4ConfigurationOptOutRequest.newBuilder()
           .setProperty("property-993141291")
           .setOptOut(true)
           .build();
   SetAutomatedGa4ConfigurationOptOutResponse response =
       analyticsAdminServiceClient.setAutomatedGa4ConfigurationOptOut(request);
 }
 
Parameter
NameDescription
requestSetAutomatedGa4ConfigurationOptOutRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SetAutomatedGa4ConfigurationOptOutResponse

setAutomatedGa4ConfigurationOptOutCallable()

public final UnaryCallable<SetAutomatedGa4ConfigurationOptOutRequest,SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   SetAutomatedGa4ConfigurationOptOutRequest request =
       SetAutomatedGa4ConfigurationOptOutRequest.newBuilder()
           .setProperty("property-993141291")
           .setOptOut(true)
           .build();
   ApiFuture<SetAutomatedGa4ConfigurationOptOutResponse> future =
       analyticsAdminServiceClient
           .setAutomatedGa4ConfigurationOptOutCallable()
           .futureCall(request);
   // Do something.
   SetAutomatedGa4ConfigurationOptOutResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<SetAutomatedGa4ConfigurationOptOutRequest,SetAutomatedGa4ConfigurationOptOutResponse>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAccessBinding(AccessBinding accessBinding)

public final AccessBinding updateAccessBinding(AccessBinding accessBinding)

Updates an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AccessBinding accessBinding = AccessBinding.newBuilder().build();
   AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(accessBinding);
 }
 
Parameter
NameDescription
accessBindingAccessBinding

Required. The access binding to update.

Returns
TypeDescription
AccessBinding

updateAccessBinding(UpdateAccessBindingRequest request)

public final AccessBinding updateAccessBinding(UpdateAccessBindingRequest request)

Updates an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateAccessBindingRequest request =
       UpdateAccessBindingRequest.newBuilder()
           .setAccessBinding(AccessBinding.newBuilder().build())
           .build();
   AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(request);
 }
 
Parameter
NameDescription
requestUpdateAccessBindingRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AccessBinding

updateAccessBindingCallable()

public final UnaryCallable<UpdateAccessBindingRequest,AccessBinding> updateAccessBindingCallable()

Updates an access binding on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateAccessBindingRequest request =
       UpdateAccessBindingRequest.newBuilder()
           .setAccessBinding(AccessBinding.newBuilder().build())
           .build();
   ApiFuture<AccessBinding> future =
       analyticsAdminServiceClient.updateAccessBindingCallable().futureCall(request);
   // Do something.
   AccessBinding response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateAccessBindingRequest,AccessBinding>

updateAccount(Account account, FieldMask updateMask)

public final Account updateAccount(Account account, FieldMask updateMask)

Updates an account.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   Account account = Account.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Account response = analyticsAdminServiceClient.updateAccount(account, updateMask);
 }
 
Parameters
NameDescription
accountAccount

Required. The account to update. The account's name field is used to identify the account.

updateMaskFieldMask

Required. The list of fields to be updated. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
Account

updateAccount(UpdateAccountRequest request)

public final Account updateAccount(UpdateAccountRequest request)

Updates an account.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateAccountRequest request =
       UpdateAccountRequest.newBuilder()
           .setAccount(Account.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   Account response = analyticsAdminServiceClient.updateAccount(request);
 }
 
Parameter
NameDescription
requestUpdateAccountRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Account

updateAccountCallable()

public final UnaryCallable<UpdateAccountRequest,Account> updateAccountCallable()

Updates an account.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateAccountRequest request =
       UpdateAccountRequest.newBuilder()
           .setAccount(Account.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<Account> future =
       analyticsAdminServiceClient.updateAccountCallable().futureCall(request);
   // Do something.
   Account response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateAccountRequest,Account>

updateAttributionSettings(AttributionSettings attributionSettings, FieldMask updateMask)

public final AttributionSettings updateAttributionSettings(AttributionSettings attributionSettings, FieldMask updateMask)

Updates attribution settings on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   AttributionSettings attributionSettings = AttributionSettings.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   AttributionSettings response =
       analyticsAdminServiceClient.updateAttributionSettings(attributionSettings, updateMask);
 }
 
Parameters
NameDescription
attributionSettingsAttributionSettings

Required. The attribution settings to update. The name field is used to identify the settings to be updated.

updateMaskFieldMask

Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
AttributionSettings

updateAttributionSettings(UpdateAttributionSettingsRequest request)

public final AttributionSettings updateAttributionSettings(UpdateAttributionSettingsRequest request)

Updates attribution settings on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateAttributionSettingsRequest request =
       UpdateAttributionSettingsRequest.newBuilder()
           .setAttributionSettings(AttributionSettings.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   AttributionSettings response = analyticsAdminServiceClient.updateAttributionSettings(request);
 }
 
Parameter
NameDescription
requestUpdateAttributionSettingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
AttributionSettings

updateAttributionSettingsCallable()

public final UnaryCallable<UpdateAttributionSettingsRequest,AttributionSettings> updateAttributionSettingsCallable()

Updates attribution settings on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateAttributionSettingsRequest request =
       UpdateAttributionSettingsRequest.newBuilder()
           .setAttributionSettings(AttributionSettings.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<AttributionSettings> future =
       analyticsAdminServiceClient.updateAttributionSettingsCallable().futureCall(request);
   // Do something.
   AttributionSettings response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateAttributionSettingsRequest,AttributionSettings>

updateAudience(Audience audience, FieldMask updateMask)

public final Audience updateAudience(Audience audience, FieldMask updateMask)

Updates an Audience on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   Audience audience = Audience.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Audience response = analyticsAdminServiceClient.updateAudience(audience, updateMask);
 }
 
Parameters
NameDescription
audienceAudience

Required. The audience to update. The audience's name field is used to identify the audience to be updated.

updateMaskFieldMask

Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
Audience

updateAudience(UpdateAudienceRequest request)

public final Audience updateAudience(UpdateAudienceRequest request)

Updates an Audience on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateAudienceRequest request =
       UpdateAudienceRequest.newBuilder()
           .setAudience(Audience.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   Audience response = analyticsAdminServiceClient.updateAudience(request);
 }
 
Parameter
NameDescription
requestUpdateAudienceRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Audience

updateAudienceCallable()

public final UnaryCallable<UpdateAudienceRequest,Audience> updateAudienceCallable()

Updates an Audience on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateAudienceRequest request =
       UpdateAudienceRequest.newBuilder()
           .setAudience(Audience.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<Audience> future =
       analyticsAdminServiceClient.updateAudienceCallable().futureCall(request);
   // Do something.
   Audience response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateAudienceRequest,Audience>

updateCustomDimension(CustomDimension customDimension, FieldMask updateMask)

public final CustomDimension updateCustomDimension(CustomDimension customDimension, FieldMask updateMask)

Updates a CustomDimension on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CustomDimension customDimension = CustomDimension.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   CustomDimension response =
       analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
 }
 
Parameters
NameDescription
customDimensionCustomDimension

The CustomDimension to update

updateMaskFieldMask

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
CustomDimension

updateCustomDimension(UpdateCustomDimensionRequest request)

public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request)

Updates a CustomDimension on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateCustomDimensionRequest request =
       UpdateCustomDimensionRequest.newBuilder()
           .setCustomDimension(CustomDimension.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(request);
 }
 
Parameter
NameDescription
requestUpdateCustomDimensionRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
CustomDimension

updateCustomDimensionCallable()

public final UnaryCallable<UpdateCustomDimensionRequest,CustomDimension> updateCustomDimensionCallable()

Updates a CustomDimension on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateCustomDimensionRequest request =
       UpdateCustomDimensionRequest.newBuilder()
           .setCustomDimension(CustomDimension.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<CustomDimension> future =
       analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
   // Do something.
   CustomDimension response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateCustomDimensionRequest,CustomDimension>

updateCustomMetric(CustomMetric customMetric, FieldMask updateMask)

public final CustomMetric updateCustomMetric(CustomMetric customMetric, FieldMask updateMask)

Updates a CustomMetric on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   CustomMetric customMetric = CustomMetric.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   CustomMetric response =
       analyticsAdminServiceClient.updateCustomMetric(customMetric, updateMask);
 }
 
Parameters
NameDescription
customMetricCustomMetric

The CustomMetric to update

updateMaskFieldMask

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
CustomMetric

updateCustomMetric(UpdateCustomMetricRequest request)

public final CustomMetric updateCustomMetric(UpdateCustomMetricRequest request)

Updates a CustomMetric on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateCustomMetricRequest request =
       UpdateCustomMetricRequest.newBuilder()
           .setCustomMetric(CustomMetric.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   CustomMetric response = analyticsAdminServiceClient.updateCustomMetric(request);
 }
 
Parameter
NameDescription
requestUpdateCustomMetricRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
CustomMetric

updateCustomMetricCallable()

public final UnaryCallable<UpdateCustomMetricRequest,CustomMetric> updateCustomMetricCallable()

Updates a CustomMetric on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateCustomMetricRequest request =
       UpdateCustomMetricRequest.newBuilder()
           .setCustomMetric(CustomMetric.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<CustomMetric> future =
       analyticsAdminServiceClient.updateCustomMetricCallable().futureCall(request);
   // Do something.
   CustomMetric response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateCustomMetricRequest,CustomMetric>

updateDataRetentionSettings(DataRetentionSettings dataRetentionSettings, FieldMask updateMask)

public final DataRetentionSettings updateDataRetentionSettings(DataRetentionSettings dataRetentionSettings, FieldMask updateMask)

Updates the singleton data retention settings for this property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   DataRetentionSettings response =
       analyticsAdminServiceClient.updateDataRetentionSettings(
           dataRetentionSettings, updateMask);
 }
 
Parameters
NameDescription
dataRetentionSettingsDataRetentionSettings

Required. The settings to update. The name field is used to identify the settings to be updated.

updateMaskFieldMask

Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
DataRetentionSettings

updateDataRetentionSettings(UpdateDataRetentionSettingsRequest request)

public final DataRetentionSettings updateDataRetentionSettings(UpdateDataRetentionSettingsRequest request)

Updates the singleton data retention settings for this property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateDataRetentionSettingsRequest request =
       UpdateDataRetentionSettingsRequest.newBuilder()
           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   DataRetentionSettings response =
       analyticsAdminServiceClient.updateDataRetentionSettings(request);
 }
 
Parameter
NameDescription
requestUpdateDataRetentionSettingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataRetentionSettings

updateDataRetentionSettingsCallable()

public final UnaryCallable<UpdateDataRetentionSettingsRequest,DataRetentionSettings> updateDataRetentionSettingsCallable()

Updates the singleton data retention settings for this property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateDataRetentionSettingsRequest request =
       UpdateDataRetentionSettingsRequest.newBuilder()
           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<DataRetentionSettings> future =
       analyticsAdminServiceClient.updateDataRetentionSettingsCallable().futureCall(request);
   // Do something.
   DataRetentionSettings response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateDataRetentionSettingsRequest,DataRetentionSettings>

updateDataStream(DataStream dataStream, FieldMask updateMask)

public final DataStream updateDataStream(DataStream dataStream, FieldMask updateMask)

Updates a DataStream on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DataStream dataStream = DataStream.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   DataStream response = analyticsAdminServiceClient.updateDataStream(dataStream, updateMask);
 }
 
Parameters
NameDescription
dataStreamDataStream

The DataStream to update

updateMaskFieldMask

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
DataStream

updateDataStream(UpdateDataStreamRequest request)

public final DataStream updateDataStream(UpdateDataStreamRequest request)

Updates a DataStream on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateDataStreamRequest request =
       UpdateDataStreamRequest.newBuilder()
           .setDataStream(DataStream.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   DataStream response = analyticsAdminServiceClient.updateDataStream(request);
 }
 
Parameter
NameDescription
requestUpdateDataStreamRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataStream

updateDataStreamCallable()

public final UnaryCallable<UpdateDataStreamRequest,DataStream> updateDataStreamCallable()

Updates a DataStream on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateDataStreamRequest request =
       UpdateDataStreamRequest.newBuilder()
           .setDataStream(DataStream.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<DataStream> future =
       analyticsAdminServiceClient.updateDataStreamCallable().futureCall(request);
   // Do something.
   DataStream response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateDataStreamRequest,DataStream>
public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink, FieldMask updateMask)

Updates a DisplayVideo360AdvertiserLink on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
       DisplayVideo360AdvertiserLink.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   DisplayVideo360AdvertiserLink response =
       analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(
           displayVideo360AdvertiserLink, updateMask);
 }
 
Parameters
NameDescription
displayVideo360AdvertiserLinkDisplayVideo360AdvertiserLink

The DisplayVideo360AdvertiserLink to update

updateMaskFieldMask

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
DisplayVideo360AdvertiserLink
public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(UpdateDisplayVideo360AdvertiserLinkRequest request)

Updates a DisplayVideo360AdvertiserLink on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateDisplayVideo360AdvertiserLinkRequest request =
       UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   DisplayVideo360AdvertiserLink response =
       analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(request);
 }
 
Parameter
NameDescription
requestUpdateDisplayVideo360AdvertiserLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DisplayVideo360AdvertiserLink

updateDisplayVideo360AdvertiserLinkCallable()

public final UnaryCallable<UpdateDisplayVideo360AdvertiserLinkRequest,DisplayVideo360AdvertiserLink> updateDisplayVideo360AdvertiserLinkCallable()

Updates a DisplayVideo360AdvertiserLink on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateDisplayVideo360AdvertiserLinkRequest request =
       UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<DisplayVideo360AdvertiserLink> future =
       analyticsAdminServiceClient
           .updateDisplayVideo360AdvertiserLinkCallable()
           .futureCall(request);
   // Do something.
   DisplayVideo360AdvertiserLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateDisplayVideo360AdvertiserLinkRequest,DisplayVideo360AdvertiserLink>

updateEnhancedMeasurementSettings(EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask)

public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings(EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   EnhancedMeasurementSettings enhancedMeasurementSettings =
       EnhancedMeasurementSettings.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   EnhancedMeasurementSettings response =
       analyticsAdminServiceClient.updateEnhancedMeasurementSettings(
           enhancedMeasurementSettings, updateMask);
 }
 
Parameters
NameDescription
enhancedMeasurementSettingsEnhancedMeasurementSettings

Required. The settings to update. The name field is used to identify the settings to be updated.

updateMaskFieldMask

Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
EnhancedMeasurementSettings

updateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest request)

public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest request)

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateEnhancedMeasurementSettingsRequest request =
       UpdateEnhancedMeasurementSettingsRequest.newBuilder()
           .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   EnhancedMeasurementSettings response =
       analyticsAdminServiceClient.updateEnhancedMeasurementSettings(request);
 }
 
Parameter
NameDescription
requestUpdateEnhancedMeasurementSettingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
EnhancedMeasurementSettings

updateEnhancedMeasurementSettingsCallable()

public final UnaryCallable<UpdateEnhancedMeasurementSettingsRequest,EnhancedMeasurementSettings> updateEnhancedMeasurementSettingsCallable()

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

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateEnhancedMeasurementSettingsRequest request =
       UpdateEnhancedMeasurementSettingsRequest.newBuilder()
           .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<EnhancedMeasurementSettings> future =
       analyticsAdminServiceClient
           .updateEnhancedMeasurementSettingsCallable()
           .futureCall(request);
   // Do something.
   EnhancedMeasurementSettings response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateEnhancedMeasurementSettingsRequest,EnhancedMeasurementSettings>

updateExpandedDataSet(ExpandedDataSet expandedDataSet, FieldMask updateMask)

public final ExpandedDataSet updateExpandedDataSet(ExpandedDataSet expandedDataSet, FieldMask updateMask)

Updates a ExpandedDataSet on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   ExpandedDataSet response =
       analyticsAdminServiceClient.updateExpandedDataSet(expandedDataSet, updateMask);
 }
 
Parameters
NameDescription
expandedDataSetExpandedDataSet

Required. The ExpandedDataSet to update. The resource's name field is used to identify the ExpandedDataSet to be updated.

updateMaskFieldMask

Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
ExpandedDataSet

updateExpandedDataSet(UpdateExpandedDataSetRequest request)

public final ExpandedDataSet updateExpandedDataSet(UpdateExpandedDataSetRequest request)

Updates a ExpandedDataSet on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateExpandedDataSetRequest request =
       UpdateExpandedDataSetRequest.newBuilder()
           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ExpandedDataSet response = analyticsAdminServiceClient.updateExpandedDataSet(request);
 }
 
Parameter
NameDescription
requestUpdateExpandedDataSetRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
ExpandedDataSet

updateExpandedDataSetCallable()

public final UnaryCallable<UpdateExpandedDataSetRequest,ExpandedDataSet> updateExpandedDataSetCallable()

Updates a ExpandedDataSet on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateExpandedDataSetRequest request =
       UpdateExpandedDataSetRequest.newBuilder()
           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<ExpandedDataSet> future =
       analyticsAdminServiceClient.updateExpandedDataSetCallable().futureCall(request);
   // Do something.
   ExpandedDataSet response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateExpandedDataSetRequest,ExpandedDataSet>
public final GoogleAdsLink updateGoogleAdsLink(GoogleAdsLink googleAdsLink, FieldMask updateMask)

Updates a GoogleAdsLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   GoogleAdsLink response =
       analyticsAdminServiceClient.updateGoogleAdsLink(googleAdsLink, updateMask);
 }
 
Parameters
NameDescription
googleAdsLinkGoogleAdsLink

The GoogleAdsLink to update

updateMaskFieldMask

Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
GoogleAdsLink
public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request)

Updates a GoogleAdsLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateGoogleAdsLinkRequest request =
       UpdateGoogleAdsLinkRequest.newBuilder()
           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   GoogleAdsLink response = analyticsAdminServiceClient.updateGoogleAdsLink(request);
 }
 
Parameter
NameDescription
requestUpdateGoogleAdsLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
GoogleAdsLink

updateGoogleAdsLinkCallable()

public final UnaryCallable<UpdateGoogleAdsLinkRequest,GoogleAdsLink> updateGoogleAdsLinkCallable()

Updates a GoogleAdsLink on a property

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateGoogleAdsLinkRequest request =
       UpdateGoogleAdsLinkRequest.newBuilder()
           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<GoogleAdsLink> future =
       analyticsAdminServiceClient.updateGoogleAdsLinkCallable().futureCall(request);
   // Do something.
   GoogleAdsLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateGoogleAdsLinkRequest,GoogleAdsLink>

updateGoogleSignalsSettings(GoogleSignalsSettings googleSignalsSettings, FieldMask updateMask)

public final GoogleSignalsSettings updateGoogleSignalsSettings(GoogleSignalsSettings googleSignalsSettings, FieldMask updateMask)

Updates Google Signals settings for a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   GoogleSignalsSettings response =
       analyticsAdminServiceClient.updateGoogleSignalsSettings(
           googleSignalsSettings, updateMask);
 }
 
Parameters
NameDescription
googleSignalsSettingsGoogleSignalsSettings

Required. The settings to update. The name field is used to identify the settings to be updated.

updateMaskFieldMask

Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
GoogleSignalsSettings

updateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest request)

public final GoogleSignalsSettings updateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest request)

Updates Google Signals settings for a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateGoogleSignalsSettingsRequest request =
       UpdateGoogleSignalsSettingsRequest.newBuilder()
           .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   GoogleSignalsSettings response =
       analyticsAdminServiceClient.updateGoogleSignalsSettings(request);
 }
 
Parameter
NameDescription
requestUpdateGoogleSignalsSettingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
GoogleSignalsSettings

updateGoogleSignalsSettingsCallable()

public final UnaryCallable<UpdateGoogleSignalsSettingsRequest,GoogleSignalsSettings> updateGoogleSignalsSettingsCallable()

Updates Google Signals settings for a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateGoogleSignalsSettingsRequest request =
       UpdateGoogleSignalsSettingsRequest.newBuilder()
           .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<GoogleSignalsSettings> future =
       analyticsAdminServiceClient.updateGoogleSignalsSettingsCallable().futureCall(request);
   // Do something.
   GoogleSignalsSettings response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateGoogleSignalsSettingsRequest,GoogleSignalsSettings>

updateMeasurementProtocolSecret(MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask)

public final MeasurementProtocolSecret updateMeasurementProtocolSecret(MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask)

Updates a measurement protocol secret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   MeasurementProtocolSecret measurementProtocolSecret =
       MeasurementProtocolSecret.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   MeasurementProtocolSecret response =
       analyticsAdminServiceClient.updateMeasurementProtocolSecret(
           measurementProtocolSecret, updateMask);
 }
 
Parameters
NameDescription
measurementProtocolSecretMeasurementProtocolSecret

Required. The measurement protocol secret to update.

updateMaskFieldMask

The list of fields to be updated. Omitted fields will not be updated.

Returns
TypeDescription
MeasurementProtocolSecret

updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest request)

public final MeasurementProtocolSecret updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest request)

Updates a measurement protocol secret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateMeasurementProtocolSecretRequest request =
       UpdateMeasurementProtocolSecretRequest.newBuilder()
           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   MeasurementProtocolSecret response =
       analyticsAdminServiceClient.updateMeasurementProtocolSecret(request);
 }
 
Parameter
NameDescription
requestUpdateMeasurementProtocolSecretRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
MeasurementProtocolSecret

updateMeasurementProtocolSecretCallable()

public final UnaryCallable<UpdateMeasurementProtocolSecretRequest,MeasurementProtocolSecret> updateMeasurementProtocolSecretCallable()

Updates a measurement protocol secret.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateMeasurementProtocolSecretRequest request =
       UpdateMeasurementProtocolSecretRequest.newBuilder()
           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<MeasurementProtocolSecret> future =
       analyticsAdminServiceClient.updateMeasurementProtocolSecretCallable().futureCall(request);
   // Do something.
   MeasurementProtocolSecret response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateMeasurementProtocolSecretRequest,MeasurementProtocolSecret>

updateProperty(Property property, FieldMask updateMask)

public final Property updateProperty(Property property, FieldMask updateMask)

Updates a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   Property property = Property.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Property response = analyticsAdminServiceClient.updateProperty(property, updateMask);
 }
 
Parameters
NameDescription
propertyProperty

Required. The property to update. The property's name field is used to identify the property to be updated.

updateMaskFieldMask

Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
Property

updateProperty(UpdatePropertyRequest request)

public final Property updateProperty(UpdatePropertyRequest request)

Updates a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdatePropertyRequest request =
       UpdatePropertyRequest.newBuilder()
           .setProperty(Property.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   Property response = analyticsAdminServiceClient.updateProperty(request);
 }
 
Parameter
NameDescription
requestUpdatePropertyRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Property

updatePropertyCallable()

public final UnaryCallable<UpdatePropertyRequest,Property> updatePropertyCallable()

Updates a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdatePropertyRequest request =
       UpdatePropertyRequest.newBuilder()
           .setProperty(Property.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<Property> future =
       analyticsAdminServiceClient.updatePropertyCallable().futureCall(request);
   // Do something.
   Property response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdatePropertyRequest,Property>
public final SearchAds360Link updateSearchAds360Link(SearchAds360Link searchAds360Link, FieldMask updateMask)

Updates a SearchAds360Link on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   SearchAds360Link response =
       analyticsAdminServiceClient.updateSearchAds360Link(searchAds360Link, updateMask);
 }
 
Parameters
NameDescription
searchAds360LinkSearchAds360Link

The SearchAds360Link to update

updateMaskFieldMask

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
SearchAds360Link
public final SearchAds360Link updateSearchAds360Link(UpdateSearchAds360LinkRequest request)

Updates a SearchAds360Link on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateSearchAds360LinkRequest request =
       UpdateSearchAds360LinkRequest.newBuilder()
           .setSearchAds360Link(SearchAds360Link.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   SearchAds360Link response = analyticsAdminServiceClient.updateSearchAds360Link(request);
 }
 
Parameter
NameDescription
requestUpdateSearchAds360LinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SearchAds360Link

updateSearchAds360LinkCallable()

public final UnaryCallable<UpdateSearchAds360LinkRequest,SearchAds360Link> updateSearchAds360LinkCallable()

Updates a SearchAds360Link on a property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateSearchAds360LinkRequest request =
       UpdateSearchAds360LinkRequest.newBuilder()
           .setSearchAds360Link(SearchAds360Link.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<SearchAds360Link> future =
       analyticsAdminServiceClient.updateSearchAds360LinkCallable().futureCall(request);
   // Do something.
   SearchAds360Link response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateSearchAds360LinkRequest,SearchAds360Link>
public final UserLink updateUserLink(UpdateUserLinkRequest request)

Updates a user link on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateUserLinkRequest request =
       UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build();
   UserLink response = analyticsAdminServiceClient.updateUserLink(request);
 }
 
Parameter
NameDescription
requestUpdateUserLinkRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
UserLink
public final UserLink updateUserLink(UserLink userLink)

Updates a user link on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UserLink userLink = UserLink.newBuilder().build();
   UserLink response = analyticsAdminServiceClient.updateUserLink(userLink);
 }
 
Parameter
NameDescription
userLinkUserLink

Required. The user link to update.

Returns
TypeDescription
UserLink

updateUserLinkCallable()

public final UnaryCallable<UpdateUserLinkRequest,UserLink> updateUserLinkCallable()

Updates a user link on an account or property.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
     AnalyticsAdminServiceClient.create()) {
   UpdateUserLinkRequest request =
       UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build();
   ApiFuture<UserLink> future =
       analyticsAdminServiceClient.updateUserLinkCallable().futureCall(request);
   // Do something.
   UserLink response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateUserLinkRequest,UserLink>