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. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *
Returns an error if the target is not found. @@ -456,7 +456,7 @@ public final void deleteAccount(AccountName name) { * 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. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *
Returns an error if the target is not found. @@ -493,7 +493,7 @@ public final void deleteAccount(String name) { * 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. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *
Returns an error if the target is not found. @@ -529,7 +529,7 @@ public final void deleteAccount(DeleteAccountRequest request) { * 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. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *
Returns an error if the target is not found.
@@ -1145,7 +1145,7 @@ public final UnaryCallable If the properties are not restored before the expiration time, the Property and all child
- * resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged.
+ * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged.
* https://support.google.com/analytics/answer/6154772
*
* Returns an error if the target is not found, or is not a GA4 Property.
@@ -1183,7 +1183,7 @@ public final Property deleteProperty(PropertyName name) {
* 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.
+ * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged.
* https://support.google.com/analytics/answer/6154772
*
* Returns an error if the target is not found, or is not a GA4 Property.
@@ -1220,7 +1220,7 @@ public final Property deleteProperty(String name) {
* 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.
+ * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged.
* https://support.google.com/analytics/answer/6154772
*
* Returns an error if the target is not found, or is not a GA4 Property.
@@ -1258,7 +1258,7 @@ public final Property deleteProperty(DeletePropertyRequest request) {
* 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.
+ * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged.
* https://support.google.com/analytics/answer/6154772
*
* Returns an error if the target is not found, or is not a GA4 Property.
@@ -1383,7 +1383,9 @@ public final UnaryCallable Properties can have at most one FirebaseLink.
*
* Sample code:
*
@@ -1395,23 +1397,30 @@ public final UnaryCallable Properties can have at most one FirebaseLink.
*
* Sample code:
*
@@ -1423,22 +1432,30 @@ public final UserLink getUserLink(UserLinkName name) {
* // 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);
+ * String parent = PropertyName.of("[PROPERTY]").toString();
+ * FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
+ * FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
* }
* }
*
- * @param name Required. Example format: accounts/1234/userLinks/5678
+ * @param parent Required. Format: properties/{property_id} Example: properties/1234
+ * @param firebaseLink Required. The Firebase link to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UserLink getUserLink(String name) {
- GetUserLinkRequest request = GetUserLinkRequest.newBuilder().setName(name).build();
- return getUserLink(request);
+ public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebaseLink) {
+ CreateFirebaseLinkRequest request =
+ CreateFirebaseLinkRequest.newBuilder()
+ .setParent(parent)
+ .setFirebaseLink(firebaseLink)
+ .build();
+ return createFirebaseLink(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets information about a user's link to an account or property.
+ * Creates a FirebaseLink.
+ *
+ * Properties can have at most one FirebaseLink.
*
* Sample code:
*
@@ -1450,24 +1467,27 @@ public final UserLink getUserLink(String name) {
* // 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())
+ * CreateFirebaseLinkRequest request =
+ * CreateFirebaseLinkRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setFirebaseLink(FirebaseLink.newBuilder().build())
* .build();
- * UserLink response = analyticsAdminServiceClient.getUserLink(request);
+ * FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UserLink getUserLink(GetUserLinkRequest request) {
- return getUserLinkCallable().call(request);
+ public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request) {
+ return createFirebaseLinkCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets information about a user's link to an account or property.
+ * Creates a FirebaseLink.
+ *
+ * Properties can have at most one FirebaseLink.
*
* Sample code:
*
@@ -1479,24 +1499,25 @@ public final UserLink getUserLink(GetUserLinkRequest request) {
* // 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())
+ * CreateFirebaseLinkRequest request =
+ * CreateFirebaseLinkRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setFirebaseLink(FirebaseLink.newBuilder().build())
* .build();
- * ApiFuture Sample code:
*
@@ -1508,25 +1529,26 @@ public final UnaryCallable Sample code:
*
@@ -1538,26 +1560,24 @@ public final BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksReques
* // 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 Sample code:
*
@@ -1569,27 +1589,53 @@ public final BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksReques
* // 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);
- * }
+ * DeleteFirebaseLinkRequest request =
+ * DeleteFirebaseLinkRequest.newBuilder()
+ * .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
+ * .build();
+ * analyticsAdminServiceClient.deleteFirebaseLink(request);
* }
* }
*
- * @param parent Required. Example format: accounts/1234
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListUserLinksPagedResponse listUserLinks(AccountName parent) {
- ListUserLinksRequest request =
- ListUserLinksRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .build();
- return listUserLinks(request);
+ public final void deleteFirebaseLink(DeleteFirebaseLinkRequest request) {
+ deleteFirebaseLinkCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all user links on an account or property.
+ * Deletes a FirebaseLink on a property
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -1602,26 +1648,27 @@ public final ListUserLinksPagedResponse listUserLinks(AccountName parent) {
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
* PropertyName parent = PropertyName.of("[PROPERTY]");
- * for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
+ * for (FirebaseLink element :
+ * analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. Example format: accounts/1234
+ * @param parent Required. Format: properties/{property_id} Example: properties/1234
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListUserLinksPagedResponse listUserLinks(PropertyName parent) {
- ListUserLinksRequest request =
- ListUserLinksRequest.newBuilder()
+ public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent) {
+ ListFirebaseLinksRequest request =
+ ListFirebaseLinksRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
- return listUserLinks(request);
+ return listFirebaseLinks(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all user links on an account or property.
+ * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
*
* Sample code:
*
@@ -1633,24 +1680,26 @@ public final ListUserLinksPagedResponse listUserLinks(PropertyName parent) {
* // 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()) {
+ * String parent = PropertyName.of("[PROPERTY]").toString();
+ * for (FirebaseLink element :
+ * analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. Example format: accounts/1234
+ * @param parent Required. Format: properties/{property_id} Example: properties/1234
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListUserLinksPagedResponse listUserLinks(String parent) {
- ListUserLinksRequest request = ListUserLinksRequest.newBuilder().setParent(parent).build();
- return listUserLinks(request);
+ public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) {
+ ListFirebaseLinksRequest request =
+ ListFirebaseLinksRequest.newBuilder().setParent(parent).build();
+ return listFirebaseLinks(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all user links on an account or property.
+ * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
*
* Sample code:
*
@@ -1662,13 +1711,14 @@ public final ListUserLinksPagedResponse listUserLinks(String parent) {
* // 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())
+ * ListFirebaseLinksRequest request =
+ * ListFirebaseLinksRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * for (UserLink element : analyticsAdminServiceClient.listUserLinks(request).iterateAll()) {
+ * for (FirebaseLink element :
+ * analyticsAdminServiceClient.listFirebaseLinks(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -1677,13 +1727,13 @@ public final ListUserLinksPagedResponse listUserLinks(String parent) {
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest request) {
- return listUserLinksPagedCallable().call(request);
+ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksRequest request) {
+ return listFirebaseLinksPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all user links on an account or property.
+ * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
*
* Sample code:
*
@@ -1695,29 +1745,29 @@ public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest reque
* // 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())
+ * ListFirebaseLinksRequest request =
+ * ListFirebaseLinksRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * ApiFuture Sample code:
*
@@ -1729,16 +1779,16 @@ public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest reque
* // 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())
+ * ListFirebaseLinksRequest request =
+ * ListFirebaseLinksRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
* while (true) {
- * ListUserLinksResponse response =
- * analyticsAdminServiceClient.listUserLinksCallable().call(request);
- * for (UserLink element : response.getUserLinksList()) {
+ * ListFirebaseLinksResponse response =
+ * analyticsAdminServiceClient.listFirebaseLinksCallable().call(request);
+ * for (FirebaseLink element : response.getFirebaseLinksList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -1751,19 +1801,14 @@ public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest reque
* }
* }
*/
- public final UnaryCallable 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.
+ * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
*
* Sample code:
*
@@ -1775,35 +1820,26 @@ public final UnaryCallable 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.
+ * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
*
* Sample code:
*
@@ -1815,35 +1851,25 @@ public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest re
* // 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 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.
+ * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
*
* Sample code:
*
@@ -1855,40 +1881,24 @@ public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest re
* // 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")
+ * GetGlobalSiteTagRequest request =
+ * GetGlobalSiteTagRequest.newBuilder()
+ * .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString())
* .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;
- * }
- * }
+ * GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(request);
* }
* }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable 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.
+ * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
*
* Sample code:
*
@@ -1900,32 +1910,24 @@ public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest re
* // 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);
+ * GetGlobalSiteTagRequest request =
+ * GetGlobalSiteTagRequest.newBuilder()
+ * .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+ * .build();
+ * ApiFuture If the user with the specified email already has permissions on the account or property,
- * then the user's existing permissions will be unioned with the permissions specified in the new
- * UserLink.
+ * Creates a GoogleAdsLink.
*
* Sample code:
*
@@ -1938,31 +1940,28 @@ public final UserLink createUserLink(AccountName parent, UserLink userLink) {
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
* PropertyName parent = PropertyName.of("[PROPERTY]");
- * UserLink userLink = UserLink.newBuilder().build();
- * UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
+ * GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
+ * GoogleAdsLink response =
+ * analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
* }
* }
*
- * @param parent Required. Example format: accounts/1234
- * @param userLink Required. The user link to create.
+ * @param parent Required. Example format: properties/1234
+ * @param googleAdsLink Required. The GoogleAdsLink to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UserLink createUserLink(PropertyName parent, UserLink userLink) {
- CreateUserLinkRequest request =
- CreateUserLinkRequest.newBuilder()
+ public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink) {
+ CreateGoogleAdsLinkRequest request =
+ CreateGoogleAdsLinkRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
- .setUserLink(userLink)
+ .setGoogleAdsLink(googleAdsLink)
.build();
- return createUserLink(request);
+ return createGoogleAdsLink(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a user link on an account or property.
- *
- * If the user with the specified email already has permissions on the account or property,
- * then the user's existing permissions will be unioned with the permissions specified in the new
- * UserLink.
+ * Creates a GoogleAdsLink.
*
* Sample code:
*
@@ -1974,29 +1973,29 @@ public final UserLink createUserLink(PropertyName parent, UserLink userLink) {
* // 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);
+ * String parent = PropertyName.of("[PROPERTY]").toString();
+ * GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
+ * GoogleAdsLink response =
+ * analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
* }
* }
*
- * @param parent Required. Example format: accounts/1234
- * @param userLink Required. The user link to create.
+ * @param parent Required. Example format: properties/1234
+ * @param googleAdsLink Required. The GoogleAdsLink to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UserLink createUserLink(String parent, UserLink userLink) {
- CreateUserLinkRequest request =
- CreateUserLinkRequest.newBuilder().setParent(parent).setUserLink(userLink).build();
- return createUserLink(request);
+ public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink googleAdsLink) {
+ CreateGoogleAdsLinkRequest request =
+ CreateGoogleAdsLinkRequest.newBuilder()
+ .setParent(parent)
+ .setGoogleAdsLink(googleAdsLink)
+ .build();
+ return createGoogleAdsLink(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a user link on an account or property.
- *
- * If the user with the specified email already has permissions on the account or property,
- * then the user's existing permissions will be unioned with the permissions specified in the new
- * UserLink.
+ * Creates a GoogleAdsLink.
*
* Sample code:
*
@@ -2008,30 +2007,25 @@ public final UserLink createUserLink(String parent, UserLink userLink) {
* // 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())
+ * CreateGoogleAdsLinkRequest request =
+ * CreateGoogleAdsLinkRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
* .build();
- * UserLink response = analyticsAdminServiceClient.createUserLink(request);
+ * GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UserLink createUserLink(CreateUserLinkRequest request) {
- return createUserLinkCallable().call(request);
+ public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request) {
+ return createGoogleAdsLinkCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a user link on an account or property.
- *
- * If the user with the specified email already has permissions on the account or property,
- * then the user's existing permissions will be unioned with the permissions specified in the new
- * UserLink.
+ * Creates a GoogleAdsLink.
*
* Sample code:
*
@@ -2043,29 +2037,26 @@ public final UserLink createUserLink(CreateUserLinkRequest request) {
* // 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())
+ * CreateGoogleAdsLinkRequest request =
+ * CreateGoogleAdsLinkRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
* .build();
- * ApiFuture This method is transactional. If any UserLink cannot be created, none of the UserLinks will
- * be created.
+ * Updates a GoogleAdsLink on a property
*
* Sample code:
*
@@ -2077,31 +2068,32 @@ public final UnaryCallable This method is transactional. If any UserLink cannot be created, none of the UserLinks will
- * be created.
+ * Updates a GoogleAdsLink on a property
*
* Sample code:
*
@@ -2113,27 +2105,25 @@ public final BatchCreateUserLinksResponse batchCreateUserLinks(
* // 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 Sample code:
*
@@ -2145,23 +2135,26 @@ public final BatchCreateUserLinksResponse batchCreateUserLinks(
* // 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);
+ * UpdateGoogleAdsLinkRequest request =
+ * UpdateGoogleAdsLinkRequest.newBuilder()
+ * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture Sample code:
*
@@ -2173,22 +2166,25 @@ public final UserLink updateUserLink(UserLink userLink) {
* // 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);
+ * GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]");
+ * analyticsAdminServiceClient.deleteGoogleAdsLink(name);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param name Required. Example format: properties/1234/googleAdsLinks/5678
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UserLink updateUserLink(UpdateUserLinkRequest request) {
- return updateUserLinkCallable().call(request);
+ public final void deleteGoogleAdsLink(GoogleAdsLinkName name) {
+ DeleteGoogleAdsLinkRequest request =
+ DeleteGoogleAdsLinkRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteGoogleAdsLink(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a user link on an account or property.
+ * Deletes a GoogleAdsLink on a property
*
* Sample code:
*
@@ -2200,22 +2196,23 @@ public final UserLink updateUserLink(UpdateUserLinkRequest request) {
* // 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 Sample code:
*
@@ -2227,27 +2224,24 @@ public final UnaryCallable Sample code:
*
@@ -2259,26 +2253,24 @@ public final BatchUpdateUserLinksResponse batchUpdateUserLinks(
* // 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 Sample code:
*
@@ -2290,23 +2282,28 @@ public final BatchUpdateUserLinksResponse batchUpdateUserLinks(
* // 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);
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * for (GoogleAdsLink element :
+ * analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
- * @param name Required. Example format: accounts/1234/userLinks/5678
+ * @param parent Required. Example format: properties/1234
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteUserLink(UserLinkName name) {
- DeleteUserLinkRequest request =
- DeleteUserLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build();
- deleteUserLink(request);
+ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName parent) {
+ ListGoogleAdsLinksRequest request =
+ ListGoogleAdsLinksRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listGoogleAdsLinks(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a user link on an account or property.
+ * Lists GoogleAdsLinks on a property.
*
* Sample code:
*
@@ -2318,22 +2315,26 @@ public final void deleteUserLink(UserLinkName name) {
* // 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);
+ * String parent = PropertyName.of("[PROPERTY]").toString();
+ * for (GoogleAdsLink element :
+ * analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
- * @param name Required. Example format: accounts/1234/userLinks/5678
+ * @param parent Required. Example format: properties/1234
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteUserLink(String name) {
- DeleteUserLinkRequest request = DeleteUserLinkRequest.newBuilder().setName(name).build();
- deleteUserLink(request);
+ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent) {
+ ListGoogleAdsLinksRequest request =
+ ListGoogleAdsLinksRequest.newBuilder().setParent(parent).build();
+ return listGoogleAdsLinks(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a user link on an account or property.
+ * Lists GoogleAdsLinks on a property.
*
* Sample code:
*
@@ -2345,24 +2346,30 @@ public final void deleteUserLink(String name) {
* // 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())
+ * ListGoogleAdsLinksRequest request =
+ * ListGoogleAdsLinksRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
* .build();
- * analyticsAdminServiceClient.deleteUserLink(request);
+ * for (GoogleAdsLink element :
+ * analyticsAdminServiceClient.listGoogleAdsLinks(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteUserLink(DeleteUserLinkRequest request) {
- deleteUserLinkCallable().call(request);
+ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(
+ ListGoogleAdsLinksRequest request) {
+ return listGoogleAdsLinksPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a user link on an account or property.
+ * Lists GoogleAdsLinks on a property.
*
* Sample code:
*
@@ -2374,24 +2381,29 @@ public final void deleteUserLink(DeleteUserLinkRequest request) {
* // 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())
+ * ListGoogleAdsLinksRequest request =
+ * ListGoogleAdsLinksRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
* .build();
- * ApiFuture Sample code:
*
@@ -2403,25 +2415,36 @@ public final UnaryCallable Sample code:
*
@@ -2433,27 +2456,26 @@ public final void batchDeleteUserLinks(BatchDeleteUserLinksRequest request) {
* // 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 Properties can have at most one FirebaseLink.
+ * Get data sharing settings on an account. Data sharing settings are singletons.
*
* Sample code:
*
@@ -2465,65 +2487,24 @@ public final UnaryCallable Properties can have at most one FirebaseLink.
- *
- * Sample code:
- *
- * Properties can have at most one FirebaseLink.
+ * Get data sharing settings on an account. Data sharing settings are singletons.
*
* Sample code:
*
@@ -2535,27 +2516,24 @@ public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebas
* // 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())
+ * GetDataSharingSettingsRequest request =
+ * GetDataSharingSettingsRequest.newBuilder()
+ * .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
* .build();
- * FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(request);
+ * DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request) {
- return createFirebaseLinkCallable().call(request);
+ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request) {
+ return getDataSharingSettingsCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a FirebaseLink.
- *
- * Properties can have at most one FirebaseLink.
+ * Get data sharing settings on an account. Data sharing settings are singletons.
*
* Sample code:
*
@@ -2567,25 +2545,25 @@ public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request)
* // 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())
+ * GetDataSharingSettingsRequest request =
+ * GetDataSharingSettingsRequest.newBuilder()
+ * .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
* .build();
- * ApiFuture Sample code:
*
@@ -2597,26 +2575,30 @@ public final UnaryCallable Sample code:
*
@@ -2628,24 +2610,28 @@ public final void deleteFirebaseLink(FirebaseLinkName name) {
* // 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);
+ * String name =
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString();
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
* }
* }
*
- * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
- * Example: properties/1234/firebaseLinks/5678
+ * @param name Required. The name of the measurement protocol secret to lookup. Format:
+ * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteFirebaseLink(String name) {
- DeleteFirebaseLinkRequest request =
- DeleteFirebaseLinkRequest.newBuilder().setName(name).build();
- deleteFirebaseLink(request);
+ public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) {
+ GetMeasurementProtocolSecretRequest request =
+ GetMeasurementProtocolSecretRequest.newBuilder().setName(name).build();
+ return getMeasurementProtocolSecret(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a FirebaseLink on a property
+ * Lookup for a single "GA4" MeasurementProtocolSecret.
*
* Sample code:
*
@@ -2657,24 +2643,29 @@ public final void deleteFirebaseLink(String name) {
* // 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())
+ * GetMeasurementProtocolSecretRequest request =
+ * GetMeasurementProtocolSecretRequest.newBuilder()
+ * .setName(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
* .build();
- * analyticsAdminServiceClient.deleteFirebaseLink(request);
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.getMeasurementProtocolSecret(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteFirebaseLink(DeleteFirebaseLinkRequest request) {
- deleteFirebaseLinkCallable().call(request);
+ public final MeasurementProtocolSecret getMeasurementProtocolSecret(
+ GetMeasurementProtocolSecretRequest request) {
+ return getMeasurementProtocolSecretCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a FirebaseLink on a property
+ * Lookup for a single "GA4" MeasurementProtocolSecret.
*
* Sample code:
*
@@ -2686,24 +2677,28 @@ public final void deleteFirebaseLink(DeleteFirebaseLinkRequest request) {
* // 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())
+ * GetMeasurementProtocolSecretRequest request =
+ * GetMeasurementProtocolSecretRequest.newBuilder()
+ * .setName(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -2715,28 +2710,30 @@ public final UnaryCallable Sample code:
*
@@ -2748,26 +2745,28 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName paren
* // 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()) {
+ * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
+ * for (MeasurementProtocolSecret element :
+ * analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. Format: properties/{property_id} Example: properties/1234
+ * @param parent Required. The resource name of the parent stream. Format:
+ * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) {
- ListFirebaseLinksRequest request =
- ListFirebaseLinksRequest.newBuilder().setParent(parent).build();
- return listFirebaseLinks(request);
+ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
+ String parent) {
+ ListMeasurementProtocolSecretsRequest request =
+ ListMeasurementProtocolSecretsRequest.newBuilder().setParent(parent).build();
+ return listMeasurementProtocolSecrets(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
+ * Returns child MeasurementProtocolSecrets under the specified parent Property.
*
* Sample code:
*
@@ -2779,14 +2778,14 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) {
* // 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())
+ * ListMeasurementProtocolSecretsRequest request =
+ * ListMeasurementProtocolSecretsRequest.newBuilder()
+ * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * for (FirebaseLink element :
- * analyticsAdminServiceClient.listFirebaseLinks(request).iterateAll()) {
+ * for (MeasurementProtocolSecret element :
+ * analyticsAdminServiceClient.listMeasurementProtocolSecrets(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -2795,13 +2794,14 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) {
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksRequest request) {
- return listFirebaseLinksPagedCallable().call(request);
+ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
+ ListMeasurementProtocolSecretsRequest request) {
+ return listMeasurementProtocolSecretsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
+ * Returns child MeasurementProtocolSecrets under the specified parent Property.
*
* Sample code:
*
@@ -2813,29 +2813,32 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR
* // 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())
+ * ListMeasurementProtocolSecretsRequest request =
+ * ListMeasurementProtocolSecretsRequest.newBuilder()
+ * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * ApiFuture Sample code:
*
@@ -2847,16 +2850,16 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR
* // 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())
+ * ListMeasurementProtocolSecretsRequest request =
+ * ListMeasurementProtocolSecretsRequest.newBuilder()
+ * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
* while (true) {
- * ListFirebaseLinksResponse response =
- * analyticsAdminServiceClient.listFirebaseLinksCallable().call(request);
- * for (FirebaseLink element : response.getFirebaseLinksList()) {
+ * ListMeasurementProtocolSecretsResponse response =
+ * analyticsAdminServiceClient.listMeasurementProtocolSecretsCallable().call(request);
+ * for (MeasurementProtocolSecret element : response.getMeasurementProtocolSecretsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -2869,14 +2872,15 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR
* }
* }
*/
- public final UnaryCallable Sample code:
*
@@ -2888,26 +2892,33 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR
* // 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);
+ * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
+ * MeasurementProtocolSecret measurementProtocolSecret =
+ * MeasurementProtocolSecret.newBuilder().build();
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.createMeasurementProtocolSecret(
+ * parent, measurementProtocolSecret);
* }
* }
*
- * @param name 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"
+ * @param parent Required. The parent resource where this secret will be created. Format:
+ * properties/{property}/dataStreams/{dataStream}
+ * @param measurementProtocolSecret Required. The measurement protocol secret to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) {
- GetGlobalSiteTagRequest request =
- GetGlobalSiteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build();
- return getGlobalSiteTag(request);
+ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
+ DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) {
+ CreateMeasurementProtocolSecretRequest request =
+ CreateMeasurementProtocolSecretRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMeasurementProtocolSecret(measurementProtocolSecret)
+ .build();
+ return createMeasurementProtocolSecret(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
+ * Creates a measurement protocol secret.
*
* Sample code:
*
@@ -2919,25 +2930,33 @@ public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) {
* // 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);
+ * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
+ * MeasurementProtocolSecret measurementProtocolSecret =
+ * MeasurementProtocolSecret.newBuilder().build();
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.createMeasurementProtocolSecret(
+ * parent, measurementProtocolSecret);
* }
* }
*
- * @param name 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"
+ * @param parent Required. The parent resource where this secret will be created. Format:
+ * properties/{property}/dataStreams/{dataStream}
+ * @param measurementProtocolSecret Required. The measurement protocol secret to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GlobalSiteTag getGlobalSiteTag(String name) {
- GetGlobalSiteTagRequest request = GetGlobalSiteTagRequest.newBuilder().setName(name).build();
- return getGlobalSiteTag(request);
+ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
+ String parent, MeasurementProtocolSecret measurementProtocolSecret) {
+ CreateMeasurementProtocolSecretRequest request =
+ CreateMeasurementProtocolSecretRequest.newBuilder()
+ .setParent(parent)
+ .setMeasurementProtocolSecret(measurementProtocolSecret)
+ .build();
+ return createMeasurementProtocolSecret(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
+ * Creates a measurement protocol secret.
*
* Sample code:
*
@@ -2949,24 +2968,27 @@ public final GlobalSiteTag getGlobalSiteTag(String name) {
* // 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())
+ * CreateMeasurementProtocolSecretRequest request =
+ * CreateMeasurementProtocolSecretRequest.newBuilder()
+ * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+ * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
* .build();
- * GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(request);
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.createMeasurementProtocolSecret(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request) {
- return getGlobalSiteTagCallable().call(request);
+ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
+ CreateMeasurementProtocolSecretRequest request) {
+ return createMeasurementProtocolSecretCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
+ * Creates a measurement protocol secret.
*
* Sample code:
*
@@ -2978,24 +3000,26 @@ public final GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request) {
* // 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())
+ * CreateMeasurementProtocolSecretRequest request =
+ * CreateMeasurementProtocolSecretRequest.newBuilder()
+ * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+ * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
* .build();
- * ApiFuture Sample code:
*
@@ -3007,29 +3031,28 @@ public final UnaryCallable Sample code:
*
@@ -3041,29 +3064,27 @@ public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLin
* // 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);
+ * String name =
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString();
+ * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
* }
* }
*
- * @param parent Required. Example format: properties/1234
- * @param googleAdsLink Required. The GoogleAdsLink to create.
+ * @param name Required. The name of the MeasurementProtocolSecret to delete. Format:
+ * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink googleAdsLink) {
- CreateGoogleAdsLinkRequest request =
- CreateGoogleAdsLinkRequest.newBuilder()
- .setParent(parent)
- .setGoogleAdsLink(googleAdsLink)
- .build();
- return createGoogleAdsLink(request);
+ public final void deleteMeasurementProtocolSecret(String name) {
+ DeleteMeasurementProtocolSecretRequest request =
+ DeleteMeasurementProtocolSecretRequest.newBuilder().setName(name).build();
+ deleteMeasurementProtocolSecret(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a GoogleAdsLink.
+ * Deletes target MeasurementProtocolSecret.
*
* Sample code:
*
@@ -3075,25 +3096,28 @@ public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink goog
* // 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())
+ * DeleteMeasurementProtocolSecretRequest request =
+ * DeleteMeasurementProtocolSecretRequest.newBuilder()
+ * .setName(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
* .build();
- * GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(request);
+ * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request) {
- return createGoogleAdsLinkCallable().call(request);
+ public final void deleteMeasurementProtocolSecret(
+ DeleteMeasurementProtocolSecretRequest request) {
+ deleteMeasurementProtocolSecretCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a GoogleAdsLink.
+ * Deletes target MeasurementProtocolSecret.
*
* Sample code:
*
@@ -3105,26 +3129,28 @@ public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest reques
* // 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())
+ * DeleteMeasurementProtocolSecretRequest request =
+ * DeleteMeasurementProtocolSecretRequest.newBuilder()
+ * .setName(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -3136,32 +3162,33 @@ public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest reques
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
+ * MeasurementProtocolSecret measurementProtocolSecret =
+ * MeasurementProtocolSecret.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
- * GoogleAdsLink response =
- * analyticsAdminServiceClient.updateGoogleAdsLink(googleAdsLink, updateMask);
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.updateMeasurementProtocolSecret(
+ * measurementProtocolSecret, updateMask);
* }
* }
*
- * @param googleAdsLink The GoogleAdsLink to update
- * @param updateMask 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.
+ * @param measurementProtocolSecret Required. The measurement protocol secret to update.
+ * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
+ * updated.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GoogleAdsLink updateGoogleAdsLink(
- GoogleAdsLink googleAdsLink, FieldMask updateMask) {
- UpdateGoogleAdsLinkRequest request =
- UpdateGoogleAdsLinkRequest.newBuilder()
- .setGoogleAdsLink(googleAdsLink)
+ public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
+ MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask) {
+ UpdateMeasurementProtocolSecretRequest request =
+ UpdateMeasurementProtocolSecretRequest.newBuilder()
+ .setMeasurementProtocolSecret(measurementProtocolSecret)
.setUpdateMask(updateMask)
.build();
- return updateGoogleAdsLink(request);
+ return updateMeasurementProtocolSecret(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a GoogleAdsLink on a property
+ * Updates a measurement protocol secret.
*
* Sample code:
*
@@ -3173,25 +3200,27 @@ public final GoogleAdsLink updateGoogleAdsLink(
* // 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())
+ * UpdateMeasurementProtocolSecretRequest request =
+ * UpdateMeasurementProtocolSecretRequest.newBuilder()
+ * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * GoogleAdsLink response = analyticsAdminServiceClient.updateGoogleAdsLink(request);
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.updateMeasurementProtocolSecret(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request) {
- return updateGoogleAdsLinkCallable().call(request);
+ public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
+ UpdateMeasurementProtocolSecretRequest request) {
+ return updateMeasurementProtocolSecretCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a GoogleAdsLink on a property
+ * Updates a measurement protocol secret.
*
* Sample code:
*
@@ -3203,26 +3232,29 @@ public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest reques
* // 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())
+ * UpdateMeasurementProtocolSecretRequest request =
+ * UpdateMeasurementProtocolSecretRequest.newBuilder()
+ * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * ApiFuture This acknowledgement must be completed (either in the Google Analytics UI or through this
+ * API) before MeasurementProtocolSecret resources may be created.
*
* Sample code:
*
@@ -3234,25 +3266,30 @@ public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest reques
* // 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);
+ * AcknowledgeUserDataCollectionRequest request =
+ * AcknowledgeUserDataCollectionRequest.newBuilder()
+ * .setProperty(PropertyName.of("[PROPERTY]").toString())
+ * .setAcknowledgement("acknowledgement1769490938")
+ * .build();
+ * AcknowledgeUserDataCollectionResponse response =
+ * analyticsAdminServiceClient.acknowledgeUserDataCollection(request);
* }
* }
*
- * @param name Required. Example format: properties/1234/googleAdsLinks/5678
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteGoogleAdsLink(GoogleAdsLinkName name) {
- DeleteGoogleAdsLinkRequest request =
- DeleteGoogleAdsLinkRequest.newBuilder()
- .setName(name == null ? null : name.toString())
- .build();
- deleteGoogleAdsLink(request);
+ public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection(
+ AcknowledgeUserDataCollectionRequest request) {
+ return acknowledgeUserDataCollectionCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a GoogleAdsLink on a property
+ * 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:
*
@@ -3264,23 +3301,27 @@ public final void deleteGoogleAdsLink(GoogleAdsLinkName name) {
* // 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);
+ * AcknowledgeUserDataCollectionRequest request =
+ * AcknowledgeUserDataCollectionRequest.newBuilder()
+ * .setProperty(PropertyName.of("[PROPERTY]").toString())
+ * .setAcknowledgement("acknowledgement1769490938")
+ * .build();
+ * ApiFuture Sample code:
*
@@ -3292,24 +3333,31 @@ public final void deleteGoogleAdsLink(String name) {
* // 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);
+ * SKAdNetworkConversionValueSchemaName name =
+ * SKAdNetworkConversionValueSchemaName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]");
+ * SKAdNetworkConversionValueSchema response =
+ * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(name);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param name Required. The resource name of SKAdNetwork conversion value schema to look up.
+ * Format:
+ * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request) {
- deleteGoogleAdsLinkCallable().call(request);
+ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema(
+ SKAdNetworkConversionValueSchemaName name) {
+ GetSKAdNetworkConversionValueSchemaRequest request =
+ GetSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getSKAdNetworkConversionValueSchema(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a GoogleAdsLink on a property
+ * Looks up a single SKAdNetworkConversionValueSchema.
*
* Sample code:
*
@@ -3321,24 +3369,29 @@ public final void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request) {
* // 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 Sample code:
*
@@ -3350,28 +3403,29 @@ public final UnaryCallable Sample code:
*
@@ -3383,26 +3437,31 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName par
* // 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);
- * }
+ * GetSKAdNetworkConversionValueSchemaRequest request =
+ * GetSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ * .setName(
+ * SKAdNetworkConversionValueSchemaName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
+ * .toString())
+ * .build();
+ * ApiFuture Sample code:
*
@@ -3414,30 +3473,34 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent) {
* // 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);
- * }
+ * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
+ * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema =
+ * SKAdNetworkConversionValueSchema.newBuilder().build();
+ * SKAdNetworkConversionValueSchema response =
+ * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema(
+ * parent, skadnetworkConversionValueSchema);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param parent Required. The parent resource where this schema will be created. Format:
+ * properties/{property}/dataStreams/{dataStream}
+ * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to
+ * create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(
- ListGoogleAdsLinksRequest request) {
- return listGoogleAdsLinksPagedCallable().call(request);
+ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema(
+ DataStreamName parent, SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema) {
+ CreateSKAdNetworkConversionValueSchemaRequest request =
+ CreateSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema)
+ .build();
+ return createSKAdNetworkConversionValueSchema(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists GoogleAdsLinks on a property.
+ * Creates a SKAdNetworkConversionValueSchema.
*
* Sample code:
*
@@ -3449,29 +3512,34 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(
* // 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 Sample code:
*
@@ -3483,36 +3551,28 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(
* // 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")
+ * CreateSKAdNetworkConversionValueSchemaRequest request =
+ * CreateSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+ * .setSkadnetworkConversionValueSchema(
+ * SKAdNetworkConversionValueSchema.newBuilder().build())
* .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;
- * }
- * }
+ * SKAdNetworkConversionValueSchema response =
+ * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema(request);
* }
* }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable Sample code:
*
@@ -3524,26 +3584,30 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(
* // 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);
+ * CreateSKAdNetworkConversionValueSchemaRequest request =
+ * CreateSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+ * .setSkadnetworkConversionValueSchema(
+ * SKAdNetworkConversionValueSchema.newBuilder().build())
+ * .build();
+ * ApiFuture Sample code:
*
@@ -3555,24 +3619,29 @@ public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName
* // 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);
+ * SKAdNetworkConversionValueSchemaName name =
+ * SKAdNetworkConversionValueSchemaName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]");
+ * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(name);
* }
* }
*
- * @param name Required. The name of the settings to lookup. Format:
- * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings"
+ * @param name Required. The name of the SKAdNetworkConversionValueSchema to delete. Format:
+ * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final DataSharingSettings getDataSharingSettings(String name) {
- GetDataSharingSettingsRequest request =
- GetDataSharingSettingsRequest.newBuilder().setName(name).build();
- return getDataSharingSettings(request);
+ public final void deleteSKAdNetworkConversionValueSchema(
+ SKAdNetworkConversionValueSchemaName name) {
+ DeleteSKAdNetworkConversionValueSchemaRequest request =
+ DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteSKAdNetworkConversionValueSchema(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Get data sharing settings on an account. Data sharing settings are singletons.
+ * Deletes target SKAdNetworkConversionValueSchema.
*
* Sample code:
*
@@ -3584,24 +3653,27 @@ public final DataSharingSettings getDataSharingSettings(String name) {
* // 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);
+ * String name =
+ * SKAdNetworkConversionValueSchemaName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
+ * .toString();
+ * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(name);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param name Required. The name of the SKAdNetworkConversionValueSchema to delete. Format:
+ * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request) {
- return getDataSharingSettingsCallable().call(request);
+ public final void deleteSKAdNetworkConversionValueSchema(String name) {
+ DeleteSKAdNetworkConversionValueSchemaRequest request =
+ DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder().setName(name).build();
+ deleteSKAdNetworkConversionValueSchema(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Get data sharing settings on an account. Data sharing settings are singletons.
+ * Deletes target SKAdNetworkConversionValueSchema.
*
* Sample code:
*
@@ -3613,25 +3685,28 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe
* // 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())
+ * DeleteSKAdNetworkConversionValueSchemaRequest request =
+ * DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ * .setName(
+ * SKAdNetworkConversionValueSchemaName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -3643,30 +3718,30 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe
* // 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);
+ * DeleteSKAdNetworkConversionValueSchemaRequest request =
+ * DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ * .setName(
+ * SKAdNetworkConversionValueSchemaName.of(
+ * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
+ * .toString())
+ * .build();
+ * ApiFuture Sample code:
*
@@ -3678,28 +3753,34 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret(
* // 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);
+ * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema =
+ * SKAdNetworkConversionValueSchema.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * SKAdNetworkConversionValueSchema response =
+ * analyticsAdminServiceClient.updateSKAdNetworkConversionValueSchema(
+ * skadnetworkConversionValueSchema, updateMask);
* }
* }
*
- * @param name Required. The name of the measurement protocol secret to lookup. Format:
- * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+ * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to
+ * update.
+ * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
+ * updated.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) {
- GetMeasurementProtocolSecretRequest request =
- GetMeasurementProtocolSecretRequest.newBuilder().setName(name).build();
- return getMeasurementProtocolSecret(request);
+ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema(
+ SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema, FieldMask updateMask) {
+ UpdateSKAdNetworkConversionValueSchemaRequest request =
+ UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateSKAdNetworkConversionValueSchema(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lookup for a single "GA4" MeasurementProtocolSecret.
+ * Updates a SKAdNetworkConversionValueSchema.
*
* Sample code:
*
@@ -3711,29 +3792,28 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name)
* // 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())
+ * UpdateSKAdNetworkConversionValueSchemaRequest request =
+ * UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ * .setSkadnetworkConversionValueSchema(
+ * SKAdNetworkConversionValueSchema.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * MeasurementProtocolSecret response =
- * analyticsAdminServiceClient.getMeasurementProtocolSecret(request);
+ * SKAdNetworkConversionValueSchema response =
+ * analyticsAdminServiceClient.updateSKAdNetworkConversionValueSchema(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final MeasurementProtocolSecret getMeasurementProtocolSecret(
- GetMeasurementProtocolSecretRequest request) {
- return getMeasurementProtocolSecretCallable().call(request);
+ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema(
+ UpdateSKAdNetworkConversionValueSchemaRequest request) {
+ return updateSKAdNetworkConversionValueSchemaCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lookup for a single "GA4" MeasurementProtocolSecret.
+ * Updates a SKAdNetworkConversionValueSchema.
*
* Sample code:
*
@@ -3745,28 +3825,31 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret(
* // 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())
+ * UpdateSKAdNetworkConversionValueSchemaRequest request =
+ * UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ * .setSkadnetworkConversionValueSchema(
+ * SKAdNetworkConversionValueSchema.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * ApiFuture Sample code:
*
@@ -3779,29 +3862,30 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret(
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
* DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
- * for (MeasurementProtocolSecret element :
- * analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
+ * for (SKAdNetworkConversionValueSchema element :
+ * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. The resource name of the parent stream. Format:
- * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+ * @param parent Required. The DataStream resource to list schemas for. Format:
+ * properties/{property_id}/dataStreams/{dataStream} Example: properties/1234/dataStreams/5678
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
- DataStreamName parent) {
- ListMeasurementProtocolSecretsRequest request =
- ListMeasurementProtocolSecretsRequest.newBuilder()
+ public final ListSKAdNetworkConversionValueSchemasPagedResponse
+ listSKAdNetworkConversionValueSchemas(DataStreamName parent) {
+ ListSKAdNetworkConversionValueSchemasRequest request =
+ ListSKAdNetworkConversionValueSchemasRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
- return listMeasurementProtocolSecrets(request);
+ return listSKAdNetworkConversionValueSchemas(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns child MeasurementProtocolSecrets under the specified parent Property.
+ * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one
+ * SKAdNetworkConversionValueSchema.
*
* Sample code:
*
@@ -3814,27 +3898,28 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
* String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
- * for (MeasurementProtocolSecret element :
- * analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
+ * for (SKAdNetworkConversionValueSchema element :
+ * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. The resource name of the parent stream. Format:
- * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+ * @param parent Required. The DataStream resource to list schemas for. Format:
+ * properties/{property_id}/dataStreams/{dataStream} Example: properties/1234/dataStreams/5678
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
- String parent) {
- ListMeasurementProtocolSecretsRequest request =
- ListMeasurementProtocolSecretsRequest.newBuilder().setParent(parent).build();
- return listMeasurementProtocolSecrets(request);
+ public final ListSKAdNetworkConversionValueSchemasPagedResponse
+ listSKAdNetworkConversionValueSchemas(String parent) {
+ ListSKAdNetworkConversionValueSchemasRequest request =
+ ListSKAdNetworkConversionValueSchemasRequest.newBuilder().setParent(parent).build();
+ return listSKAdNetworkConversionValueSchemas(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns child MeasurementProtocolSecrets under the specified parent Property.
+ * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one
+ * SKAdNetworkConversionValueSchema.
*
* Sample code:
*
@@ -3846,14 +3931,14 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ListMeasurementProtocolSecretsRequest request =
- * ListMeasurementProtocolSecretsRequest.newBuilder()
+ * ListSKAdNetworkConversionValueSchemasRequest request =
+ * ListSKAdNetworkConversionValueSchemasRequest.newBuilder()
* .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * for (MeasurementProtocolSecret element :
- * analyticsAdminServiceClient.listMeasurementProtocolSecrets(request).iterateAll()) {
+ * for (SKAdNetworkConversionValueSchema element :
+ * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -3862,14 +3947,15 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
- ListMeasurementProtocolSecretsRequest request) {
- return listMeasurementProtocolSecretsPagedCallable().call(request);
+ public final ListSKAdNetworkConversionValueSchemasPagedResponse
+ listSKAdNetworkConversionValueSchemas(ListSKAdNetworkConversionValueSchemasRequest request) {
+ return listSKAdNetworkConversionValueSchemasPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns child MeasurementProtocolSecrets under the specified parent Property.
+ * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one
+ * SKAdNetworkConversionValueSchema.
*
* Sample code:
*
@@ -3881,32 +3967,34 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ListMeasurementProtocolSecretsRequest request =
- * ListMeasurementProtocolSecretsRequest.newBuilder()
+ * ListSKAdNetworkConversionValueSchemasRequest request =
+ * ListSKAdNetworkConversionValueSchemasRequest.newBuilder()
* .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * ApiFuture Sample code:
*
@@ -3918,16 +4006,19 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ListMeasurementProtocolSecretsRequest request =
- * ListMeasurementProtocolSecretsRequest.newBuilder()
+ * ListSKAdNetworkConversionValueSchemasRequest request =
+ * ListSKAdNetworkConversionValueSchemasRequest.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()) {
+ * ListSKAdNetworkConversionValueSchemasResponse response =
+ * analyticsAdminServiceClient
+ * .listSKAdNetworkConversionValueSchemasCallable()
+ * .call(request);
+ * for (SKAdNetworkConversionValueSchema element :
+ * response.getSkadnetworkConversionValueSchemasList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -3941,14 +4032,15 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
* }
*/
public final UnaryCallable<
- ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse>
- listMeasurementProtocolSecretsCallable() {
- return stub.listMeasurementProtocolSecretsCallable();
+ ListSKAdNetworkConversionValueSchemasRequest,
+ ListSKAdNetworkConversionValueSchemasResponse>
+ listSKAdNetworkConversionValueSchemasCallable() {
+ return stub.listSKAdNetworkConversionValueSchemasCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a measurement protocol secret.
+ * Searches through all changes to an account or its children given the specified set of filters.
*
* Sample code:
*
@@ -3960,33 +4052,36 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
* // 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);
+ * SearchChangeHistoryEventsRequest request =
+ * SearchChangeHistoryEventsRequest.newBuilder()
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
+ * .setProperty(PropertyName.of("[PROPERTY]").toString())
+ * .addAllResourceType(new ArrayList Sample code:
*
@@ -3998,33 +4093,36 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
* // 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);
+ * SearchChangeHistoryEventsRequest request =
+ * SearchChangeHistoryEventsRequest.newBuilder()
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
+ * .setProperty(PropertyName.of("[PROPERTY]").toString())
+ * .addAllResourceType(new ArrayList Sample code:
*
@@ -4036,27 +4134,42 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
* // 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())
+ * SearchChangeHistoryEventsRequest request =
+ * SearchChangeHistoryEventsRequest.newBuilder()
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
+ * .setProperty(PropertyName.of("[PROPERTY]").toString())
+ * .addAllResourceType(new ArrayList Sample code:
*
@@ -4068,26 +4181,26 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
* // 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 Sample code:
*
@@ -4099,28 +4212,24 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
* // 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);
+ * String name = GoogleSignalsSettingsName.of("[PROPERTY]").toString();
+ * GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
* }
* }
*
- * @param name Required. The name of the MeasurementProtocolSecret to delete. Format:
- * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+ * @param name Required. The name of the google signals settings to retrieve. Format:
+ * properties/{property}/googleSignalsSettings
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) {
- DeleteMeasurementProtocolSecretRequest request =
- DeleteMeasurementProtocolSecretRequest.newBuilder()
- .setName(name == null ? null : name.toString())
- .build();
- deleteMeasurementProtocolSecret(request);
+ public final GoogleSignalsSettings getGoogleSignalsSettings(String name) {
+ GetGoogleSignalsSettingsRequest request =
+ GetGoogleSignalsSettingsRequest.newBuilder().setName(name).build();
+ return getGoogleSignalsSettings(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes target MeasurementProtocolSecret.
+ * Lookup for Google Signals settings for a property.
*
* Sample code:
*
@@ -4132,27 +4241,26 @@ public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName
* // 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);
+ * GetGoogleSignalsSettingsRequest request =
+ * GetGoogleSignalsSettingsRequest.newBuilder()
+ * .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
+ * .build();
+ * GoogleSignalsSettings response =
+ * analyticsAdminServiceClient.getGoogleSignalsSettings(request);
* }
* }
*
- * @param name Required. The name of the MeasurementProtocolSecret to delete. Format:
- * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteMeasurementProtocolSecret(String name) {
- DeleteMeasurementProtocolSecretRequest request =
- DeleteMeasurementProtocolSecretRequest.newBuilder().setName(name).build();
- deleteMeasurementProtocolSecret(request);
+ public final GoogleSignalsSettings getGoogleSignalsSettings(
+ GetGoogleSignalsSettingsRequest request) {
+ return getGoogleSignalsSettingsCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes target MeasurementProtocolSecret.
+ * Lookup for Google Signals settings for a property.
*
* Sample code:
*
@@ -4164,28 +4272,25 @@ public final void deleteMeasurementProtocolSecret(String name) {
* // 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())
+ * GetGoogleSignalsSettingsRequest request =
+ * GetGoogleSignalsSettingsRequest.newBuilder()
+ * .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
* .build();
- * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(request);
+ * ApiFuture Sample code:
*
@@ -4197,28 +4302,34 @@ public final void deleteMeasurementProtocolSecret(
* // 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 Sample code:
*
@@ -4230,33 +4341,27 @@ public final void deleteMeasurementProtocolSecret(
* // 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);
+ * UpdateGoogleSignalsSettingsRequest request =
+ * UpdateGoogleSignalsSettingsRequest.newBuilder()
+ * .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * GoogleSignalsSettings response =
+ * analyticsAdminServiceClient.updateGoogleSignalsSettings(request);
* }
* }
*
- * @param measurementProtocolSecret Required. The measurement protocol secret to update.
- * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
- * updated.
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
- MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask) {
- UpdateMeasurementProtocolSecretRequest request =
- UpdateMeasurementProtocolSecretRequest.newBuilder()
- .setMeasurementProtocolSecret(measurementProtocolSecret)
- .setUpdateMask(updateMask)
- .build();
- return updateMeasurementProtocolSecret(request);
+ public final GoogleSignalsSettings updateGoogleSignalsSettings(
+ UpdateGoogleSignalsSettingsRequest request) {
+ return updateGoogleSignalsSettingsCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a measurement protocol secret.
+ * Updates Google Signals settings for a property.
*
* Sample code:
*
@@ -4268,27 +4373,26 @@ public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
* // 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())
+ * UpdateGoogleSignalsSettingsRequest request =
+ * UpdateGoogleSignalsSettingsRequest.newBuilder()
+ * .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * MeasurementProtocolSecret response =
- * analyticsAdminServiceClient.updateMeasurementProtocolSecret(request);
+ * ApiFuture Sample code:
*
@@ -4300,29 +4404,31 @@ public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
* // 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 This acknowledgement must be completed (either in the Google Analytics UI or through this
- * API) before MeasurementProtocolSecret resources may be created.
+ * Creates a conversion event with the specified attributes.
*
* Sample code:
*
@@ -4334,30 +4440,31 @@ public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
* // 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);
+ * String parent = PropertyName.of("[PROPERTY]").toString();
+ * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
+ * ConversionEvent response =
+ * analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param parent Required. The resource name of the parent property where this conversion event
+ * will be created. Format: properties/123
+ * @param conversionEvent Required. The conversion event to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection(
- AcknowledgeUserDataCollectionRequest request) {
- return acknowledgeUserDataCollectionCallable().call(request);
+ public final ConversionEvent createConversionEvent(
+ String parent, ConversionEvent conversionEvent) {
+ CreateConversionEventRequest request =
+ CreateConversionEventRequest.newBuilder()
+ .setParent(parent)
+ .setConversionEvent(conversionEvent)
+ .build();
+ return createConversionEvent(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * 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.
+ * Creates a conversion event with the specified attributes.
*
* Sample code:
*
@@ -4369,27 +4476,25 @@ public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection
* // 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")
+ * CreateConversionEventRequest request =
+ * CreateConversionEventRequest.newBuilder()
+ * .setConversionEvent(ConversionEvent.newBuilder().build())
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
* .build();
- * ApiFuture Sample code:
*
@@ -4401,31 +4506,26 @@ public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * SKAdNetworkConversionValueSchemaName name =
- * SKAdNetworkConversionValueSchemaName.of(
- * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]");
- * SKAdNetworkConversionValueSchema response =
- * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(name);
+ * CreateConversionEventRequest request =
+ * CreateConversionEventRequest.newBuilder()
+ * .setConversionEvent(ConversionEvent.newBuilder().build())
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .build();
+ * ApiFuture Sample code:
*
@@ -4437,29 +4537,33 @@ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchem
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * String name =
- * SKAdNetworkConversionValueSchemaName.of(
- * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
- * .toString();
- * SKAdNetworkConversionValueSchema response =
- * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(name);
+ * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * ConversionEvent response =
+ * analyticsAdminServiceClient.updateConversionEvent(conversionEvent, updateMask);
* }
* }
*
- * @param name Required. The resource name of SKAdNetwork conversion value schema to look up.
- * Format:
- * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+ * @param conversionEvent Required. The conversion event to update. The `name` field is used to
+ * identify the settings to be updated.
+ * @param updateMask 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.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema(String name) {
- GetSKAdNetworkConversionValueSchemaRequest request =
- GetSKAdNetworkConversionValueSchemaRequest.newBuilder().setName(name).build();
- return getSKAdNetworkConversionValueSchema(request);
+ public final ConversionEvent updateConversionEvent(
+ ConversionEvent conversionEvent, FieldMask updateMask) {
+ UpdateConversionEventRequest request =
+ UpdateConversionEventRequest.newBuilder()
+ .setConversionEvent(conversionEvent)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateConversionEvent(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Looks up a single SKAdNetworkConversionValueSchema.
+ * Updates a conversion event with the specified attributes.
*
* Sample code:
*
@@ -4471,29 +4575,25 @@ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchem
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * GetSKAdNetworkConversionValueSchemaRequest request =
- * GetSKAdNetworkConversionValueSchemaRequest.newBuilder()
- * .setName(
- * SKAdNetworkConversionValueSchemaName.of(
- * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
- * .toString())
+ * UpdateConversionEventRequest request =
+ * UpdateConversionEventRequest.newBuilder()
+ * .setConversionEvent(ConversionEvent.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * SKAdNetworkConversionValueSchema response =
- * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(request);
+ * ConversionEvent response = analyticsAdminServiceClient.updateConversionEvent(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema(
- GetSKAdNetworkConversionValueSchemaRequest request) {
- return getSKAdNetworkConversionValueSchemaCallable().call(request);
+ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest request) {
+ return updateConversionEventCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Looks up a single SKAdNetworkConversionValueSchema.
+ * Updates a conversion event with the specified attributes.
*
* Sample code:
*
@@ -4505,31 +4605,26 @@ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchem
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * GetSKAdNetworkConversionValueSchemaRequest request =
- * GetSKAdNetworkConversionValueSchemaRequest.newBuilder()
- * .setName(
- * SKAdNetworkConversionValueSchemaName.of(
- * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
- * .toString())
+ * UpdateConversionEventRequest request =
+ * UpdateConversionEventRequest.newBuilder()
+ * .setConversionEvent(ConversionEvent.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * ApiFuture Sample code:
*
@@ -4541,34 +4636,27 @@ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchem
* // 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]");
- * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema =
- * SKAdNetworkConversionValueSchema.newBuilder().build();
- * SKAdNetworkConversionValueSchema response =
- * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema(
- * parent, skadnetworkConversionValueSchema);
+ * ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
+ * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
* }
* }
*
- * @param parent Required. The parent resource where this schema will be created. Format:
- * properties/{property}/dataStreams/{dataStream}
- * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to
- * create.
+ * @param name Required. The resource name of the conversion event to retrieve. Format:
+ * properties/{property}/conversionEvents/{conversion_event} Example:
+ * "properties/123/conversionEvents/456"
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema(
- DataStreamName parent, SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema) {
- CreateSKAdNetworkConversionValueSchemaRequest request =
- CreateSKAdNetworkConversionValueSchemaRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema)
+ public final ConversionEvent getConversionEvent(ConversionEventName name) {
+ GetConversionEventRequest request =
+ GetConversionEventRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
.build();
- return createSKAdNetworkConversionValueSchema(request);
+ return getConversionEvent(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a SKAdNetworkConversionValueSchema.
+ * Retrieve a single conversion event.
*
* Sample code:
*
@@ -4580,34 +4668,25 @@ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSc
* // 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();
- * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema =
- * SKAdNetworkConversionValueSchema.newBuilder().build();
- * SKAdNetworkConversionValueSchema response =
- * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema(
- * parent, skadnetworkConversionValueSchema);
+ * String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+ * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
* }
* }
*
- * @param parent Required. The parent resource where this schema will be created. Format:
- * properties/{property}/dataStreams/{dataStream}
- * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to
- * create.
+ * @param name Required. The resource name of the conversion event to retrieve. Format:
+ * properties/{property}/conversionEvents/{conversion_event} Example:
+ * "properties/123/conversionEvents/456"
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema(
- String parent, SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema) {
- CreateSKAdNetworkConversionValueSchemaRequest request =
- CreateSKAdNetworkConversionValueSchemaRequest.newBuilder()
- .setParent(parent)
- .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema)
- .build();
- return createSKAdNetworkConversionValueSchema(request);
+ public final ConversionEvent getConversionEvent(String name) {
+ GetConversionEventRequest request =
+ GetConversionEventRequest.newBuilder().setName(name).build();
+ return getConversionEvent(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a SKAdNetworkConversionValueSchema.
+ * Retrieve a single conversion event.
*
* Sample code:
*
@@ -4619,28 +4698,24 @@ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSc
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * CreateSKAdNetworkConversionValueSchemaRequest request =
- * CreateSKAdNetworkConversionValueSchemaRequest.newBuilder()
- * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
- * .setSkadnetworkConversionValueSchema(
- * SKAdNetworkConversionValueSchema.newBuilder().build())
+ * GetConversionEventRequest request =
+ * GetConversionEventRequest.newBuilder()
+ * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
* .build();
- * SKAdNetworkConversionValueSchema response =
- * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema(request);
+ * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema(
- CreateSKAdNetworkConversionValueSchemaRequest request) {
- return createSKAdNetworkConversionValueSchemaCallable().call(request);
+ public final ConversionEvent getConversionEvent(GetConversionEventRequest request) {
+ return getConversionEventCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a SKAdNetworkConversionValueSchema.
+ * Retrieve a single conversion event.
*
* Sample code:
*
@@ -4652,30 +4727,25 @@ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSc
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * CreateSKAdNetworkConversionValueSchemaRequest request =
- * CreateSKAdNetworkConversionValueSchemaRequest.newBuilder()
- * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
- * .setSkadnetworkConversionValueSchema(
- * SKAdNetworkConversionValueSchema.newBuilder().build())
+ * GetConversionEventRequest request =
+ * GetConversionEventRequest.newBuilder()
+ * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
* .build();
- * ApiFuture Sample code:
*
@@ -4687,29 +4757,27 @@ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSc
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * SKAdNetworkConversionValueSchemaName name =
- * SKAdNetworkConversionValueSchemaName.of(
- * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]");
- * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(name);
+ * ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
+ * analyticsAdminServiceClient.deleteConversionEvent(name);
* }
* }
*
- * @param name Required. The name of the SKAdNetworkConversionValueSchema to delete. Format:
- * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+ * @param name Required. The resource name of the conversion event to delete. Format:
+ * properties/{property}/conversionEvents/{conversion_event} Example:
+ * "properties/123/conversionEvents/456"
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteSKAdNetworkConversionValueSchema(
- SKAdNetworkConversionValueSchemaName name) {
- DeleteSKAdNetworkConversionValueSchemaRequest request =
- DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder()
+ public final void deleteConversionEvent(ConversionEventName name) {
+ DeleteConversionEventRequest request =
+ DeleteConversionEventRequest.newBuilder()
.setName(name == null ? null : name.toString())
.build();
- deleteSKAdNetworkConversionValueSchema(request);
+ deleteConversionEvent(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes target SKAdNetworkConversionValueSchema.
+ * Deletes a conversion event in a property.
*
* Sample code:
*
@@ -4721,27 +4789,25 @@ public final void deleteSKAdNetworkConversionValueSchema(
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * String name =
- * SKAdNetworkConversionValueSchemaName.of(
- * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
- * .toString();
- * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(name);
+ * String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+ * analyticsAdminServiceClient.deleteConversionEvent(name);
* }
* }
*
- * @param name Required. The name of the SKAdNetworkConversionValueSchema to delete. Format:
- * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+ * @param name Required. The resource name of the conversion event to delete. Format:
+ * properties/{property}/conversionEvents/{conversion_event} Example:
+ * "properties/123/conversionEvents/456"
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteSKAdNetworkConversionValueSchema(String name) {
- DeleteSKAdNetworkConversionValueSchemaRequest request =
- DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder().setName(name).build();
- deleteSKAdNetworkConversionValueSchema(request);
+ public final void deleteConversionEvent(String name) {
+ DeleteConversionEventRequest request =
+ DeleteConversionEventRequest.newBuilder().setName(name).build();
+ deleteConversionEvent(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes target SKAdNetworkConversionValueSchema.
+ * Deletes a conversion event in a property.
*
* Sample code:
*
@@ -4753,28 +4819,24 @@ public final void deleteSKAdNetworkConversionValueSchema(String name) {
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * DeleteSKAdNetworkConversionValueSchemaRequest request =
- * DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder()
- * .setName(
- * SKAdNetworkConversionValueSchemaName.of(
- * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
- * .toString())
+ * DeleteConversionEventRequest request =
+ * DeleteConversionEventRequest.newBuilder()
+ * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
* .build();
- * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(request);
+ * analyticsAdminServiceClient.deleteConversionEvent(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteSKAdNetworkConversionValueSchema(
- DeleteSKAdNetworkConversionValueSchemaRequest request) {
- deleteSKAdNetworkConversionValueSchemaCallable().call(request);
+ public final void deleteConversionEvent(DeleteConversionEventRequest request) {
+ deleteConversionEventCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes target SKAdNetworkConversionValueSchema.
+ * Deletes a conversion event in a property.
*
* Sample code:
*
@@ -4786,30 +4848,26 @@ public final void deleteSKAdNetworkConversionValueSchema(
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * DeleteSKAdNetworkConversionValueSchemaRequest request =
- * DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder()
- * .setName(
- * SKAdNetworkConversionValueSchemaName.of(
- * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]")
- * .toString())
+ * DeleteConversionEventRequest request =
+ * DeleteConversionEventRequest.newBuilder()
+ * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
* .build();
* ApiFuture Returns an empty list if no conversion events are found.
*
* Sample code:
*
@@ -4821,34 +4879,30 @@ public final void deleteSKAdNetworkConversionValueSchema(
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema =
- * SKAdNetworkConversionValueSchema.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * SKAdNetworkConversionValueSchema response =
- * analyticsAdminServiceClient.updateSKAdNetworkConversionValueSchema(
- * skadnetworkConversionValueSchema, updateMask);
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * for (ConversionEvent element :
+ * analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
- * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to
- * update.
- * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
- * updated.
+ * @param parent Required. The resource name of the parent property. Example: 'properties/123'
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema(
- SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema, FieldMask updateMask) {
- UpdateSKAdNetworkConversionValueSchemaRequest request =
- UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder()
- .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema)
- .setUpdateMask(updateMask)
+ public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) {
+ ListConversionEventsRequest request =
+ ListConversionEventsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
.build();
- return updateSKAdNetworkConversionValueSchema(request);
+ return listConversionEvents(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a SKAdNetworkConversionValueSchema.
+ * Returns a list of conversion events in the specified parent property.
+ *
+ * Returns an empty list if no conversion events are found.
*
* Sample code:
*
@@ -4860,28 +4914,65 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * UpdateSKAdNetworkConversionValueSchemaRequest request =
- * UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder()
- * .setSkadnetworkConversionValueSchema(
- * SKAdNetworkConversionValueSchema.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
+ * String parent = PropertyName.of("[PROPERTY]").toString();
+ * for (ConversionEvent element :
+ * analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the parent property. Example: 'properties/123'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListConversionEventsPagedResponse listConversionEvents(String parent) {
+ ListConversionEventsRequest request =
+ ListConversionEventsRequest.newBuilder().setParent(parent).build();
+ return listConversionEvents(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of conversion events in the specified parent property.
+ *
+ * Returns an empty list if no conversion events are found.
+ *
+ * Sample code:
+ *
+ * Returns an empty list if no conversion events are found.
*
* Sample code:
*
@@ -4893,31 +4984,207 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * UpdateSKAdNetworkConversionValueSchemaRequest request =
- * UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder()
- * .setSkadnetworkConversionValueSchema(
- * SKAdNetworkConversionValueSchema.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
+ * ListConversionEventsRequest request =
+ * ListConversionEventsRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
* .build();
- * ApiFuture Returns an empty list if no conversion events are found.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -4929,32 +5196,29 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc
* // 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 (SKAdNetworkConversionValueSchema element :
- * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(parent).iterateAll()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * for (DisplayVideo360AdvertiserLink element :
+ * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. Format:
- * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema Example:
- * properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+ * @param parent Required. Example format: properties/1234
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListSKAdNetworkConversionValueSchemasPagedResponse
- listSKAdNetworkConversionValueSchemas(DataStreamName parent) {
- ListSKAdNetworkConversionValueSchemasRequest request =
- ListSKAdNetworkConversionValueSchemasRequest.newBuilder()
+ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
+ PropertyName parent) {
+ ListDisplayVideo360AdvertiserLinksRequest request =
+ ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
- return listSKAdNetworkConversionValueSchemas(request);
+ return listDisplayVideo360AdvertiserLinks(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one
- * SKAdNetworkConversionValueSchema.
+ * Lists all DisplayVideo360AdvertiserLinks on a property.
*
* Sample code:
*
@@ -4966,30 +5230,27 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc
* // 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 (SKAdNetworkConversionValueSchema element :
- * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(parent).iterateAll()) {
+ * String parent = PropertyName.of("[PROPERTY]").toString();
+ * for (DisplayVideo360AdvertiserLink element :
+ * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. Format:
- * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema Example:
- * properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+ * @param parent Required. Example format: properties/1234
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListSKAdNetworkConversionValueSchemasPagedResponse
- listSKAdNetworkConversionValueSchemas(String parent) {
- ListSKAdNetworkConversionValueSchemasRequest request =
- ListSKAdNetworkConversionValueSchemasRequest.newBuilder().setParent(parent).build();
- return listSKAdNetworkConversionValueSchemas(request);
+ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
+ String parent) {
+ ListDisplayVideo360AdvertiserLinksRequest request =
+ ListDisplayVideo360AdvertiserLinksRequest.newBuilder().setParent(parent).build();
+ return listDisplayVideo360AdvertiserLinks(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one
- * SKAdNetworkConversionValueSchema.
+ * Lists all DisplayVideo360AdvertiserLinks on a property.
*
* Sample code:
*
@@ -5001,14 +5262,14 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ListSKAdNetworkConversionValueSchemasRequest request =
- * ListSKAdNetworkConversionValueSchemasRequest.newBuilder()
- * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+ * ListDisplayVideo360AdvertiserLinksRequest request =
+ * ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * for (SKAdNetworkConversionValueSchema element :
- * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(request).iterateAll()) {
+ * for (DisplayVideo360AdvertiserLink element :
+ * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -5017,15 +5278,14 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListSKAdNetworkConversionValueSchemasPagedResponse
- listSKAdNetworkConversionValueSchemas(ListSKAdNetworkConversionValueSchemasRequest request) {
- return listSKAdNetworkConversionValueSchemasPagedCallable().call(request);
+ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
+ ListDisplayVideo360AdvertiserLinksRequest request) {
+ return listDisplayVideo360AdvertiserLinksPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one
- * SKAdNetworkConversionValueSchema.
+ * Lists all DisplayVideo360AdvertiserLinks on a property.
*
* Sample code:
*
@@ -5037,34 +5297,79 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ListSKAdNetworkConversionValueSchemasRequest request =
- * ListSKAdNetworkConversionValueSchemasRequest.newBuilder()
- * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+ * ListDisplayVideo360AdvertiserLinksRequest request =
+ * ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * ApiFuture Sample code:
+ *
+ * Sample code:
*
@@ -5076,41 +5381,35 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ListSKAdNetworkConversionValueSchemasRequest request =
- * ListSKAdNetworkConversionValueSchemasRequest.newBuilder()
- * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * while (true) {
- * ListSKAdNetworkConversionValueSchemasResponse response =
- * analyticsAdminServiceClient
- * .listSKAdNetworkConversionValueSchemasCallable()
- * .call(request);
- * for (SKAdNetworkConversionValueSchema element :
- * response.getSkadnetworkConversionValueSchemasList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+ * DisplayVideo360AdvertiserLink.newBuilder().build();
+ * DisplayVideo360AdvertiserLink response =
+ * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(
+ * parent, displayVideo360AdvertiserLink);
* }
* }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable<
- ListSKAdNetworkConversionValueSchemasRequest,
- ListSKAdNetworkConversionValueSchemasResponse>
- listSKAdNetworkConversionValueSchemasCallable() {
- return stub.listSKAdNetworkConversionValueSchemasCallable();
+ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(
+ PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) {
+ CreateDisplayVideo360AdvertiserLinkRequest request =
+ CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink)
+ .build();
+ return createDisplayVideo360AdvertiserLink(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Searches through all changes to an account or its children given the specified set of filters.
+ * 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:
*
@@ -5122,36 +5421,35 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc
* // 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 Sample code:
*
@@ -5163,36 +5461,30 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents(
* // 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 Sample code:
*
@@ -5204,42 +5496,29 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents(
* // 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 Sample code:
*
@@ -5251,26 +5530,27 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents(
* // 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);
+ * DisplayVideo360AdvertiserLinkName name =
+ * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
+ * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
* }
* }
*
- * @param name Required. The name of the google signals settings to retrieve. Format:
- * properties/{property}/googleSignalsSettings
+ * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format:
+ * properties/1234/displayVideo360AdvertiserLinks/5678
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSettingsName name) {
- GetGoogleSignalsSettingsRequest request =
- GetGoogleSignalsSettingsRequest.newBuilder()
+ public final void deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name) {
+ DeleteDisplayVideo360AdvertiserLinkRequest request =
+ DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
.setName(name == null ? null : name.toString())
.build();
- return getGoogleSignalsSettings(request);
+ deleteDisplayVideo360AdvertiserLink(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lookup for Google Signals settings for a property.
+ * Deletes a DisplayVideo360AdvertiserLink on a property.
*
* Sample code:
*
@@ -5282,24 +5562,26 @@ public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSetting
* // 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);
+ * String name =
+ * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString();
+ * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
* }
* }
*
- * @param name Required. The name of the google signals settings to retrieve. Format:
- * properties/{property}/googleSignalsSettings
+ * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format:
+ * properties/1234/displayVideo360AdvertiserLinks/5678
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GoogleSignalsSettings getGoogleSignalsSettings(String name) {
- GetGoogleSignalsSettingsRequest request =
- GetGoogleSignalsSettingsRequest.newBuilder().setName(name).build();
- return getGoogleSignalsSettings(request);
+ public final void deleteDisplayVideo360AdvertiserLink(String name) {
+ DeleteDisplayVideo360AdvertiserLinkRequest request =
+ DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build();
+ deleteDisplayVideo360AdvertiserLink(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lookup for Google Signals settings for a property.
+ * Deletes a DisplayVideo360AdvertiserLink on a property.
*
* Sample code:
*
@@ -5311,26 +5593,28 @@ public final GoogleSignalsSettings getGoogleSignalsSettings(String name) {
* // 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())
+ * DeleteDisplayVideo360AdvertiserLinkRequest request =
+ * DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
* .build();
- * GoogleSignalsSettings response =
- * analyticsAdminServiceClient.getGoogleSignalsSettings(request);
+ * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GoogleSignalsSettings getGoogleSignalsSettings(
- GetGoogleSignalsSettingsRequest request) {
- return getGoogleSignalsSettingsCallable().call(request);
+ public final void deleteDisplayVideo360AdvertiserLink(
+ DeleteDisplayVideo360AdvertiserLinkRequest request) {
+ deleteDisplayVideo360AdvertiserLinkCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lookup for Google Signals settings for a property.
+ * Deletes a DisplayVideo360AdvertiserLink on a property.
*
* Sample code:
*
@@ -5342,25 +5626,30 @@ public final GoogleSignalsSettings getGoogleSignalsSettings(
* // 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())
+ * DeleteDisplayVideo360AdvertiserLinkRequest request =
+ * DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -5372,34 +5661,34 @@ public final GoogleSignalsSettings getGoogleSignalsSettings(
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build();
+ * DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+ * DisplayVideo360AdvertiserLink.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
- * GoogleSignalsSettings response =
- * analyticsAdminServiceClient.updateGoogleSignalsSettings(
- * googleSignalsSettings, updateMask);
+ * DisplayVideo360AdvertiserLink response =
+ * analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(
+ * displayVideo360AdvertiserLink, updateMask);
* }
* }
*
- * @param googleSignalsSettings Required. The settings to update. The `name` field is used to
- * identify the settings to be updated.
- * @param updateMask 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.
+ * @param displayVideo360AdvertiserLink The DisplayVideo360AdvertiserLink to update
+ * @param updateMask 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.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GoogleSignalsSettings updateGoogleSignalsSettings(
- GoogleSignalsSettings googleSignalsSettings, FieldMask updateMask) {
- UpdateGoogleSignalsSettingsRequest request =
- UpdateGoogleSignalsSettingsRequest.newBuilder()
- .setGoogleSignalsSettings(googleSignalsSettings)
+ public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(
+ DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink, FieldMask updateMask) {
+ UpdateDisplayVideo360AdvertiserLinkRequest request =
+ UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink)
.setUpdateMask(updateMask)
.build();
- return updateGoogleSignalsSettings(request);
+ return updateDisplayVideo360AdvertiserLink(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates Google Signals settings for a property.
+ * Updates a DisplayVideo360AdvertiserLink on a property.
*
* Sample code:
*
@@ -5411,27 +5700,27 @@ public final GoogleSignalsSettings updateGoogleSignalsSettings(
* // 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())
+ * UpdateDisplayVideo360AdvertiserLinkRequest request =
+ * UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * GoogleSignalsSettings response =
- * analyticsAdminServiceClient.updateGoogleSignalsSettings(request);
+ * DisplayVideo360AdvertiserLink response =
+ * analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final GoogleSignalsSettings updateGoogleSignalsSettings(
- UpdateGoogleSignalsSettingsRequest request) {
- return updateGoogleSignalsSettingsCallable().call(request);
+ public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(
+ UpdateDisplayVideo360AdvertiserLinkRequest request) {
+ return updateDisplayVideo360AdvertiserLinkCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates Google Signals settings for a property.
+ * Updates a DisplayVideo360AdvertiserLink on a property.
*
* Sample code:
*
@@ -5443,26 +5732,29 @@ public final GoogleSignalsSettings updateGoogleSignalsSettings(
* // 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())
+ * UpdateDisplayVideo360AdvertiserLinkRequest request =
+ * UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * ApiFuture Sample code:
*
@@ -5474,31 +5766,30 @@ public final GoogleSignalsSettings updateGoogleSignalsSettings(
* // 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);
+ * DisplayVideo360AdvertiserLinkProposalName name =
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
* }
* }
*
- * @param parent Required. The resource name of the parent property where this conversion event
- * will be created. Format: properties/123
- * @param conversionEvent Required. The conversion event to create.
+ * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example
+ * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ConversionEvent createConversionEvent(
- PropertyName parent, ConversionEvent conversionEvent) {
- CreateConversionEventRequest request =
- CreateConversionEventRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .setConversionEvent(conversionEvent)
+ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(
+ DisplayVideo360AdvertiserLinkProposalName name) {
+ GetDisplayVideo360AdvertiserLinkProposalRequest request =
+ GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
.build();
- return createConversionEvent(request);
+ return getDisplayVideo360AdvertiserLinkProposal(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a conversion event with the specified attributes.
+ * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
*
* Sample code:
*
@@ -5510,31 +5801,29 @@ public final ConversionEvent createConversionEvent(
* // 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);
+ * String name =
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString();
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
* }
* }
*
- * @param parent Required. The resource name of the parent property where this conversion event
- * will be created. Format: properties/123
- * @param conversionEvent Required. The conversion event to create.
+ * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example
+ * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ConversionEvent createConversionEvent(
- String parent, ConversionEvent conversionEvent) {
- CreateConversionEventRequest request =
- CreateConversionEventRequest.newBuilder()
- .setParent(parent)
- .setConversionEvent(conversionEvent)
- .build();
- return createConversionEvent(request);
+ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(
+ String name) {
+ GetDisplayVideo360AdvertiserLinkProposalRequest request =
+ GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build();
+ return getDisplayVideo360AdvertiserLinkProposal(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a conversion event with the specified attributes.
+ * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
*
* Sample code:
*
@@ -5546,25 +5835,29 @@ public final ConversionEvent createConversionEvent(
* // 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())
+ * GetDisplayVideo360AdvertiserLinkProposalRequest request =
+ * GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
* .build();
- * ConversionEvent response = analyticsAdminServiceClient.createConversionEvent(request);
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ConversionEvent createConversionEvent(CreateConversionEventRequest request) {
- return createConversionEventCallable().call(request);
+ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(
+ GetDisplayVideo360AdvertiserLinkProposalRequest request) {
+ return getDisplayVideo360AdvertiserLinkProposalCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a conversion event with the specified attributes.
+ * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
*
* Sample code:
*
@@ -5576,26 +5869,31 @@ public final ConversionEvent createConversionEvent(CreateConversionEventRequest
* // 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())
+ * GetDisplayVideo360AdvertiserLinkProposalRequest request =
+ * GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -5607,33 +5905,65 @@ public final ConversionEvent createConversionEvent(CreateConversionEventRequest
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * ConversionEvent response =
- * analyticsAdminServiceClient.updateConversionEvent(conversionEvent, updateMask);
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * for (DisplayVideo360AdvertiserLinkProposal element :
+ * analyticsAdminServiceClient
+ * .listDisplayVideo360AdvertiserLinkProposals(parent)
+ * .iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
- * @param conversionEvent Required. The conversion event to update. The `name` field is used to
- * identify the settings to be updated.
- * @param updateMask 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.
+ * @param parent Required. Example format: properties/1234
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ConversionEvent updateConversionEvent(
- ConversionEvent conversionEvent, FieldMask updateMask) {
- UpdateConversionEventRequest request =
- UpdateConversionEventRequest.newBuilder()
- .setConversionEvent(conversionEvent)
- .setUpdateMask(updateMask)
+ public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse
+ listDisplayVideo360AdvertiserLinkProposals(PropertyName parent) {
+ ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+ ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
.build();
- return updateConversionEvent(request);
+ return listDisplayVideo360AdvertiserLinkProposals(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -5645,25 +5975,33 @@ public final ConversionEvent updateConversionEvent(
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * UpdateConversionEventRequest request =
- * UpdateConversionEventRequest.newBuilder()
- * .setConversionEvent(ConversionEvent.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
* .build();
- * ConversionEvent response = analyticsAdminServiceClient.updateConversionEvent(request);
+ * for (DisplayVideo360AdvertiserLinkProposal element :
+ * analyticsAdminServiceClient
+ * .listDisplayVideo360AdvertiserLinkProposals(request)
+ * .iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest request) {
- return updateConversionEventCallable().call(request);
+ public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse
+ listDisplayVideo360AdvertiserLinkProposals(
+ ListDisplayVideo360AdvertiserLinkProposalsRequest request) {
+ return listDisplayVideo360AdvertiserLinkProposalsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a conversion event with the specified attributes.
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
*
* Sample code:
*
@@ -5675,26 +6013,33 @@ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * UpdateConversionEventRequest request =
- * UpdateConversionEventRequest.newBuilder()
- * .setConversionEvent(ConversionEvent.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
* .build();
- * ApiFuture Sample code:
*
@@ -5706,27 +6051,41 @@ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest
* // 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);
+ * 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;
+ * }
+ * }
* }
* }
- *
- * @param name Required. The resource name of the conversion event to retrieve. Format:
- * properties/{property}/conversionEvents/{conversion_event} Example:
- * "properties/123/conversionEvents/456"
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ConversionEvent getConversionEvent(ConversionEventName name) {
- GetConversionEventRequest request =
- GetConversionEventRequest.newBuilder()
- .setName(name == null ? null : name.toString())
- .build();
- return getConversionEvent(request);
+ public final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse>
+ listDisplayVideo360AdvertiserLinkProposalsCallable() {
+ return stub.listDisplayVideo360AdvertiserLinkProposalsCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Retrieve a single conversion event.
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
*
* Sample code:
*
@@ -5738,25 +6097,34 @@ public final ConversionEvent getConversionEvent(ConversionEventName name) {
* // 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);
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+ * DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
+ * parent, displayVideo360AdvertiserLinkProposal);
* }
* }
*
- * @param name Required. The resource name of the conversion event to retrieve. Format:
- * properties/{property}/conversionEvents/{conversion_event} Example:
- * "properties/123/conversionEvents/456"
+ * @param parent Required. Example format: properties/1234
+ * @param displayVideo360AdvertiserLinkProposal Required. The
+ * DisplayVideo360AdvertiserLinkProposal to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ConversionEvent getConversionEvent(String name) {
- GetConversionEventRequest request =
- GetConversionEventRequest.newBuilder().setName(name).build();
- return getConversionEvent(request);
+ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(
+ PropertyName parent,
+ DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) {
+ CreateDisplayVideo360AdvertiserLinkProposalRequest request =
+ CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal)
+ .build();
+ return createDisplayVideo360AdvertiserLinkProposal(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Retrieve a single conversion event.
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
*
* Sample code:
*
@@ -5768,24 +6136,33 @@ public final ConversionEvent getConversionEvent(String name) {
* // 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);
+ * String parent = PropertyName.of("[PROPERTY]").toString();
+ * DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+ * DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
+ * parent, displayVideo360AdvertiserLinkProposal);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param parent Required. Example format: properties/1234
+ * @param displayVideo360AdvertiserLinkProposal Required. The
+ * DisplayVideo360AdvertiserLinkProposal to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ConversionEvent getConversionEvent(GetConversionEventRequest request) {
- return getConversionEventCallable().call(request);
+ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(
+ String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) {
+ CreateDisplayVideo360AdvertiserLinkProposalRequest request =
+ CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setParent(parent)
+ .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal)
+ .build();
+ return createDisplayVideo360AdvertiserLinkProposal(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Retrieve a single conversion event.
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
*
* Sample code:
*
@@ -5797,57 +6174,28 @@ public final ConversionEvent getConversionEvent(GetConversionEventRequest reques
* // 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())
+ * CreateDisplayVideo360AdvertiserLinkProposalRequest request =
+ * CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setDisplayVideo360AdvertiserLinkProposal(
+ * DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
* .build();
- * ApiFuture Sample code:
- *
- * Sample code:
*
@@ -5859,25 +6207,31 @@ public final void deleteConversionEvent(ConversionEventName name) {
* // 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);
+ * CreateDisplayVideo360AdvertiserLinkProposalRequest request =
+ * CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setParent(PropertyName.of("[PROPERTY]").toString())
+ * .setDisplayVideo360AdvertiserLinkProposal(
+ * DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
+ * .build();
+ * ApiFuture Sample code:
*
@@ -5889,24 +6243,30 @@ public final void deleteConversionEvent(String name) {
* // 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);
+ * DisplayVideo360AdvertiserLinkProposalName name =
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
+ * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example
+ * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteConversionEvent(DeleteConversionEventRequest request) {
- deleteConversionEventCallable().call(request);
+ public final void deleteDisplayVideo360AdvertiserLinkProposal(
+ DisplayVideo360AdvertiserLinkProposalName name) {
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteDisplayVideo360AdvertiserLinkProposal(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a conversion event in a property.
+ * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
+ * cancelled proposals.
*
* Sample code:
*
@@ -5918,26 +6278,28 @@ public final void deleteConversionEvent(DeleteConversionEventRequest request) {
* // 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 Returns an empty list if no conversion events are found.
+ * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
+ * cancelled proposals.
*
* Sample code:
*
@@ -5949,30 +6311,29 @@ public final UnaryCallable Returns an empty list if no conversion events are found.
+ * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
+ * cancelled proposals.
*
* Sample code:
*
@@ -5984,28 +6345,31 @@ public final ListConversionEventsPagedResponse listConversionEvents(PropertyName
* // 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);
- * }
+ * DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
+ * DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * ApiFuture Returns an empty list if no conversion events are found.
+ * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal
+ * will be deleted and a new DisplayVideo360AdvertiserLink will be created.
*
* Sample code:
*
@@ -6017,32 +6381,31 @@ public final ListConversionEventsPagedResponse listConversionEvents(String paren
* // 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")
+ * ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
+ * ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
* .build();
- * for (ConversionEvent element :
- * analyticsAdminServiceClient.listConversionEvents(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * ApproveDisplayVideo360AdvertiserLinkProposalResponse response =
+ * analyticsAdminServiceClient.approveDisplayVideo360AdvertiserLinkProposal(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListConversionEventsPagedResponse listConversionEvents(
- ListConversionEventsRequest request) {
- return listConversionEventsPagedCallable().call(request);
+ public final ApproveDisplayVideo360AdvertiserLinkProposalResponse
+ approveDisplayVideo360AdvertiserLinkProposal(
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest request) {
+ return approveDisplayVideo360AdvertiserLinkProposalCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns a list of conversion events in the specified parent property.
- *
- * Returns an empty list if no conversion events are found.
+ * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal
+ * will be deleted and a new DisplayVideo360AdvertiserLink will be created.
*
* Sample code:
*
@@ -6054,31 +6417,34 @@ public final ListConversionEventsPagedResponse listConversionEvents(
* // 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")
+ * ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
+ * ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
* .build();
- * ApiFuture Returns an empty list if no conversion events are found.
+ * 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:
*
@@ -6090,36 +6456,31 @@ public final ListConversionEventsPagedResponse listConversionEvents(
* // 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")
+ * CancelDisplayVideo360AdvertiserLinkProposalRequest request =
+ * CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
* .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;
- * }
- * }
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.cancelDisplayVideo360AdvertiserLinkProposal(request);
* }
* }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable Sample code:
*
@@ -6131,29 +6492,31 @@ public final ListConversionEventsPagedResponse listConversionEvents(
* // 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);
+ * CancelDisplayVideo360AdvertiserLinkProposalRequest request =
+ * CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * ApiFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating 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
+ */
+ public final UnaryCallable{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating 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);
- * }
- * }
- *
- * @param parent Required. Format: properties/{property_id} Example: properties/1234
- * @param firebaseLink Required. The Firebase link to create.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebaseLink) {
- CreateFirebaseLinkRequest request =
- CreateFirebaseLinkRequest.newBuilder()
- .setParent(parent)
- .setFirebaseLink(firebaseLink)
- .build();
- return createFirebaseLink(request);
+ public final DataSharingSettings getDataSharingSettings(String name) {
+ GetDataSharingSettingsRequest request =
+ GetDataSharingSettingsRequest.newBuilder().setName(name).build();
+ return getDataSharingSettings(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a FirebaseLink.
- *
- * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating 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();
- * SKAdNetworkConversionValueSchema response =
- * analyticsAdminServiceClient.updateSKAdNetworkConversionValueSchema(request);
+ * for (ConversionEvent element :
+ * analyticsAdminServiceClient.listConversionEvents(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema(
- UpdateSKAdNetworkConversionValueSchemaRequest request) {
- return updateSKAdNetworkConversionValueSchemaCallable().call(request);
+ public final ListConversionEventsPagedResponse listConversionEvents(
+ ListConversionEventsRequest request) {
+ return listConversionEventsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a SKAdNetworkConversionValueSchema.
+ * Returns a list of conversion events in the specified parent property.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating 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;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating 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);
+ * }
+ * }
+ *
+ * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format:
+ * properties/1234/displayVideo360AdvertiserLink/5678
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(
+ DisplayVideo360AdvertiserLinkName name) {
+ GetDisplayVideo360AdvertiserLinkRequest request =
+ GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getDisplayVideo360AdvertiserLink(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Look up a single DisplayVideo360AdvertiserLink
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating 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);
+ * }
+ * }
+ *
+ * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format:
+ * properties/1234/displayVideo360AdvertiserLink/5678
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(String name) {
+ GetDisplayVideo360AdvertiserLinkRequest request =
+ GetDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build();
+ return getDisplayVideo360AdvertiserLink(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Look up a single DisplayVideo360AdvertiserLink
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating 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);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(
+ GetDisplayVideo360AdvertiserLinkRequest request) {
+ return getDisplayVideo360AdvertiserLinkCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Look up a single DisplayVideo360AdvertiserLink
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating 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
*/
- public final UnaryCallable<
- UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema>
- updateSKAdNetworkConversionValueSchemaCallable() {
- return stub.updateSKAdNetworkConversionValueSchemaCallable();
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating 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;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse>
+ listDisplayVideo360AdvertiserLinksCallable() {
+ return stub.listDisplayVideo360AdvertiserLinksCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one
- * SKAdNetworkConversionValueSchema.
+ * 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.
*
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating 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);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse
+ listDisplayVideo360AdvertiserLinkProposals(String parent) {
+ ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+ ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder().setParent(parent).build();
+ return listDisplayVideo360AdvertiserLinkProposals(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a conversion event with the specified attributes.
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
*
* {@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating 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);
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(request);
* }
* }
*
- * @param name Required. The resource name of the conversion event to delete. Format:
- * properties/{property}/conversionEvents/{conversion_event} Example:
- * "properties/123/conversionEvents/456"
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteConversionEvent(ConversionEventName name) {
- DeleteConversionEventRequest request =
- DeleteConversionEventRequest.newBuilder()
- .setName(name == null ? null : name.toString())
- .build();
- deleteConversionEvent(request);
+ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(
+ CreateDisplayVideo360AdvertiserLinkProposalRequest request) {
+ return createDisplayVideo360AdvertiserLinkProposalCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a conversion event in a property.
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
*
*