Sample code: - * - *
{@code
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- * AnalyticsAdminServiceClient.create()) {
- * FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * FirebaseLink response =
- * analyticsAdminServiceClient.updateFirebaseLink(firebaseLink, updateMask);
- * }
- * }
- *
- * @param firebaseLink Required. The Firebase link 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.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final FirebaseLink updateFirebaseLink(FirebaseLink firebaseLink, FieldMask updateMask) {
- UpdateFirebaseLinkRequest request =
- UpdateFirebaseLinkRequest.newBuilder()
- .setFirebaseLink(firebaseLink)
- .setUpdateMask(updateMask)
- .build();
- return updateFirebaseLink(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Updates a FirebaseLink on a property
- *
- * Sample code: - * - *
{@code
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- * AnalyticsAdminServiceClient.create()) {
- * UpdateFirebaseLinkRequest request =
- * UpdateFirebaseLinkRequest.newBuilder()
- * .setFirebaseLink(FirebaseLink.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .build();
- * FirebaseLink response = analyticsAdminServiceClient.updateFirebaseLink(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 updateFirebaseLink(UpdateFirebaseLinkRequest request) {
- return updateFirebaseLinkCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Updates a FirebaseLink on a property
- *
- * Sample code: - * - *
{@code
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- * AnalyticsAdminServiceClient.create()) {
- * UpdateFirebaseLinkRequest request =
- * UpdateFirebaseLinkRequest.newBuilder()
- * .setFirebaseLink(FirebaseLink.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .build();
- * ApiFuture future =
- * analyticsAdminServiceClient.updateFirebaseLinkCallable().futureCall(request);
- * // Do something.
- * FirebaseLink response = future.get();
- * }
- * }
- */
- public final UnaryCallableSample code: - * - *
{@code
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- * AnalyticsAdminServiceClient.create()) {
- * PropertyName parent = PropertyName.of("[PROPERTY]");
- * CustomDimension customDimension = CustomDimension.newBuilder().build();
- * CustomDimension response =
- * analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
- * }
- * }
- *
- * @param parent Required. Example format: properties/1234
- * @param customDimension Required. The CustomDimension to create.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final CustomDimension createCustomDimension(
- PropertyName parent, CustomDimension customDimension) {
- CreateCustomDimensionRequest request =
- CreateCustomDimensionRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .setCustomDimension(customDimension)
- .build();
- return createCustomDimension(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Creates a CustomDimension.
+ * Look up a single DisplayVideo360AdvertiserLink
*
* Sample code: * *
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * String parent = CustomDimensionName.of("[PROPERTY]").toString();
- * CustomDimension customDimension = CustomDimension.newBuilder().build();
- * CustomDimension response =
- * analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
+ * DisplayVideo360AdvertiserLinkName name =
+ * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
+ * DisplayVideo360AdvertiserLink response =
+ * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
* }
* }
*
- * @param parent Required. Example format: properties/1234
- * @param customDimension Required. The CustomDimension to create.
+ * @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 CustomDimension createCustomDimension(
- String parent, CustomDimension customDimension) {
- CreateCustomDimensionRequest request =
- CreateCustomDimensionRequest.newBuilder()
- .setParent(parent)
- .setCustomDimension(customDimension)
+ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(
+ DisplayVideo360AdvertiserLinkName name) {
+ GetDisplayVideo360AdvertiserLinkRequest request =
+ GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
.build();
- return createCustomDimension(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Creates a CustomDimension.
- *
- * Sample code: - * - *
{@code
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- * AnalyticsAdminServiceClient.create()) {
- * CreateCustomDimensionRequest request =
- * CreateCustomDimensionRequest.newBuilder()
- * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
- * .setCustomDimension(CustomDimension.newBuilder().build())
- * .build();
- * CustomDimension response = analyticsAdminServiceClient.createCustomDimension(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 CustomDimension createCustomDimension(CreateCustomDimensionRequest request) {
- return createCustomDimensionCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Creates a CustomDimension.
- *
- * Sample code: - * - *
{@code
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- * AnalyticsAdminServiceClient.create()) {
- * CreateCustomDimensionRequest request =
- * CreateCustomDimensionRequest.newBuilder()
- * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
- * .setCustomDimension(CustomDimension.newBuilder().build())
- * .build();
- * ApiFuture future =
- * analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
- * // Do something.
- * CustomDimension response = future.get();
- * }
- * }
- */
- public final UnaryCallableSample code: * *
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * CustomDimension customDimension = CustomDimension.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * CustomDimension response =
- * analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
+ * String name =
+ * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString();
+ * DisplayVideo360AdvertiserLink response =
+ * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
* }
* }
*
- * @param customDimension The CustomDimension 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.
+ * @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 CustomDimension updateCustomDimension(
- CustomDimension customDimension, FieldMask updateMask) {
- UpdateCustomDimensionRequest request =
- UpdateCustomDimensionRequest.newBuilder()
- .setCustomDimension(customDimension)
- .setUpdateMask(updateMask)
- .build();
- return updateCustomDimension(request);
+ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(String name) {
+ GetDisplayVideo360AdvertiserLinkRequest request =
+ GetDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build();
+ return getDisplayVideo360AdvertiserLink(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a CustomDimension on a property.
+ * Look up a single DisplayVideo360AdvertiserLink
*
* Sample code: * *
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * UpdateCustomDimensionRequest request =
- * UpdateCustomDimensionRequest.newBuilder()
- * .setCustomDimension(CustomDimension.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
+ * GetDisplayVideo360AdvertiserLinkRequest request =
+ * GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
* .build();
- * CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(request);
+ * 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 CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) {
- return updateCustomDimensionCallable().call(request);
+ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(
+ GetDisplayVideo360AdvertiserLinkRequest request) {
+ return getDisplayVideo360AdvertiserLinkCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a CustomDimension on a property.
+ * Look up a single DisplayVideo360AdvertiserLink
*
* Sample code: * *
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * UpdateCustomDimensionRequest request =
- * UpdateCustomDimensionRequest.newBuilder()
- * .setCustomDimension(CustomDimension.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
+ * GetDisplayVideo360AdvertiserLinkRequest request =
+ * GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
* .build();
- * ApiFuture future =
- * analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .getDisplayVideo360AdvertiserLinkCallable()
+ * .futureCall(request);
* // Do something.
- * CustomDimension response = future.get();
+ * DisplayVideo360AdvertiserLink response = future.get();
* }
* }
*/
- public final UnaryCallableSample code: * @@ -6438,8 +6278,8 @@ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (CustomDimension element : - * analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) { + * for (DisplayVideo360AdvertiserLink element : + * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) { * // doThingsWith(element); * } * } @@ -6448,26 +6288,29 @@ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) { - ListCustomDimensionsRequest request = - ListCustomDimensionsRequest.newBuilder() + public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( + PropertyName parent) { + ListDisplayVideo360AdvertiserLinksRequest request = + ListDisplayVideo360AdvertiserLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listCustomDimensions(request); + return listDisplayVideo360AdvertiserLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Lists all DisplayVideo360AdvertiserLinks on a property. * *
Sample code: * *
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * String parent = CustomDimensionName.of("[PROPERTY]").toString();
- * for (CustomDimension element :
- * analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
+ * String parent =
+ * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString();
+ * for (DisplayVideo360AdvertiserLink element :
+ * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -6476,29 +6319,33 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName
* @param parent Required. Example format: properties/1234
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) {
- ListCustomDimensionsRequest request =
- ListCustomDimensionsRequest.newBuilder().setParent(parent).build();
- return listCustomDimensions(request);
+ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
+ String parent) {
+ ListDisplayVideo360AdvertiserLinksRequest request =
+ ListDisplayVideo360AdvertiserLinksRequest.newBuilder().setParent(parent).build();
+ return listDisplayVideo360AdvertiserLinks(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists CustomDimensions on a property.
+ * Lists all DisplayVideo360AdvertiserLinks on a property.
*
* Sample code:
*
*
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ListCustomDimensionsRequest request =
- * ListCustomDimensionsRequest.newBuilder()
- * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * ListDisplayVideo360AdvertiserLinksRequest request =
+ * ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * for (CustomDimension element :
- * analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) {
+ * for (DisplayVideo360AdvertiserLink element :
+ * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -6507,59 +6354,69 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(String paren
* @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 ListCustomDimensionsPagedResponse listCustomDimensions(
- ListCustomDimensionsRequest request) {
- return listCustomDimensionsPagedCallable().call(request);
+ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
+ ListDisplayVideo360AdvertiserLinksRequest request) {
+ return listDisplayVideo360AdvertiserLinksPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists CustomDimensions on a property.
+ * Lists all DisplayVideo360AdvertiserLinks on a property.
*
* Sample code:
*
*
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ListCustomDimensionsRequest request =
- * ListCustomDimensionsRequest.newBuilder()
- * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * ListDisplayVideo360AdvertiserLinksRequest request =
+ * ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * ApiFuture future =
- * analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .listDisplayVideo360AdvertiserLinksPagedCallable()
+ * .futureCall(request);
* // Do something.
- * for (CustomDimension element : future.get().iterateAll()) {
+ * for (DisplayVideo360AdvertiserLink element : future.get().iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*/
- public final UnaryCallable
- listCustomDimensionsPagedCallable() {
- return stub.listCustomDimensionsPagedCallable();
+ public final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksPagedCallable() {
+ return stub.listDisplayVideo360AdvertiserLinksPagedCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists CustomDimensions on a property.
+ * Lists all DisplayVideo360AdvertiserLinks on a property.
*
* Sample code:
*
*
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * ListCustomDimensionsRequest request =
- * ListCustomDimensionsRequest.newBuilder()
- * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * ListDisplayVideo360AdvertiserLinksRequest request =
+ * ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
* while (true) {
- * ListCustomDimensionsResponse response =
- * analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
- * for (CustomDimension element : response.getResponsesList()) {
+ * ListDisplayVideo360AdvertiserLinksResponse response =
+ * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinksCallable().call(request);
+ * for (DisplayVideo360AdvertiserLink element : response.getResponsesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -6572,7 +6429,1369 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(
* }
* }
*/
- public final UnaryCallable
+ public final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse>
+ listDisplayVideo360AdvertiserLinksCallable() {
+ return stub.listDisplayVideo360AdvertiserLinksCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * 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:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * 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 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.
+ /**
+ * 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:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent =
+ * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString();
+ * 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 DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(
+ String parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) {
+ CreateDisplayVideo360AdvertiserLinkRequest request =
+ CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ .setParent(parent)
+ .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink)
+ .build();
+ return createDisplayVideo360AdvertiserLink(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * 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:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateDisplayVideo360AdvertiserLinkRequest request =
+ * CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
+ * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
+ * .build();
+ * DisplayVideo360AdvertiserLink response =
+ * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(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 createDisplayVideo360AdvertiserLink(
+ CreateDisplayVideo360AdvertiserLinkRequest request) {
+ return createDisplayVideo360AdvertiserLinkCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * 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:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateDisplayVideo360AdvertiserLinkRequest request =
+ * CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
+ * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .createDisplayVideo360AdvertiserLinkCallable()
+ * .futureCall(request);
+ * // Do something.
+ * DisplayVideo360AdvertiserLink response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ createDisplayVideo360AdvertiserLinkCallable() {
+ return stub.createDisplayVideo360AdvertiserLinkCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a DisplayVideo360AdvertiserLink on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DisplayVideo360AdvertiserLinkName name =
+ * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
+ * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
+ * }
+ * }
+ *
+ * @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 void deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name) {
+ DeleteDisplayVideo360AdvertiserLinkRequest request =
+ DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteDisplayVideo360AdvertiserLink(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a DisplayVideo360AdvertiserLink on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name =
+ * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString();
+ * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
+ * }
+ * }
+ *
+ * @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 void deleteDisplayVideo360AdvertiserLink(String name) {
+ DeleteDisplayVideo360AdvertiserLinkRequest request =
+ DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build();
+ deleteDisplayVideo360AdvertiserLink(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a DisplayVideo360AdvertiserLink on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DeleteDisplayVideo360AdvertiserLinkRequest request =
+ * DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
+ * .build();
+ * 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 void deleteDisplayVideo360AdvertiserLink(
+ DeleteDisplayVideo360AdvertiserLinkRequest request) {
+ deleteDisplayVideo360AdvertiserLinkCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a DisplayVideo360AdvertiserLink on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DeleteDisplayVideo360AdvertiserLinkRequest request =
+ * DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .deleteDisplayVideo360AdvertiserLinkCallable()
+ * .futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteDisplayVideo360AdvertiserLinkCallable() {
+ return stub.deleteDisplayVideo360AdvertiserLinkCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a DisplayVideo360AdvertiserLink on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+ * DisplayVideo360AdvertiserLink.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * DisplayVideo360AdvertiserLink response =
+ * analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(
+ * displayVideo360AdvertiserLink, updateMask);
+ * }
+ * }
+ *
+ * @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 DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(
+ DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink, FieldMask updateMask) {
+ UpdateDisplayVideo360AdvertiserLinkRequest request =
+ UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateDisplayVideo360AdvertiserLink(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a DisplayVideo360AdvertiserLink on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateDisplayVideo360AdvertiserLinkRequest request =
+ * UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * 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 DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(
+ UpdateDisplayVideo360AdvertiserLinkRequest request) {
+ return updateDisplayVideo360AdvertiserLinkCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a DisplayVideo360AdvertiserLink on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateDisplayVideo360AdvertiserLinkRequest request =
+ * UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+ * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .updateDisplayVideo360AdvertiserLinkCallable()
+ * .futureCall(request);
+ * // Do something.
+ * DisplayVideo360AdvertiserLink response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ updateDisplayVideo360AdvertiserLinkCallable() {
+ return stub.updateDisplayVideo360AdvertiserLinkCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DisplayVideo360AdvertiserLinkProposalName name =
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
+ * }
+ * }
+ *
+ * @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 DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(
+ DisplayVideo360AdvertiserLinkProposalName name) {
+ GetDisplayVideo360AdvertiserLinkProposalRequest request =
+ GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getDisplayVideo360AdvertiserLinkProposal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name =
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString();
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
+ * }
+ * }
+ *
+ * @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 DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(
+ String name) {
+ GetDisplayVideo360AdvertiserLinkProposalRequest request =
+ GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build();
+ return getDisplayVideo360AdvertiserLinkProposal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetDisplayVideo360AdvertiserLinkProposalRequest request =
+ * GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(request);
+ * }
+ * }
+ *
+ * @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 DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(
+ GetDisplayVideo360AdvertiserLinkProposalRequest request) {
+ return getDisplayVideo360AdvertiserLinkProposalCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetDisplayVideo360AdvertiserLinkProposalRequest request =
+ * GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .getDisplayVideo360AdvertiserLinkProposalCallable()
+ * .futureCall(request);
+ * // Do something.
+ * DisplayVideo360AdvertiserLinkProposal response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalCallable() {
+ return stub.getDisplayVideo360AdvertiserLinkProposalCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * 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(PropertyName parent) {
+ ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+ ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDisplayVideo360AdvertiserLinkProposals(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent =
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .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.
+ /**
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * 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 ListDisplayVideo360AdvertiserLinkProposalsPagedResponse
+ listDisplayVideo360AdvertiserLinkProposals(
+ ListDisplayVideo360AdvertiserLinkProposalsRequest request) {
+ return listDisplayVideo360AdvertiserLinkProposalsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .listDisplayVideo360AdvertiserLinkProposalsPagedCallable()
+ * .futureCall(request);
+ * // Do something.
+ * for (DisplayVideo360AdvertiserLinkProposal element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsPagedCallable() {
+ return stub.listDisplayVideo360AdvertiserLinkProposalsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+ * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListDisplayVideo360AdvertiserLinkProposalsResponse response =
+ * analyticsAdminServiceClient
+ * .listDisplayVideo360AdvertiserLinkProposalsCallable()
+ * .call(request);
+ * for (DisplayVideo360AdvertiserLinkProposal element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse>
+ listDisplayVideo360AdvertiserLinkProposalsCallable() {
+ return stub.listDisplayVideo360AdvertiserLinkProposalsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+ * DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
+ * parent, displayVideo360AdvertiserLinkProposal);
+ * }
+ * }
+ *
+ * @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 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.
+ /**
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent =
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString();
+ * DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+ * DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
+ * parent, displayVideo360AdvertiserLinkProposal);
+ * }
+ * }
+ *
+ * @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 DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(
+ String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) {
+ CreateDisplayVideo360AdvertiserLinkProposalRequest request =
+ CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setParent(parent)
+ .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal)
+ .build();
+ return createDisplayVideo360AdvertiserLinkProposal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateDisplayVideo360AdvertiserLinkProposalRequest request =
+ * CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .setDisplayVideo360AdvertiserLinkProposal(
+ * DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
+ * .build();
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(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 DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(
+ CreateDisplayVideo360AdvertiserLinkProposalRequest request) {
+ return createDisplayVideo360AdvertiserLinkProposalCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateDisplayVideo360AdvertiserLinkProposalRequest request =
+ * CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setParent(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .setDisplayVideo360AdvertiserLinkProposal(
+ * DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .createDisplayVideo360AdvertiserLinkProposalCallable()
+ * .futureCall(request);
+ * // Do something.
+ * DisplayVideo360AdvertiserLinkProposal response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalCallable() {
+ return stub.createDisplayVideo360AdvertiserLinkProposalCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
+ * cancelled proposals.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DisplayVideo360AdvertiserLinkProposalName name =
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
+ * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
+ * }
+ * }
+ *
+ * @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 deleteDisplayVideo360AdvertiserLinkProposal(
+ DisplayVideo360AdvertiserLinkProposalName name) {
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteDisplayVideo360AdvertiserLinkProposal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
+ * cancelled proposals.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name =
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString();
+ * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
+ * }
+ * }
+ *
+ * @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 deleteDisplayVideo360AdvertiserLinkProposal(String name) {
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build();
+ deleteDisplayVideo360AdvertiserLinkProposal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
+ * cancelled proposals.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
+ * DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(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 deleteDisplayVideo360AdvertiserLinkProposal(
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest request) {
+ deleteDisplayVideo360AdvertiserLinkProposalCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
+ * cancelled proposals.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
+ * DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .deleteDisplayVideo360AdvertiserLinkProposalCallable()
+ * .futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteDisplayVideo360AdvertiserLinkProposalCallable() {
+ return stub.deleteDisplayVideo360AdvertiserLinkProposalCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal
+ * will be deleted and a new DisplayVideo360AdvertiserLink will be created.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
+ * ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * ApproveDisplayVideo360AdvertiserLinkProposalResponse response =
+ * analyticsAdminServiceClient.approveDisplayVideo360AdvertiserLinkProposal(request);
+ * }
+ * }
+ *
+ * @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 ApproveDisplayVideo360AdvertiserLinkProposalResponse
+ approveDisplayVideo360AdvertiserLinkProposal(
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest request) {
+ return approveDisplayVideo360AdvertiserLinkProposalCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal
+ * will be deleted and a new DisplayVideo360AdvertiserLink will be created.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
+ * ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .approveDisplayVideo360AdvertiserLinkProposalCallable()
+ * .futureCall(request);
+ * // Do something.
+ * ApproveDisplayVideo360AdvertiserLinkProposalResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalCallable() {
+ return stub.approveDisplayVideo360AdvertiserLinkProposalCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * 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:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CancelDisplayVideo360AdvertiserLinkProposalRequest request =
+ * CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * DisplayVideo360AdvertiserLinkProposal response =
+ * analyticsAdminServiceClient.cancelDisplayVideo360AdvertiserLinkProposal(request);
+ * }
+ * }
+ *
+ * @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 DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360AdvertiserLinkProposal(
+ CancelDisplayVideo360AdvertiserLinkProposalRequest request) {
+ return cancelDisplayVideo360AdvertiserLinkProposalCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * 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:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CancelDisplayVideo360AdvertiserLinkProposalRequest request =
+ * CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ * .setName(
+ * DisplayVideo360AdvertiserLinkProposalName.of(
+ * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .cancelDisplayVideo360AdvertiserLinkProposalCallable()
+ * .futureCall(request);
+ * // Do something.
+ * DisplayVideo360AdvertiserLinkProposal response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalCallable() {
+ return stub.cancelDisplayVideo360AdvertiserLinkProposalCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * CustomDimension customDimension = CustomDimension.newBuilder().build();
+ * CustomDimension response =
+ * analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @param customDimension Required. The CustomDimension to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension createCustomDimension(
+ PropertyName parent, CustomDimension customDimension) {
+ CreateCustomDimensionRequest request =
+ CreateCustomDimensionRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCustomDimension(customDimension)
+ .build();
+ return createCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent = CustomDimensionName.of("[PROPERTY]").toString();
+ * CustomDimension customDimension = CustomDimension.newBuilder().build();
+ * CustomDimension response =
+ * analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @param customDimension Required. The CustomDimension to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension createCustomDimension(
+ String parent, CustomDimension customDimension) {
+ CreateCustomDimensionRequest request =
+ CreateCustomDimensionRequest.newBuilder()
+ .setParent(parent)
+ .setCustomDimension(customDimension)
+ .build();
+ return createCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateCustomDimensionRequest request =
+ * CreateCustomDimensionRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setCustomDimension(CustomDimension.newBuilder().build())
+ * .build();
+ * CustomDimension response = analyticsAdminServiceClient.createCustomDimension(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 CustomDimension createCustomDimension(CreateCustomDimensionRequest request) {
+ return createCustomDimensionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateCustomDimensionRequest request =
+ * CreateCustomDimensionRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setCustomDimension(CustomDimension.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
+ * // Do something.
+ * CustomDimension response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createCustomDimensionCallable() {
+ return stub.createCustomDimensionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CustomDimension customDimension = CustomDimension.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * CustomDimension response =
+ * analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
+ * }
+ * }
+ *
+ * @param customDimension The CustomDimension 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 CustomDimension updateCustomDimension(
+ CustomDimension customDimension, FieldMask updateMask) {
+ UpdateCustomDimensionRequest request =
+ UpdateCustomDimensionRequest.newBuilder()
+ .setCustomDimension(customDimension)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateCustomDimensionRequest request =
+ * UpdateCustomDimensionRequest.newBuilder()
+ * .setCustomDimension(CustomDimension.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(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 CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) {
+ return updateCustomDimensionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateCustomDimensionRequest request =
+ * UpdateCustomDimensionRequest.newBuilder()
+ * .setCustomDimension(CustomDimension.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
+ * // Do something.
+ * CustomDimension response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateCustomDimensionCallable() {
+ return stub.updateCustomDimensionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * for (CustomDimension element :
+ * analyticsAdminServiceClient.listCustomDimensions(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 ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) {
+ ListCustomDimensionsRequest request =
+ ListCustomDimensionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCustomDimensions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent = CustomDimensionName.of("[PROPERTY]").toString();
+ * for (CustomDimension element :
+ * analyticsAdminServiceClient.listCustomDimensions(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 ListCustomDimensionsPagedResponse listCustomDimensions(String parent) {
+ ListCustomDimensionsRequest request =
+ ListCustomDimensionsRequest.newBuilder().setParent(parent).build();
+ return listCustomDimensions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListCustomDimensionsRequest request =
+ * ListCustomDimensionsRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (CustomDimension element :
+ * analyticsAdminServiceClient.listCustomDimensions(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 ListCustomDimensionsPagedResponse listCustomDimensions(
+ ListCustomDimensionsRequest request) {
+ return listCustomDimensionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListCustomDimensionsRequest request =
+ * ListCustomDimensionsRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (CustomDimension element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listCustomDimensionsPagedCallable() {
+ return stub.listCustomDimensionsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListCustomDimensionsRequest request =
+ * ListCustomDimensionsRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListCustomDimensionsResponse response =
+ * analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
+ * for (CustomDimension element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
listCustomDimensionsCallable() {
return stub.listCustomDimensionsCallable();
}
@@ -7303,6 +8522,196 @@ public final UnaryCallable getCustomMetric
return stub.getCustomMetricCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the singleton data retention settings for this property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]");
+ * DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the settings to lookup. Format:
+ * properties/{property}/dataRetentionSettings Example:
+ * "properties/1000/dataRetentionSettings"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name) {
+ GetDataRetentionSettingsRequest request =
+ GetDataRetentionSettingsRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getDataRetentionSettings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the singleton data retention settings for this property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name = DataRetentionSettingsName.of("[PROPERTY]").toString();
+ * DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the settings to lookup. Format:
+ * properties/{property}/dataRetentionSettings Example:
+ * "properties/1000/dataRetentionSettings"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DataRetentionSettings getDataRetentionSettings(String name) {
+ GetDataRetentionSettingsRequest request =
+ GetDataRetentionSettingsRequest.newBuilder().setName(name).build();
+ return getDataRetentionSettings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the singleton data retention settings for this property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetDataRetentionSettingsRequest request =
+ * GetDataRetentionSettingsRequest.newBuilder()
+ * .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
+ * .build();
+ * DataRetentionSettings response =
+ * analyticsAdminServiceClient.getDataRetentionSettings(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 DataRetentionSettings getDataRetentionSettings(
+ GetDataRetentionSettingsRequest request) {
+ return getDataRetentionSettingsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the singleton data retention settings for this property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetDataRetentionSettingsRequest request =
+ * GetDataRetentionSettingsRequest.newBuilder()
+ * .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.getDataRetentionSettingsCallable().futureCall(request);
+ * // Do something.
+ * DataRetentionSettings response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getDataRetentionSettingsCallable() {
+ return stub.getDataRetentionSettingsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the singleton data retention settings for this property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * DataRetentionSettings response =
+ * analyticsAdminServiceClient.updateDataRetentionSettings(
+ * dataRetentionSettings, updateMask);
+ * }
+ * }
+ *
+ * @param dataRetentionSettings 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.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DataRetentionSettings updateDataRetentionSettings(
+ DataRetentionSettings dataRetentionSettings, FieldMask updateMask) {
+ UpdateDataRetentionSettingsRequest request =
+ UpdateDataRetentionSettingsRequest.newBuilder()
+ .setDataRetentionSettings(dataRetentionSettings)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateDataRetentionSettings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the singleton data retention settings for this property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateDataRetentionSettingsRequest request =
+ * UpdateDataRetentionSettingsRequest.newBuilder()
+ * .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * DataRetentionSettings response =
+ * analyticsAdminServiceClient.updateDataRetentionSettings(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 DataRetentionSettings updateDataRetentionSettings(
+ UpdateDataRetentionSettingsRequest request) {
+ return updateDataRetentionSettingsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the singleton data retention settings for this property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateDataRetentionSettingsRequest request =
+ * UpdateDataRetentionSettingsRequest.newBuilder()
+ * .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.updateDataRetentionSettingsCallable().futureCall(request);
+ * // Do something.
+ * DataRetentionSettings response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateDataRetentionSettingsCallable() {
+ return stub.updateDataRetentionSettingsCallable();
+ }
+
@Override
public final void close() {
stub.close();
@@ -8417,6 +9826,206 @@ protected ListConversionEventsFixedSizeCollection createCollection(
}
}
+ public static class ListDisplayVideo360AdvertiserLinksPagedResponse
+ extends AbstractPagedListResponse<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink,
+ ListDisplayVideo360AdvertiserLinksPage,
+ ListDisplayVideo360AdvertiserLinksFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListDisplayVideo360AdvertiserLinksPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListDisplayVideo360AdvertiserLinksPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListDisplayVideo360AdvertiserLinksPagedResponse(
+ ListDisplayVideo360AdvertiserLinksPage page) {
+ super(page, ListDisplayVideo360AdvertiserLinksFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListDisplayVideo360AdvertiserLinksPage
+ extends AbstractPage<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink,
+ ListDisplayVideo360AdvertiserLinksPage> {
+
+ private ListDisplayVideo360AdvertiserLinksPage(
+ PageContext<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink>
+ context,
+ ListDisplayVideo360AdvertiserLinksResponse response) {
+ super(context, response);
+ }
+
+ private static ListDisplayVideo360AdvertiserLinksPage createEmptyPage() {
+ return new ListDisplayVideo360AdvertiserLinksPage(null, null);
+ }
+
+ @Override
+ protected ListDisplayVideo360AdvertiserLinksPage createPage(
+ PageContext<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink>
+ context,
+ ListDisplayVideo360AdvertiserLinksResponse response) {
+ return new ListDisplayVideo360AdvertiserLinksPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListDisplayVideo360AdvertiserLinksFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink,
+ ListDisplayVideo360AdvertiserLinksPage,
+ ListDisplayVideo360AdvertiserLinksFixedSizeCollection> {
+
+ private ListDisplayVideo360AdvertiserLinksFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListDisplayVideo360AdvertiserLinksFixedSizeCollection createEmptyCollection() {
+ return new ListDisplayVideo360AdvertiserLinksFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListDisplayVideo360AdvertiserLinksFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListDisplayVideo360AdvertiserLinksFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListDisplayVideo360AdvertiserLinkProposalsPagedResponse
+ extends AbstractPagedListResponse<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal,
+ ListDisplayVideo360AdvertiserLinkProposalsPage,
+ ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListDisplayVideo360AdvertiserLinkProposalsPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListDisplayVideo360AdvertiserLinkProposalsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListDisplayVideo360AdvertiserLinkProposalsPagedResponse(
+ ListDisplayVideo360AdvertiserLinkProposalsPage page) {
+ super(
+ page,
+ ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListDisplayVideo360AdvertiserLinkProposalsPage
+ extends AbstractPage<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal,
+ ListDisplayVideo360AdvertiserLinkProposalsPage> {
+
+ private ListDisplayVideo360AdvertiserLinkProposalsPage(
+ PageContext<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal>
+ context,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse response) {
+ super(context, response);
+ }
+
+ private static ListDisplayVideo360AdvertiserLinkProposalsPage createEmptyPage() {
+ return new ListDisplayVideo360AdvertiserLinkProposalsPage(null, null);
+ }
+
+ @Override
+ protected ListDisplayVideo360AdvertiserLinkProposalsPage createPage(
+ PageContext<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal>
+ context,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse response) {
+ return new ListDisplayVideo360AdvertiserLinkProposalsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal,
+ ListDisplayVideo360AdvertiserLinkProposalsPage,
+ ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection> {
+
+ private ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection
+ createEmptyCollection() {
+ return new ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection(
+ pages, collectionSize);
+ }
+ }
+
public static class ListCustomDimensionsPagedResponse
extends AbstractPagedListResponse<
ListCustomDimensionsRequest,
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java
index ab244744..64ef040b 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java
@@ -23,6 +23,8 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse;
@@ -311,11 +313,6 @@ public UnaryCallSettings createFirebase
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings();
}
- /** Returns the object with the settings used for calls to updateFirebaseLink. */
- public UnaryCallSettings updateFirebaseLinkSettings() {
- return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateFirebaseLinkSettings();
- }
-
/** Returns the object with the settings used for calls to deleteFirebaseLink. */
public UnaryCallSettings deleteFirebaseLinkSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteFirebaseLinkSettings();
@@ -451,6 +448,114 @@ public UnaryCallSettings deleteConversionEv
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConversionEventsSettings();
}
+ /** Returns the object with the settings used for calls to getDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings
+ getDisplayVideo360AdvertiserLinkSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .getDisplayVideo360AdvertiserLinkSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listDisplayVideo360AdvertiserLinks. */
+ public PagedCallSettings<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .listDisplayVideo360AdvertiserLinksSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings<
+ CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ createDisplayVideo360AdvertiserLinkSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .createDisplayVideo360AdvertiserLinkSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings
+ deleteDisplayVideo360AdvertiserLinkSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .deleteDisplayVideo360AdvertiserLinkSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings<
+ UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ updateDisplayVideo360AdvertiserLinkSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .updateDisplayVideo360AdvertiserLinkSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * getDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .getDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * listDisplayVideo360AdvertiserLinkProposals.
+ */
+ public PagedCallSettings<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .listDisplayVideo360AdvertiserLinkProposalsSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * createDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .createDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * deleteDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings
+ deleteDisplayVideo360AdvertiserLinkProposalSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .deleteDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * approveDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .approveDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * cancelDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .cancelDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
/** Returns the object with the settings used for calls to createCustomDimension. */
public UnaryCallSettings
createCustomDimensionSettings() {
@@ -510,6 +615,20 @@ public UnaryCallSettings getCustomMetricSe
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomMetricSettings();
}
+ /** Returns the object with the settings used for calls to getDataRetentionSettings. */
+ public UnaryCallSettings
+ getDataRetentionSettingsSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .getDataRetentionSettingsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateDataRetentionSettings. */
+ public UnaryCallSettings
+ updateDataRetentionSettingsSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .updateDataRetentionSettingsSettings();
+ }
+
public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub)
throws IOException {
return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build();
@@ -835,12 +954,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return getStubSettingsBuilder().createFirebaseLinkSettings();
}
- /** Returns the builder for the settings used for calls to updateFirebaseLink. */
- public UnaryCallSettings.Builder
- updateFirebaseLinkSettings() {
- return getStubSettingsBuilder().updateFirebaseLinkSettings();
- }
-
/** Returns the builder for the settings used for calls to deleteFirebaseLink. */
public UnaryCallSettings.Builder
deleteFirebaseLinkSettings() {
@@ -974,6 +1087,114 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return getStubSettingsBuilder().listConversionEventsSettings();
}
+ /** Returns the builder for the settings used for calls to getDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings.Builder<
+ GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ getDisplayVideo360AdvertiserLinkSettings() {
+ return getStubSettingsBuilder().getDisplayVideo360AdvertiserLinkSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to listDisplayVideo360AdvertiserLinks.
+ */
+ public PagedCallSettings.Builder<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksSettings() {
+ return getStubSettingsBuilder().listDisplayVideo360AdvertiserLinksSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to createDisplayVideo360AdvertiserLink.
+ */
+ public UnaryCallSettings.Builder<
+ CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ createDisplayVideo360AdvertiserLinkSettings() {
+ return getStubSettingsBuilder().createDisplayVideo360AdvertiserLinkSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to deleteDisplayVideo360AdvertiserLink.
+ */
+ public UnaryCallSettings.Builder
+ deleteDisplayVideo360AdvertiserLinkSettings() {
+ return getStubSettingsBuilder().deleteDisplayVideo360AdvertiserLinkSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to updateDisplayVideo360AdvertiserLink.
+ */
+ public UnaryCallSettings.Builder<
+ UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ updateDisplayVideo360AdvertiserLinkSettings() {
+ return getStubSettingsBuilder().updateDisplayVideo360AdvertiserLinkSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * getDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalSettings() {
+ return getStubSettingsBuilder().getDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * listDisplayVideo360AdvertiserLinkProposals.
+ */
+ public PagedCallSettings.Builder<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsSettings() {
+ return getStubSettingsBuilder().listDisplayVideo360AdvertiserLinkProposalsSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * createDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest,
+ DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalSettings() {
+ return getStubSettingsBuilder().createDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * deleteDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder
+ deleteDisplayVideo360AdvertiserLinkProposalSettings() {
+ return getStubSettingsBuilder().deleteDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * approveDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalSettings() {
+ return getStubSettingsBuilder().approveDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * cancelDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest,
+ DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalSettings() {
+ return getStubSettingsBuilder().cancelDisplayVideo360AdvertiserLinkProposalSettings();
+ }
+
/** Returns the builder for the settings used for calls to createCustomDimension. */
public UnaryCallSettings.Builder
createCustomDimensionSettings() {
@@ -1038,6 +1259,18 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return getStubSettingsBuilder().getCustomMetricSettings();
}
+ /** Returns the builder for the settings used for calls to getDataRetentionSettings. */
+ public UnaryCallSettings.Builder
+ getDataRetentionSettingsSettings() {
+ return getStubSettingsBuilder().getDataRetentionSettingsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */
+ public UnaryCallSettings.Builder
+ updateDataRetentionSettingsSettings() {
+ return getStubSettingsBuilder().updateDataRetentionSettingsSettings();
+ }
+
@Override
public AnalyticsAdminServiceSettings build() throws IOException {
return new AnalyticsAdminServiceSettings(this);
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json
index fe921e8b..a9ba9efd 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json
@@ -10,6 +10,9 @@
"grpc": {
"libraryClient": "AnalyticsAdminServiceClient",
"rpcs": {
+ "ApproveDisplayVideo360AdvertiserLinkProposal": {
+ "methods": ["approveDisplayVideo360AdvertiserLinkProposal", "approveDisplayVideo360AdvertiserLinkProposalCallable"]
+ },
"ArchiveCustomDimension": {
"methods": ["archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimensionCallable"]
},
@@ -31,6 +34,9 @@
"BatchUpdateUserLinks": {
"methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"]
},
+ "CancelDisplayVideo360AdvertiserLinkProposal": {
+ "methods": ["cancelDisplayVideo360AdvertiserLinkProposal", "cancelDisplayVideo360AdvertiserLinkProposalCallable"]
+ },
"CreateConversionEvent": {
"methods": ["createConversionEvent", "createConversionEvent", "createConversionEvent", "createConversionEventCallable"]
},
@@ -40,6 +46,12 @@
"CreateCustomMetric": {
"methods": ["createCustomMetric", "createCustomMetric", "createCustomMetric", "createCustomMetricCallable"]
},
+ "CreateDisplayVideo360AdvertiserLink": {
+ "methods": ["createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLinkCallable"]
+ },
+ "CreateDisplayVideo360AdvertiserLinkProposal": {
+ "methods": ["createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposalCallable"]
+ },
"CreateFirebaseLink": {
"methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"]
},
@@ -67,6 +79,12 @@
"DeleteConversionEvent": {
"methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"]
},
+ "DeleteDisplayVideo360AdvertiserLink": {
+ "methods": ["deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLinkCallable"]
+ },
+ "DeleteDisplayVideo360AdvertiserLinkProposal": {
+ "methods": ["deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposalCallable"]
+ },
"DeleteFirebaseLink": {
"methods": ["deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLinkCallable"]
},
@@ -103,9 +121,18 @@
"GetCustomMetric": {
"methods": ["getCustomMetric", "getCustomMetric", "getCustomMetric", "getCustomMetricCallable"]
},
+ "GetDataRetentionSettings": {
+ "methods": ["getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettingsCallable"]
+ },
"GetDataSharingSettings": {
"methods": ["getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettingsCallable"]
},
+ "GetDisplayVideo360AdvertiserLink": {
+ "methods": ["getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLinkCallable"]
+ },
+ "GetDisplayVideo360AdvertiserLinkProposal": {
+ "methods": ["getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposalCallable"]
+ },
"GetEnhancedMeasurementSettings": {
"methods": ["getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettingsCallable"]
},
@@ -148,6 +175,12 @@
"ListCustomMetrics": {
"methods": ["listCustomMetrics", "listCustomMetrics", "listCustomMetrics", "listCustomMetricsPagedCallable", "listCustomMetricsCallable"]
},
+ "ListDisplayVideo360AdvertiserLinkProposals": {
+ "methods": ["listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposalsPagedCallable", "listDisplayVideo360AdvertiserLinkProposalsCallable"]
+ },
+ "ListDisplayVideo360AdvertiserLinks": {
+ "methods": ["listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinksPagedCallable", "listDisplayVideo360AdvertiserLinksCallable"]
+ },
"ListFirebaseLinks": {
"methods": ["listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinksPagedCallable", "listFirebaseLinksCallable"]
},
@@ -187,12 +220,15 @@
"UpdateCustomMetric": {
"methods": ["updateCustomMetric", "updateCustomMetric", "updateCustomMetricCallable"]
},
+ "UpdateDataRetentionSettings": {
+ "methods": ["updateDataRetentionSettings", "updateDataRetentionSettings", "updateDataRetentionSettingsCallable"]
+ },
+ "UpdateDisplayVideo360AdvertiserLink": {
+ "methods": ["updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLinkCallable"]
+ },
"UpdateEnhancedMeasurementSettings": {
"methods": ["updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettingsCallable"]
},
- "UpdateFirebaseLink": {
- "methods": ["updateFirebaseLink", "updateFirebaseLink", "updateFirebaseLinkCallable"]
- },
"UpdateGoogleAdsLink": {
"methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"]
},
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java
index 84390ca3..461983a3 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java
@@ -23,6 +23,8 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse;
@@ -34,6 +36,8 @@
import com.google.analytics.admin.v1alpha.Account;
import com.google.analytics.admin.v1alpha.AndroidAppDataStream;
+import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse;
import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest;
import com.google.analytics.admin.v1alpha.AuditUserLinksRequest;
@@ -45,10 +49,13 @@
import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse;
+import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest;
import com.google.analytics.admin.v1alpha.ConversionEvent;
import com.google.analytics.admin.v1alpha.CreateConversionEventRequest;
import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest;
+import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest;
@@ -57,10 +64,13 @@
import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest;
import com.google.analytics.admin.v1alpha.CustomDimension;
import com.google.analytics.admin.v1alpha.CustomMetric;
+import com.google.analytics.admin.v1alpha.DataRetentionSettings;
import com.google.analytics.admin.v1alpha.DataSharingSettings;
import com.google.analytics.admin.v1alpha.DeleteAccountRequest;
import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest;
import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest;
+import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest;
@@ -68,6 +78,8 @@
import com.google.analytics.admin.v1alpha.DeletePropertyRequest;
import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest;
+import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink;
+import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal;
import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings;
import com.google.analytics.admin.v1alpha.FirebaseLink;
import com.google.analytics.admin.v1alpha.GetAccountRequest;
@@ -75,7 +87,10 @@
import com.google.analytics.admin.v1alpha.GetConversionEventRequest;
import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.GetCustomMetricRequest;
+import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest;
import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest;
+import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;
import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest;
import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest;
@@ -100,6 +115,10 @@
import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse;
import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest;
import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse;
import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest;
@@ -124,8 +143,9 @@
import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest;
import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest;
+import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest;
+import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;
-import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest;
import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest;
@@ -358,10 +378,6 @@ public UnaryCallable createFirebaseLink
throw new UnsupportedOperationException("Not implemented: createFirebaseLinkCallable()");
}
- public UnaryCallable updateFirebaseLinkCallable() {
- throw new UnsupportedOperationException("Not implemented: updateFirebaseLinkCallable()");
- }
-
public UnaryCallable deleteFirebaseLinkCallable() {
throw new UnsupportedOperationException("Not implemented: deleteFirebaseLinkCallable()");
}
@@ -490,6 +506,96 @@ public UnaryCallable deleteConversionEventC
throw new UnsupportedOperationException("Not implemented: listConversionEventsCallable()");
}
+ public UnaryCallable
+ getDisplayVideo360AdvertiserLinkCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: getDisplayVideo360AdvertiserLinkCallable()");
+ }
+
+ public UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listDisplayVideo360AdvertiserLinksPagedCallable()");
+ }
+
+ public UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse>
+ listDisplayVideo360AdvertiserLinksCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listDisplayVideo360AdvertiserLinksCallable()");
+ }
+
+ public UnaryCallable
+ createDisplayVideo360AdvertiserLinkCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createDisplayVideo360AdvertiserLinkCallable()");
+ }
+
+ public UnaryCallable
+ deleteDisplayVideo360AdvertiserLinkCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteDisplayVideo360AdvertiserLinkCallable()");
+ }
+
+ public UnaryCallable
+ updateDisplayVideo360AdvertiserLinkCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: updateDisplayVideo360AdvertiserLinkCallable()");
+ }
+
+ public UnaryCallable<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: getDisplayVideo360AdvertiserLinkProposalCallable()");
+ }
+
+ public UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listDisplayVideo360AdvertiserLinkProposalsPagedCallable()");
+ }
+
+ public UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse>
+ listDisplayVideo360AdvertiserLinkProposalsCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listDisplayVideo360AdvertiserLinkProposalsCallable()");
+ }
+
+ public UnaryCallable<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createDisplayVideo360AdvertiserLinkProposalCallable()");
+ }
+
+ public UnaryCallable
+ deleteDisplayVideo360AdvertiserLinkProposalCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteDisplayVideo360AdvertiserLinkProposalCallable()");
+ }
+
+ public UnaryCallable<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: approveDisplayVideo360AdvertiserLinkProposalCallable()");
+ }
+
+ public UnaryCallable<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: cancelDisplayVideo360AdvertiserLinkProposalCallable()");
+ }
+
public UnaryCallable
createCustomDimensionCallable() {
throw new UnsupportedOperationException("Not implemented: createCustomDimensionCallable()");
@@ -544,6 +650,17 @@ public UnaryCallable getCustomMetricCallab
throw new UnsupportedOperationException("Not implemented: getCustomMetricCallable()");
}
+ public UnaryCallable
+ getDataRetentionSettingsCallable() {
+ throw new UnsupportedOperationException("Not implemented: getDataRetentionSettingsCallable()");
+ }
+
+ public UnaryCallable
+ updateDataRetentionSettingsCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: updateDataRetentionSettingsCallable()");
+ }
+
@Override
public abstract void close();
}
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java
index 8d538243..15104002 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java
@@ -23,6 +23,8 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse;
@@ -35,6 +37,8 @@
import com.google.analytics.admin.v1alpha.Account;
import com.google.analytics.admin.v1alpha.AccountSummary;
import com.google.analytics.admin.v1alpha.AndroidAppDataStream;
+import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse;
import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest;
import com.google.analytics.admin.v1alpha.AuditUserLink;
@@ -47,11 +51,14 @@
import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse;
+import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest;
import com.google.analytics.admin.v1alpha.ChangeHistoryEvent;
import com.google.analytics.admin.v1alpha.ConversionEvent;
import com.google.analytics.admin.v1alpha.CreateConversionEventRequest;
import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest;
+import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest;
@@ -60,10 +67,13 @@
import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest;
import com.google.analytics.admin.v1alpha.CustomDimension;
import com.google.analytics.admin.v1alpha.CustomMetric;
+import com.google.analytics.admin.v1alpha.DataRetentionSettings;
import com.google.analytics.admin.v1alpha.DataSharingSettings;
import com.google.analytics.admin.v1alpha.DeleteAccountRequest;
import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest;
import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest;
+import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest;
@@ -71,6 +81,8 @@
import com.google.analytics.admin.v1alpha.DeletePropertyRequest;
import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest;
+import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink;
+import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal;
import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings;
import com.google.analytics.admin.v1alpha.FirebaseLink;
import com.google.analytics.admin.v1alpha.GetAccountRequest;
@@ -78,7 +90,10 @@
import com.google.analytics.admin.v1alpha.GetConversionEventRequest;
import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.GetCustomMetricRequest;
+import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest;
import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest;
+import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;
import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest;
import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest;
@@ -103,6 +118,10 @@
import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse;
import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest;
import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse;
import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest;
@@ -127,8 +146,9 @@
import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest;
import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest;
+import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest;
+import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;
-import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest;
import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest;
@@ -293,8 +313,6 @@ public class AnalyticsAdminServiceStubSettings
updateEnhancedMeasurementSettingsSettings;
private final UnaryCallSettings
createFirebaseLinkSettings;
- private final UnaryCallSettings
- updateFirebaseLinkSettings;
private final UnaryCallSettings deleteFirebaseLinkSettings;
private final PagedCallSettings<
ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse>
@@ -343,6 +361,42 @@ public class AnalyticsAdminServiceStubSettings
ListConversionEventsResponse,
ListConversionEventsPagedResponse>
listConversionEventsSettings;
+ private final UnaryCallSettings<
+ GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ getDisplayVideo360AdvertiserLinkSettings;
+ private final PagedCallSettings<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksSettings;
+ private final UnaryCallSettings<
+ CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ createDisplayVideo360AdvertiserLinkSettings;
+ private final UnaryCallSettings
+ deleteDisplayVideo360AdvertiserLinkSettings;
+ private final UnaryCallSettings<
+ UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ updateDisplayVideo360AdvertiserLinkSettings;
+ private final UnaryCallSettings<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalSettings;
+ private final PagedCallSettings<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsSettings;
+ private final UnaryCallSettings<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalSettings;
+ private final UnaryCallSettings
+ deleteDisplayVideo360AdvertiserLinkProposalSettings;
+ private final UnaryCallSettings<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalSettings;
+ private final UnaryCallSettings<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalSettings;
private final UnaryCallSettings
createCustomDimensionSettings;
private final UnaryCallSettings
@@ -365,6 +419,10 @@ public class AnalyticsAdminServiceStubSettings
listCustomMetricsSettings;
private final UnaryCallSettings archiveCustomMetricSettings;
private final UnaryCallSettings getCustomMetricSettings;
+ private final UnaryCallSettings
+ getDataRetentionSettingsSettings;
+ private final UnaryCallSettings
+ updateDataRetentionSettingsSettings;
private static final PagedListDescriptor
LIST_ACCOUNTS_PAGE_STR_DESC =
@@ -898,6 +956,106 @@ public Iterable extractResources(
}
};
+ private static final PagedListDescriptor<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink>
+ LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListDisplayVideo360AdvertiserLinksRequest injectToken(
+ ListDisplayVideo360AdvertiserLinksRequest payload, String token) {
+ return ListDisplayVideo360AdvertiserLinksRequest.newBuilder(payload)
+ .setPageToken(token)
+ .build();
+ }
+
+ @Override
+ public ListDisplayVideo360AdvertiserLinksRequest injectPageSize(
+ ListDisplayVideo360AdvertiserLinksRequest payload, int pageSize) {
+ return ListDisplayVideo360AdvertiserLinksRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListDisplayVideo360AdvertiserLinksRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListDisplayVideo360AdvertiserLinksResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListDisplayVideo360AdvertiserLinksResponse payload) {
+ return payload.getDisplayVideo360AdvertiserLinksList() == null
+ ? ImmutableList.of()
+ : payload.getDisplayVideo360AdvertiserLinksList();
+ }
+ };
+
+ private static final PagedListDescriptor<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal>
+ LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListDisplayVideo360AdvertiserLinkProposalsRequest injectToken(
+ ListDisplayVideo360AdvertiserLinkProposalsRequest payload, String token) {
+ return ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder(payload)
+ .setPageToken(token)
+ .build();
+ }
+
+ @Override
+ public ListDisplayVideo360AdvertiserLinkProposalsRequest injectPageSize(
+ ListDisplayVideo360AdvertiserLinkProposalsRequest payload, int pageSize) {
+ return ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(
+ ListDisplayVideo360AdvertiserLinkProposalsRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(
+ ListDisplayVideo360AdvertiserLinkProposalsResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListDisplayVideo360AdvertiserLinkProposalsResponse payload) {
+ return payload.getDisplayVideo360AdvertiserLinkProposalsList() == null
+ ? ImmutableList.of()
+ : payload.getDisplayVideo360AdvertiserLinkProposalsList();
+ }
+ };
+
private static final PagedListDescriptor<
ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>
LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC =
@@ -1272,6 +1430,74 @@ public ApiFuture getFuturePagedResponse(
}
};
+ private static final PagedListResponseFactory<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>() {
+ @Override
+ public ApiFuture
+ getFuturePagedResponse(
+ UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse>
+ callable,
+ ListDisplayVideo360AdvertiserLinksRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ DisplayVideo360AdvertiserLink>
+ pageContext =
+ PageContext.create(
+ callable,
+ LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_DESC,
+ request,
+ context);
+ return ListDisplayVideo360AdvertiserLinksPagedResponse.createAsync(
+ pageContext, futureResponse);
+ }
+ };
+
+ private static final PagedListResponseFactory<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>() {
+ @Override
+ public ApiFuture
+ getFuturePagedResponse(
+ UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse>
+ callable,
+ ListDisplayVideo360AdvertiserLinkProposalsRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ DisplayVideo360AdvertiserLinkProposal>
+ pageContext =
+ PageContext.create(
+ callable,
+ LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_DESC,
+ request,
+ context);
+ return ListDisplayVideo360AdvertiserLinkProposalsPagedResponse.createAsync(
+ pageContext, futureResponse);
+ }
+ };
+
private static final PagedListResponseFactory<
ListCustomDimensionsRequest,
ListCustomDimensionsResponse,
@@ -1535,11 +1761,6 @@ public UnaryCallSettings createFirebase
return createFirebaseLinkSettings;
}
- /** Returns the object with the settings used for calls to updateFirebaseLink. */
- public UnaryCallSettings updateFirebaseLinkSettings() {
- return updateFirebaseLinkSettings;
- }
-
/** Returns the object with the settings used for calls to deleteFirebaseLink. */
public UnaryCallSettings deleteFirebaseLinkSettings() {
return deleteFirebaseLinkSettings;
@@ -1667,6 +1888,103 @@ public UnaryCallSettings deleteConversionEv
return listConversionEventsSettings;
}
+ /** Returns the object with the settings used for calls to getDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings
+ getDisplayVideo360AdvertiserLinkSettings() {
+ return getDisplayVideo360AdvertiserLinkSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listDisplayVideo360AdvertiserLinks. */
+ public PagedCallSettings<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksSettings() {
+ return listDisplayVideo360AdvertiserLinksSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings<
+ CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ createDisplayVideo360AdvertiserLinkSettings() {
+ return createDisplayVideo360AdvertiserLinkSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings
+ deleteDisplayVideo360AdvertiserLinkSettings() {
+ return deleteDisplayVideo360AdvertiserLinkSettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings<
+ UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ updateDisplayVideo360AdvertiserLinkSettings() {
+ return updateDisplayVideo360AdvertiserLinkSettings;
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * getDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalSettings() {
+ return getDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * listDisplayVideo360AdvertiserLinkProposals.
+ */
+ public PagedCallSettings<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsSettings() {
+ return listDisplayVideo360AdvertiserLinkProposalsSettings;
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * createDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalSettings() {
+ return createDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * deleteDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings
+ deleteDisplayVideo360AdvertiserLinkProposalSettings() {
+ return deleteDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * approveDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalSettings() {
+ return approveDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * cancelDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalSettings() {
+ return cancelDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
/** Returns the object with the settings used for calls to createCustomDimension. */
public UnaryCallSettings
createCustomDimensionSettings() {
@@ -1726,6 +2044,18 @@ public UnaryCallSettings getCustomMetricSe
return getCustomMetricSettings;
}
+ /** Returns the object with the settings used for calls to getDataRetentionSettings. */
+ public UnaryCallSettings
+ getDataRetentionSettingsSettings() {
+ return getDataRetentionSettingsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateDataRetentionSettings. */
+ public UnaryCallSettings
+ updateDataRetentionSettingsSettings() {
+ return updateDataRetentionSettingsSettings;
+ }
+
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public AnalyticsAdminServiceStub createStub() throws IOException {
if (getTransportChannelProvider()
@@ -1760,7 +2090,9 @@ public static List getDefaultServiceScopes() {
/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
- return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
+ return GoogleCredentialsProvider.newBuilder()
+ .setScopesToApply(DEFAULT_SERVICE_SCOPES)
+ .setUseJwtAccessWithScope(true);
}
/** Returns a builder for the default ChannelProvider for this service. */
@@ -1841,7 +2173,6 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx
updateEnhancedMeasurementSettingsSettings =
settingsBuilder.updateEnhancedMeasurementSettingsSettings().build();
createFirebaseLinkSettings = settingsBuilder.createFirebaseLinkSettings().build();
- updateFirebaseLinkSettings = settingsBuilder.updateFirebaseLinkSettings().build();
deleteFirebaseLinkSettings = settingsBuilder.deleteFirebaseLinkSettings().build();
listFirebaseLinksSettings = settingsBuilder.listFirebaseLinksSettings().build();
getGlobalSiteTagSettings = settingsBuilder.getGlobalSiteTagSettings().build();
@@ -1868,6 +2199,28 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx
getConversionEventSettings = settingsBuilder.getConversionEventSettings().build();
deleteConversionEventSettings = settingsBuilder.deleteConversionEventSettings().build();
listConversionEventsSettings = settingsBuilder.listConversionEventsSettings().build();
+ getDisplayVideo360AdvertiserLinkSettings =
+ settingsBuilder.getDisplayVideo360AdvertiserLinkSettings().build();
+ listDisplayVideo360AdvertiserLinksSettings =
+ settingsBuilder.listDisplayVideo360AdvertiserLinksSettings().build();
+ createDisplayVideo360AdvertiserLinkSettings =
+ settingsBuilder.createDisplayVideo360AdvertiserLinkSettings().build();
+ deleteDisplayVideo360AdvertiserLinkSettings =
+ settingsBuilder.deleteDisplayVideo360AdvertiserLinkSettings().build();
+ updateDisplayVideo360AdvertiserLinkSettings =
+ settingsBuilder.updateDisplayVideo360AdvertiserLinkSettings().build();
+ getDisplayVideo360AdvertiserLinkProposalSettings =
+ settingsBuilder.getDisplayVideo360AdvertiserLinkProposalSettings().build();
+ listDisplayVideo360AdvertiserLinkProposalsSettings =
+ settingsBuilder.listDisplayVideo360AdvertiserLinkProposalsSettings().build();
+ createDisplayVideo360AdvertiserLinkProposalSettings =
+ settingsBuilder.createDisplayVideo360AdvertiserLinkProposalSettings().build();
+ deleteDisplayVideo360AdvertiserLinkProposalSettings =
+ settingsBuilder.deleteDisplayVideo360AdvertiserLinkProposalSettings().build();
+ approveDisplayVideo360AdvertiserLinkProposalSettings =
+ settingsBuilder.approveDisplayVideo360AdvertiserLinkProposalSettings().build();
+ cancelDisplayVideo360AdvertiserLinkProposalSettings =
+ settingsBuilder.cancelDisplayVideo360AdvertiserLinkProposalSettings().build();
createCustomDimensionSettings = settingsBuilder.createCustomDimensionSettings().build();
updateCustomDimensionSettings = settingsBuilder.updateCustomDimensionSettings().build();
listCustomDimensionsSettings = settingsBuilder.listCustomDimensionsSettings().build();
@@ -1878,6 +2231,9 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx
listCustomMetricsSettings = settingsBuilder.listCustomMetricsSettings().build();
archiveCustomMetricSettings = settingsBuilder.archiveCustomMetricSettings().build();
getCustomMetricSettings = settingsBuilder.getCustomMetricSettings().build();
+ getDataRetentionSettingsSettings = settingsBuilder.getDataRetentionSettingsSettings().build();
+ updateDataRetentionSettingsSettings =
+ settingsBuilder.updateDataRetentionSettingsSettings().build();
}
/** Builder for AnalyticsAdminServiceStubSettings. */
@@ -1966,8 +2322,6 @@ public static class Builder
updateEnhancedMeasurementSettingsSettings;
private final UnaryCallSettings.Builder
createFirebaseLinkSettings;
- private final UnaryCallSettings.Builder
- updateFirebaseLinkSettings;
private final UnaryCallSettings.Builder
deleteFirebaseLinkSettings;
private final PagedCallSettings.Builder<
@@ -2023,6 +2377,45 @@ public static class Builder
ListConversionEventsResponse,
ListConversionEventsPagedResponse>
listConversionEventsSettings;
+ private final UnaryCallSettings.Builder<
+ GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ getDisplayVideo360AdvertiserLinkSettings;
+ private final PagedCallSettings.Builder<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksSettings;
+ private final UnaryCallSettings.Builder<
+ CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ createDisplayVideo360AdvertiserLinkSettings;
+ private final UnaryCallSettings.Builder
+ deleteDisplayVideo360AdvertiserLinkSettings;
+ private final UnaryCallSettings.Builder<
+ UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ updateDisplayVideo360AdvertiserLinkSettings;
+ private final UnaryCallSettings.Builder<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalSettings;
+ private final PagedCallSettings.Builder<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsSettings;
+ private final UnaryCallSettings.Builder<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest,
+ DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalSettings;
+ private final UnaryCallSettings.Builder<
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest, Empty>
+ deleteDisplayVideo360AdvertiserLinkProposalSettings;
+ private final UnaryCallSettings.Builder<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalSettings;
+ private final UnaryCallSettings.Builder<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest,
+ DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalSettings;
private final UnaryCallSettings.Builder
createCustomDimensionSettings;
private final UnaryCallSettings.Builder
@@ -2047,6 +2440,11 @@ public static class Builder
archiveCustomMetricSettings;
private final UnaryCallSettings.Builder
getCustomMetricSettings;
+ private final UnaryCallSettings.Builder
+ getDataRetentionSettingsSettings;
+ private final UnaryCallSettings.Builder<
+ UpdateDataRetentionSettingsRequest, DataRetentionSettings>
+ updateDataRetentionSettingsSettings;
private static final ImmutableMap>
RETRYABLE_CODE_DEFINITIONS;
@@ -2138,7 +2536,6 @@ protected Builder(ClientContext clientContext) {
getEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
updateEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
- updateFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listFirebaseLinksSettings = PagedCallSettings.newBuilder(LIST_FIREBASE_LINKS_PAGE_STR_FACT);
getGlobalSiteTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -2163,6 +2560,25 @@ protected Builder(ClientContext clientContext) {
deleteConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listConversionEventsSettings =
PagedCallSettings.newBuilder(LIST_CONVERSION_EVENTS_PAGE_STR_FACT);
+ getDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listDisplayVideo360AdvertiserLinksSettings =
+ PagedCallSettings.newBuilder(LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_FACT);
+ createDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getDisplayVideo360AdvertiserLinkProposalSettings =
+ UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listDisplayVideo360AdvertiserLinkProposalsSettings =
+ PagedCallSettings.newBuilder(
+ LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_FACT);
+ createDisplayVideo360AdvertiserLinkProposalSettings =
+ UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteDisplayVideo360AdvertiserLinkProposalSettings =
+ UnaryCallSettings.newUnaryCallSettingsBuilder();
+ approveDisplayVideo360AdvertiserLinkProposalSettings =
+ UnaryCallSettings.newUnaryCallSettingsBuilder();
+ cancelDisplayVideo360AdvertiserLinkProposalSettings =
+ UnaryCallSettings.newUnaryCallSettingsBuilder();
createCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
updateCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listCustomDimensionsSettings =
@@ -2174,6 +2590,8 @@ protected Builder(ClientContext clientContext) {
listCustomMetricsSettings = PagedCallSettings.newBuilder(LIST_CUSTOM_METRICS_PAGE_STR_FACT);
archiveCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
getCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
@@ -2214,7 +2632,6 @@ protected Builder(ClientContext clientContext) {
getEnhancedMeasurementSettingsSettings,
updateEnhancedMeasurementSettingsSettings,
createFirebaseLinkSettings,
- updateFirebaseLinkSettings,
deleteFirebaseLinkSettings,
listFirebaseLinksSettings,
getGlobalSiteTagSettings,
@@ -2235,6 +2652,17 @@ protected Builder(ClientContext clientContext) {
getConversionEventSettings,
deleteConversionEventSettings,
listConversionEventsSettings,
+ getDisplayVideo360AdvertiserLinkSettings,
+ listDisplayVideo360AdvertiserLinksSettings,
+ createDisplayVideo360AdvertiserLinkSettings,
+ deleteDisplayVideo360AdvertiserLinkSettings,
+ updateDisplayVideo360AdvertiserLinkSettings,
+ getDisplayVideo360AdvertiserLinkProposalSettings,
+ listDisplayVideo360AdvertiserLinkProposalsSettings,
+ createDisplayVideo360AdvertiserLinkProposalSettings,
+ deleteDisplayVideo360AdvertiserLinkProposalSettings,
+ approveDisplayVideo360AdvertiserLinkProposalSettings,
+ cancelDisplayVideo360AdvertiserLinkProposalSettings,
createCustomDimensionSettings,
updateCustomDimensionSettings,
listCustomDimensionsSettings,
@@ -2244,7 +2672,9 @@ protected Builder(ClientContext clientContext) {
updateCustomMetricSettings,
listCustomMetricsSettings,
archiveCustomMetricSettings,
- getCustomMetricSettings);
+ getCustomMetricSettings,
+ getDataRetentionSettingsSettings,
+ updateDataRetentionSettingsSettings);
initDefaults(this);
}
@@ -2290,7 +2720,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) {
updateEnhancedMeasurementSettingsSettings =
settings.updateEnhancedMeasurementSettingsSettings.toBuilder();
createFirebaseLinkSettings = settings.createFirebaseLinkSettings.toBuilder();
- updateFirebaseLinkSettings = settings.updateFirebaseLinkSettings.toBuilder();
deleteFirebaseLinkSettings = settings.deleteFirebaseLinkSettings.toBuilder();
listFirebaseLinksSettings = settings.listFirebaseLinksSettings.toBuilder();
getGlobalSiteTagSettings = settings.getGlobalSiteTagSettings.toBuilder();
@@ -2317,6 +2746,28 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) {
getConversionEventSettings = settings.getConversionEventSettings.toBuilder();
deleteConversionEventSettings = settings.deleteConversionEventSettings.toBuilder();
listConversionEventsSettings = settings.listConversionEventsSettings.toBuilder();
+ getDisplayVideo360AdvertiserLinkSettings =
+ settings.getDisplayVideo360AdvertiserLinkSettings.toBuilder();
+ listDisplayVideo360AdvertiserLinksSettings =
+ settings.listDisplayVideo360AdvertiserLinksSettings.toBuilder();
+ createDisplayVideo360AdvertiserLinkSettings =
+ settings.createDisplayVideo360AdvertiserLinkSettings.toBuilder();
+ deleteDisplayVideo360AdvertiserLinkSettings =
+ settings.deleteDisplayVideo360AdvertiserLinkSettings.toBuilder();
+ updateDisplayVideo360AdvertiserLinkSettings =
+ settings.updateDisplayVideo360AdvertiserLinkSettings.toBuilder();
+ getDisplayVideo360AdvertiserLinkProposalSettings =
+ settings.getDisplayVideo360AdvertiserLinkProposalSettings.toBuilder();
+ listDisplayVideo360AdvertiserLinkProposalsSettings =
+ settings.listDisplayVideo360AdvertiserLinkProposalsSettings.toBuilder();
+ createDisplayVideo360AdvertiserLinkProposalSettings =
+ settings.createDisplayVideo360AdvertiserLinkProposalSettings.toBuilder();
+ deleteDisplayVideo360AdvertiserLinkProposalSettings =
+ settings.deleteDisplayVideo360AdvertiserLinkProposalSettings.toBuilder();
+ approveDisplayVideo360AdvertiserLinkProposalSettings =
+ settings.approveDisplayVideo360AdvertiserLinkProposalSettings.toBuilder();
+ cancelDisplayVideo360AdvertiserLinkProposalSettings =
+ settings.cancelDisplayVideo360AdvertiserLinkProposalSettings.toBuilder();
createCustomDimensionSettings = settings.createCustomDimensionSettings.toBuilder();
updateCustomDimensionSettings = settings.updateCustomDimensionSettings.toBuilder();
listCustomDimensionsSettings = settings.listCustomDimensionsSettings.toBuilder();
@@ -2327,6 +2778,9 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) {
listCustomMetricsSettings = settings.listCustomMetricsSettings.toBuilder();
archiveCustomMetricSettings = settings.archiveCustomMetricSettings.toBuilder();
getCustomMetricSettings = settings.getCustomMetricSettings.toBuilder();
+ getDataRetentionSettingsSettings = settings.getDataRetentionSettingsSettings.toBuilder();
+ updateDataRetentionSettingsSettings =
+ settings.updateDataRetentionSettingsSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
@@ -2367,7 +2821,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) {
getEnhancedMeasurementSettingsSettings,
updateEnhancedMeasurementSettingsSettings,
createFirebaseLinkSettings,
- updateFirebaseLinkSettings,
deleteFirebaseLinkSettings,
listFirebaseLinksSettings,
getGlobalSiteTagSettings,
@@ -2388,6 +2841,17 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) {
getConversionEventSettings,
deleteConversionEventSettings,
listConversionEventsSettings,
+ getDisplayVideo360AdvertiserLinkSettings,
+ listDisplayVideo360AdvertiserLinksSettings,
+ createDisplayVideo360AdvertiserLinkSettings,
+ deleteDisplayVideo360AdvertiserLinkSettings,
+ updateDisplayVideo360AdvertiserLinkSettings,
+ getDisplayVideo360AdvertiserLinkProposalSettings,
+ listDisplayVideo360AdvertiserLinkProposalsSettings,
+ createDisplayVideo360AdvertiserLinkProposalSettings,
+ deleteDisplayVideo360AdvertiserLinkProposalSettings,
+ approveDisplayVideo360AdvertiserLinkProposalSettings,
+ cancelDisplayVideo360AdvertiserLinkProposalSettings,
createCustomDimensionSettings,
updateCustomDimensionSettings,
listCustomDimensionsSettings,
@@ -2397,7 +2861,9 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) {
updateCustomMetricSettings,
listCustomMetricsSettings,
archiveCustomMetricSettings,
- getCustomMetricSettings);
+ getCustomMetricSettings,
+ getDataRetentionSettingsSettings,
+ updateDataRetentionSettingsSettings);
}
private static Builder createDefault() {
@@ -2599,11 +3065,6 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
- builder
- .updateFirebaseLinkSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
-
builder
.deleteFirebaseLinkSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
@@ -2704,6 +3165,61 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+ builder
+ .getDisplayVideo360AdvertiserLinkSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listDisplayVideo360AdvertiserLinksSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .createDisplayVideo360AdvertiserLinkSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .deleteDisplayVideo360AdvertiserLinkSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .updateDisplayVideo360AdvertiserLinkSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .getDisplayVideo360AdvertiserLinkProposalSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listDisplayVideo360AdvertiserLinkProposalsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .createDisplayVideo360AdvertiserLinkProposalSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .deleteDisplayVideo360AdvertiserLinkProposalSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .approveDisplayVideo360AdvertiserLinkProposalSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .cancelDisplayVideo360AdvertiserLinkProposalSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
builder
.createCustomDimensionSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -2754,6 +3270,16 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+ builder
+ .getDataRetentionSettingsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .updateDataRetentionSettingsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
return builder;
}
@@ -2999,12 +3525,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return createFirebaseLinkSettings;
}
- /** Returns the builder for the settings used for calls to updateFirebaseLink. */
- public UnaryCallSettings.Builder
- updateFirebaseLinkSettings() {
- return updateFirebaseLinkSettings;
- }
-
/** Returns the builder for the settings used for calls to deleteFirebaseLink. */
public UnaryCallSettings.Builder
deleteFirebaseLinkSettings() {
@@ -3138,6 +3658,114 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return listConversionEventsSettings;
}
+ /** Returns the builder for the settings used for calls to getDisplayVideo360AdvertiserLink. */
+ public UnaryCallSettings.Builder<
+ GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ getDisplayVideo360AdvertiserLinkSettings() {
+ return getDisplayVideo360AdvertiserLinkSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to listDisplayVideo360AdvertiserLinks.
+ */
+ public PagedCallSettings.Builder<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksResponse,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksSettings() {
+ return listDisplayVideo360AdvertiserLinksSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to createDisplayVideo360AdvertiserLink.
+ */
+ public UnaryCallSettings.Builder<
+ CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ createDisplayVideo360AdvertiserLinkSettings() {
+ return createDisplayVideo360AdvertiserLinkSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to deleteDisplayVideo360AdvertiserLink.
+ */
+ public UnaryCallSettings.Builder
+ deleteDisplayVideo360AdvertiserLinkSettings() {
+ return deleteDisplayVideo360AdvertiserLinkSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to updateDisplayVideo360AdvertiserLink.
+ */
+ public UnaryCallSettings.Builder<
+ UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ updateDisplayVideo360AdvertiserLinkSettings() {
+ return updateDisplayVideo360AdvertiserLinkSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * getDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalSettings() {
+ return getDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * listDisplayVideo360AdvertiserLinkProposals.
+ */
+ public PagedCallSettings.Builder<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsSettings() {
+ return listDisplayVideo360AdvertiserLinkProposalsSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * createDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest,
+ DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalSettings() {
+ return createDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * deleteDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder
+ deleteDisplayVideo360AdvertiserLinkProposalSettings() {
+ return deleteDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * approveDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalSettings() {
+ return approveDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * cancelDisplayVideo360AdvertiserLinkProposal.
+ */
+ public UnaryCallSettings.Builder<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest,
+ DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalSettings() {
+ return cancelDisplayVideo360AdvertiserLinkProposalSettings;
+ }
+
/** Returns the builder for the settings used for calls to createCustomDimension. */
public UnaryCallSettings.Builder
createCustomDimensionSettings() {
@@ -3202,6 +3830,18 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return getCustomMetricSettings;
}
+ /** Returns the builder for the settings used for calls to getDataRetentionSettings. */
+ public UnaryCallSettings.Builder
+ getDataRetentionSettingsSettings() {
+ return getDataRetentionSettingsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */
+ public UnaryCallSettings.Builder
+ updateDataRetentionSettingsSettings() {
+ return updateDataRetentionSettingsSettings;
+ }
+
@Override
public AnalyticsAdminServiceStubSettings build() throws IOException {
return new AnalyticsAdminServiceStubSettings(this);
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java
index 8446c1a0..3735db15 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java
@@ -23,6 +23,8 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse;
@@ -34,6 +36,8 @@
import com.google.analytics.admin.v1alpha.Account;
import com.google.analytics.admin.v1alpha.AndroidAppDataStream;
+import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse;
import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest;
import com.google.analytics.admin.v1alpha.AuditUserLinksRequest;
@@ -45,10 +49,13 @@
import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse;
+import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest;
import com.google.analytics.admin.v1alpha.ConversionEvent;
import com.google.analytics.admin.v1alpha.CreateConversionEventRequest;
import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest;
+import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest;
@@ -57,10 +64,13 @@
import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest;
import com.google.analytics.admin.v1alpha.CustomDimension;
import com.google.analytics.admin.v1alpha.CustomMetric;
+import com.google.analytics.admin.v1alpha.DataRetentionSettings;
import com.google.analytics.admin.v1alpha.DataSharingSettings;
import com.google.analytics.admin.v1alpha.DeleteAccountRequest;
import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest;
import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest;
+import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest;
@@ -68,6 +78,8 @@
import com.google.analytics.admin.v1alpha.DeletePropertyRequest;
import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest;
+import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink;
+import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal;
import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings;
import com.google.analytics.admin.v1alpha.FirebaseLink;
import com.google.analytics.admin.v1alpha.GetAccountRequest;
@@ -75,7 +87,10 @@
import com.google.analytics.admin.v1alpha.GetConversionEventRequest;
import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.GetCustomMetricRequest;
+import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest;
import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest;
+import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest;
+import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;
import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest;
import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest;
@@ -100,6 +115,10 @@
import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse;
import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest;
import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest;
+import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse;
import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest;
@@ -124,8 +143,9 @@
import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest;
import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest;
import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest;
+import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest;
+import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;
-import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest;
import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest;
@@ -579,17 +599,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(FirebaseLink.getDefaultInstance()))
.build();
- private static final MethodDescriptor
- updateFirebaseLinkMethodDescriptor =
- MethodDescriptor.newBuilder()
- .setType(MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(
- "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateFirebaseLink")
- .setRequestMarshaller(
- ProtoUtils.marshaller(UpdateFirebaseLinkRequest.getDefaultInstance()))
- .setResponseMarshaller(ProtoUtils.marshaller(FirebaseLink.getDefaultInstance()))
- .build();
-
private static final MethodDescriptor
deleteFirebaseLinkMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -836,6 +845,184 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub {
ProtoUtils.marshaller(ListConversionEventsResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor<
+ GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ getDisplayVideo360AdvertiserLinkMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ GetDisplayVideo360AdvertiserLinkRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse>
+ listDisplayVideo360AdvertiserLinksMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ ListDisplayVideo360AdvertiserLinksRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ createDisplayVideo360AdvertiserLinkMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ CreateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteDisplayVideo360AdvertiserLinkMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ DeleteDisplayVideo360AdvertiserLinkRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ updateDisplayVideo360AdvertiserLinkMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ UpdateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ GetDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse>
+ listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ ListDisplayVideo360AdvertiserLinkProposalsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ CreateDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ CancelDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
createCustomDimensionMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -948,6 +1135,30 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ getDataRetentionSettingsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetDataRetentionSettingsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ updateDataRetentionSettingsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateDataRetentionSettingsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance()))
+ .build();
+
private final UnaryCallable getAccountCallable;
private final UnaryCallable listAccountsCallable;
private final UnaryCallable
@@ -1019,7 +1230,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub {
private final UnaryCallable
updateEnhancedMeasurementSettingsCallable;
private final UnaryCallable createFirebaseLinkCallable;
- private final UnaryCallable updateFirebaseLinkCallable;
private final UnaryCallable deleteFirebaseLinkCallable;
private final UnaryCallable
listFirebaseLinksCallable;
@@ -1069,6 +1279,47 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub {
listConversionEventsCallable;
private final UnaryCallable
listConversionEventsPagedCallable;
+ private final UnaryCallable<
+ GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ getDisplayVideo360AdvertiserLinkCallable;
+ private final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse>
+ listDisplayVideo360AdvertiserLinksCallable;
+ private final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksPagedCallable;
+ private final UnaryCallable<
+ CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ createDisplayVideo360AdvertiserLinkCallable;
+ private final UnaryCallable
+ deleteDisplayVideo360AdvertiserLinkCallable;
+ private final UnaryCallable<
+ UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
+ updateDisplayVideo360AdvertiserLinkCallable;
+ private final UnaryCallable<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalCallable;
+ private final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse>
+ listDisplayVideo360AdvertiserLinkProposalsCallable;
+ private final UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsPagedCallable;
+ private final UnaryCallable<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalCallable;
+ private final UnaryCallable
+ deleteDisplayVideo360AdvertiserLinkProposalCallable;
+ private final UnaryCallable<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalCallable;
+ private final UnaryCallable<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalCallable;
private final UnaryCallable
createCustomDimensionCallable;
private final UnaryCallable
@@ -1088,6 +1339,10 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub {
listCustomMetricsPagedCallable;
private final UnaryCallable archiveCustomMetricCallable;
private final UnaryCallable getCustomMetricCallable;
+ private final UnaryCallable
+ getDataRetentionSettingsCallable;
+ private final UnaryCallable
+ updateDataRetentionSettingsCallable;
private final BackgroundResource backgroundResources;
private final GrpcOperationsStub operationsStub;
@@ -1505,17 +1760,6 @@ protected GrpcAnalyticsAdminServiceStub(
return params.build();
})
.build();
- GrpcCallSettings updateFirebaseLinkTransportSettings =
- GrpcCallSettings.newBuilder()
- .setMethodDescriptor(updateFirebaseLinkMethodDescriptor)
- .setParamsExtractor(
- request -> {
- ImmutableMap.Builder params = ImmutableMap.builder();
- params.put(
- "firebase_link.name", String.valueOf(request.getFirebaseLink().getName()));
- return params.build();
- })
- .build();
GrpcCallSettings deleteFirebaseLinkTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteFirebaseLinkMethodDescriptor)
@@ -1744,6 +1988,163 @@ protected GrpcAnalyticsAdminServiceStub(
return params.build();
})
.build();
+ GrpcCallSettings
+ getDisplayVideo360AdvertiserLinkTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(getDisplayVideo360AdvertiserLinkMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings<
+ ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse>
+ listDisplayVideo360AdvertiserLinksTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(listDisplayVideo360AdvertiserLinksMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ createDisplayVideo360AdvertiserLinkTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(createDisplayVideo360AdvertiserLinkMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ deleteDisplayVideo360AdvertiserLinkTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ updateDisplayVideo360AdvertiserLinkTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(updateDisplayVideo360AdvertiserLinkMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put(
+ "display_video_360_advertiser_link.name",
+ String.valueOf(request.getDisplayVideo360AdvertiserLink().getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(getDisplayVideo360AdvertiserLinkProposalMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse>
+ listDisplayVideo360AdvertiserLinkProposalsTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest,
+ DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(createDisplayVideo360AdvertiserLinkProposalMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ deleteDisplayVideo360AdvertiserLinkProposalTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest,
+ DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
GrpcCallSettings
createCustomDimensionTransportSettings =
GrpcCallSettings.newBuilder()
@@ -1852,6 +2253,30 @@ protected GrpcAnalyticsAdminServiceStub(
return params.build();
})
.build();
+ GrpcCallSettings
+ getDataRetentionSettingsTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ updateDataRetentionSettingsTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put(
+ "data_retention_settings.name",
+ String.valueOf(request.getDataRetentionSettings().getName()));
+ return params.build();
+ })
+ .build();
this.getAccountCallable =
callableFactory.createUnaryCallable(
@@ -2038,11 +2463,6 @@ protected GrpcAnalyticsAdminServiceStub(
createFirebaseLinkTransportSettings,
settings.createFirebaseLinkSettings(),
clientContext);
- this.updateFirebaseLinkCallable =
- callableFactory.createUnaryCallable(
- updateFirebaseLinkTransportSettings,
- settings.updateFirebaseLinkSettings(),
- clientContext);
this.deleteFirebaseLinkCallable =
callableFactory.createUnaryCallable(
deleteFirebaseLinkTransportSettings,
@@ -2166,6 +2586,71 @@ protected GrpcAnalyticsAdminServiceStub(
listConversionEventsTransportSettings,
settings.listConversionEventsSettings(),
clientContext);
+ this.getDisplayVideo360AdvertiserLinkCallable =
+ callableFactory.createUnaryCallable(
+ getDisplayVideo360AdvertiserLinkTransportSettings,
+ settings.getDisplayVideo360AdvertiserLinkSettings(),
+ clientContext);
+ this.listDisplayVideo360AdvertiserLinksCallable =
+ callableFactory.createUnaryCallable(
+ listDisplayVideo360AdvertiserLinksTransportSettings,
+ settings.listDisplayVideo360AdvertiserLinksSettings(),
+ clientContext);
+ this.listDisplayVideo360AdvertiserLinksPagedCallable =
+ callableFactory.createPagedCallable(
+ listDisplayVideo360AdvertiserLinksTransportSettings,
+ settings.listDisplayVideo360AdvertiserLinksSettings(),
+ clientContext);
+ this.createDisplayVideo360AdvertiserLinkCallable =
+ callableFactory.createUnaryCallable(
+ createDisplayVideo360AdvertiserLinkTransportSettings,
+ settings.createDisplayVideo360AdvertiserLinkSettings(),
+ clientContext);
+ this.deleteDisplayVideo360AdvertiserLinkCallable =
+ callableFactory.createUnaryCallable(
+ deleteDisplayVideo360AdvertiserLinkTransportSettings,
+ settings.deleteDisplayVideo360AdvertiserLinkSettings(),
+ clientContext);
+ this.updateDisplayVideo360AdvertiserLinkCallable =
+ callableFactory.createUnaryCallable(
+ updateDisplayVideo360AdvertiserLinkTransportSettings,
+ settings.updateDisplayVideo360AdvertiserLinkSettings(),
+ clientContext);
+ this.getDisplayVideo360AdvertiserLinkProposalCallable =
+ callableFactory.createUnaryCallable(
+ getDisplayVideo360AdvertiserLinkProposalTransportSettings,
+ settings.getDisplayVideo360AdvertiserLinkProposalSettings(),
+ clientContext);
+ this.listDisplayVideo360AdvertiserLinkProposalsCallable =
+ callableFactory.createUnaryCallable(
+ listDisplayVideo360AdvertiserLinkProposalsTransportSettings,
+ settings.listDisplayVideo360AdvertiserLinkProposalsSettings(),
+ clientContext);
+ this.listDisplayVideo360AdvertiserLinkProposalsPagedCallable =
+ callableFactory.createPagedCallable(
+ listDisplayVideo360AdvertiserLinkProposalsTransportSettings,
+ settings.listDisplayVideo360AdvertiserLinkProposalsSettings(),
+ clientContext);
+ this.createDisplayVideo360AdvertiserLinkProposalCallable =
+ callableFactory.createUnaryCallable(
+ createDisplayVideo360AdvertiserLinkProposalTransportSettings,
+ settings.createDisplayVideo360AdvertiserLinkProposalSettings(),
+ clientContext);
+ this.deleteDisplayVideo360AdvertiserLinkProposalCallable =
+ callableFactory.createUnaryCallable(
+ deleteDisplayVideo360AdvertiserLinkProposalTransportSettings,
+ settings.deleteDisplayVideo360AdvertiserLinkProposalSettings(),
+ clientContext);
+ this.approveDisplayVideo360AdvertiserLinkProposalCallable =
+ callableFactory.createUnaryCallable(
+ approveDisplayVideo360AdvertiserLinkProposalTransportSettings,
+ settings.approveDisplayVideo360AdvertiserLinkProposalSettings(),
+ clientContext);
+ this.cancelDisplayVideo360AdvertiserLinkProposalCallable =
+ callableFactory.createUnaryCallable(
+ cancelDisplayVideo360AdvertiserLinkProposalTransportSettings,
+ settings.cancelDisplayVideo360AdvertiserLinkProposalSettings(),
+ clientContext);
this.createCustomDimensionCallable =
callableFactory.createUnaryCallable(
createCustomDimensionTransportSettings,
@@ -2224,6 +2709,16 @@ protected GrpcAnalyticsAdminServiceStub(
this.getCustomMetricCallable =
callableFactory.createUnaryCallable(
getCustomMetricTransportSettings, settings.getCustomMetricSettings(), clientContext);
+ this.getDataRetentionSettingsCallable =
+ callableFactory.createUnaryCallable(
+ getDataRetentionSettingsTransportSettings,
+ settings.getDataRetentionSettingsSettings(),
+ clientContext);
+ this.updateDataRetentionSettingsCallable =
+ callableFactory.createUnaryCallable(
+ updateDataRetentionSettingsTransportSettings,
+ settings.updateDataRetentionSettingsSettings(),
+ clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -2479,11 +2974,6 @@ public UnaryCallable createFirebaseLink
return createFirebaseLinkCallable;
}
- @Override
- public UnaryCallable updateFirebaseLinkCallable() {
- return updateFirebaseLinkCallable;
- }
-
@Override
public UnaryCallable deleteFirebaseLinkCallable() {
return deleteFirebaseLinkCallable;
@@ -2629,6 +3119,96 @@ public UnaryCallable deleteConversionEventC
return listConversionEventsPagedCallable;
}
+ @Override
+ public UnaryCallable
+ getDisplayVideo360AdvertiserLinkCallable() {
+ return getDisplayVideo360AdvertiserLinkCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse>
+ listDisplayVideo360AdvertiserLinksCallable() {
+ return listDisplayVideo360AdvertiserLinksCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListDisplayVideo360AdvertiserLinksRequest,
+ ListDisplayVideo360AdvertiserLinksPagedResponse>
+ listDisplayVideo360AdvertiserLinksPagedCallable() {
+ return listDisplayVideo360AdvertiserLinksPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ createDisplayVideo360AdvertiserLinkCallable() {
+ return createDisplayVideo360AdvertiserLinkCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ deleteDisplayVideo360AdvertiserLinkCallable() {
+ return deleteDisplayVideo360AdvertiserLinkCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ updateDisplayVideo360AdvertiserLinkCallable() {
+ return updateDisplayVideo360AdvertiserLinkCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ getDisplayVideo360AdvertiserLinkProposalCallable() {
+ return getDisplayVideo360AdvertiserLinkProposalCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsResponse>
+ listDisplayVideo360AdvertiserLinkProposalsCallable() {
+ return listDisplayVideo360AdvertiserLinkProposalsCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListDisplayVideo360AdvertiserLinkProposalsRequest,
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
+ listDisplayVideo360AdvertiserLinkProposalsPagedCallable() {
+ return listDisplayVideo360AdvertiserLinkProposalsPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ createDisplayVideo360AdvertiserLinkProposalCallable() {
+ return createDisplayVideo360AdvertiserLinkProposalCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ deleteDisplayVideo360AdvertiserLinkProposalCallable() {
+ return deleteDisplayVideo360AdvertiserLinkProposalCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest,
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse>
+ approveDisplayVideo360AdvertiserLinkProposalCallable() {
+ return approveDisplayVideo360AdvertiserLinkProposalCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
+ cancelDisplayVideo360AdvertiserLinkProposalCallable() {
+ return cancelDisplayVideo360AdvertiserLinkProposalCallable;
+ }
+
@Override
public UnaryCallable
createCustomDimensionCallable() {
@@ -2695,6 +3275,18 @@ public UnaryCallable getCustomMetricCallab
return getCustomMetricCallable;
}
+ @Override
+ public UnaryCallable
+ getDataRetentionSettingsCallable() {
+ return getDataRetentionSettingsCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ updateDataRetentionSettingsCallable() {
+ return updateDataRetentionSettingsCallable;
+ }
+
@Override
public final void close() {
try {
diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java
index b5de84fb..7ca67d83 100644
--- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java
+++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java
@@ -23,6 +23,8 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse;
@@ -468,6 +470,7 @@ public void getPropertyTest() throws Exception {
.setIndustryCategory(IndustryCategory.forNumber(0))
.setTimeZone("timeZone-2077180903")
.setCurrencyCode("currencyCode1004773790")
+ .setServiceLevel(ServiceLevel.forNumber(0))
.setDeleteTime(Timestamp.newBuilder().build())
.setExpireTime(Timestamp.newBuilder().build())
.build();
@@ -515,6 +518,7 @@ public void getPropertyTest2() throws Exception {
.setIndustryCategory(IndustryCategory.forNumber(0))
.setTimeZone("timeZone-2077180903")
.setCurrencyCode("currencyCode1004773790")
+ .setServiceLevel(ServiceLevel.forNumber(0))
.setDeleteTime(Timestamp.newBuilder().build())
.setExpireTime(Timestamp.newBuilder().build())
.build();
@@ -621,6 +625,7 @@ public void createPropertyTest() throws Exception {
.setIndustryCategory(IndustryCategory.forNumber(0))
.setTimeZone("timeZone-2077180903")
.setCurrencyCode("currencyCode1004773790")
+ .setServiceLevel(ServiceLevel.forNumber(0))
.setDeleteTime(Timestamp.newBuilder().build())
.setExpireTime(Timestamp.newBuilder().build())
.build();
@@ -668,6 +673,7 @@ public void deletePropertyTest() throws Exception {
.setIndustryCategory(IndustryCategory.forNumber(0))
.setTimeZone("timeZone-2077180903")
.setCurrencyCode("currencyCode1004773790")
+ .setServiceLevel(ServiceLevel.forNumber(0))
.setDeleteTime(Timestamp.newBuilder().build())
.setExpireTime(Timestamp.newBuilder().build())
.build();
@@ -715,6 +721,7 @@ public void deletePropertyTest2() throws Exception {
.setIndustryCategory(IndustryCategory.forNumber(0))
.setTimeZone("timeZone-2077180903")
.setCurrencyCode("currencyCode1004773790")
+ .setServiceLevel(ServiceLevel.forNumber(0))
.setDeleteTime(Timestamp.newBuilder().build())
.setExpireTime(Timestamp.newBuilder().build())
.build();
@@ -762,6 +769,7 @@ public void updatePropertyTest() throws Exception {
.setIndustryCategory(IndustryCategory.forNumber(0))
.setTimeZone("timeZone-2077180903")
.setCurrencyCode("currencyCode1004773790")
+ .setServiceLevel(ServiceLevel.forNumber(0))
.setDeleteTime(Timestamp.newBuilder().build())
.setExpireTime(Timestamp.newBuilder().build())
.build();
@@ -2645,7 +2653,6 @@ public void createFirebaseLinkTest() throws Exception {
.setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
.setProject("project-309310695")
.setCreateTime(Timestamp.newBuilder().build())
- .setMaximumUserAccess(MaximumUserAccess.forNumber(0))
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
@@ -2689,7 +2696,6 @@ public void createFirebaseLinkTest2() throws Exception {
.setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
.setProject("project-309310695")
.setCreateTime(Timestamp.newBuilder().build())
- .setMaximumUserAccess(MaximumUserAccess.forNumber(0))
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
@@ -2726,50 +2732,6 @@ public void createFirebaseLinkExceptionTest2() throws Exception {
}
}
- @Test
- public void updateFirebaseLinkTest() throws Exception {
- FirebaseLink expectedResponse =
- FirebaseLink.newBuilder()
- .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
- .setProject("project-309310695")
- .setCreateTime(Timestamp.newBuilder().build())
- .setMaximumUserAccess(MaximumUserAccess.forNumber(0))
- .build();
- mockAnalyticsAdminService.addResponse(expectedResponse);
-
- FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
- FieldMask updateMask = FieldMask.newBuilder().build();
-
- FirebaseLink actualResponse = client.updateFirebaseLink(firebaseLink, updateMask);
- Assert.assertEquals(expectedResponse, actualResponse);
-
- List actualRequests = mockAnalyticsAdminService.getRequests();
- Assert.assertEquals(1, actualRequests.size());
- UpdateFirebaseLinkRequest actualRequest = ((UpdateFirebaseLinkRequest) actualRequests.get(0));
-
- Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink());
- Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
- Assert.assertTrue(
- channelProvider.isHeaderSent(
- ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
- GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
- }
-
- @Test
- public void updateFirebaseLinkExceptionTest() throws Exception {
- StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
- mockAnalyticsAdminService.addException(exception);
-
- try {
- FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
- FieldMask updateMask = FieldMask.newBuilder().build();
- client.updateFirebaseLink(firebaseLink, updateMask);
- Assert.fail("No exception raised");
- } catch (InvalidArgumentException e) {
- // Expected exception.
- }
- }
-
@Test
public void deleteFirebaseLinkTest() throws Exception {
Empty expectedResponse = Empty.newBuilder().build();
@@ -3012,9 +2974,9 @@ public void createGoogleAdsLinkTest() throws Exception {
.setCustomerId("customerId-1581184615")
.setCanManageClients(true)
.setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
- .setEmailAddress("emailAddress-1070931784")
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setCreatorEmailAddress("creatorEmailAddress67752708")
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
@@ -3059,9 +3021,9 @@ public void createGoogleAdsLinkTest2() throws Exception {
.setCustomerId("customerId-1581184615")
.setCanManageClients(true)
.setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
- .setEmailAddress("emailAddress-1070931784")
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setCreatorEmailAddress("creatorEmailAddress67752708")
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
@@ -3106,9 +3068,9 @@ public void updateGoogleAdsLinkTest() throws Exception {
.setCustomerId("customerId-1581184615")
.setCanManageClients(true)
.setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
- .setEmailAddress("emailAddress-1070931784")
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
+ .setCreatorEmailAddress("creatorEmailAddress67752708")
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
@@ -4009,7 +3971,8 @@ public void createConversionEventTest() throws Exception {
.setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
.setEventName("eventName31228997")
.setCreateTime(Timestamp.newBuilder().build())
- .setIsDeletable(true)
+ .setDeletable(true)
+ .setCustom(true)
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
@@ -4054,7 +4017,8 @@ public void createConversionEventTest2() throws Exception {
.setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
.setEventName("eventName31228997")
.setCreateTime(Timestamp.newBuilder().build())
- .setIsDeletable(true)
+ .setDeletable(true)
+ .setCustom(true)
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
@@ -4099,7 +4063,8 @@ public void getConversionEventTest() throws Exception {
.setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
.setEventName("eventName31228997")
.setCreateTime(Timestamp.newBuilder().build())
- .setIsDeletable(true)
+ .setDeletable(true)
+ .setCustom(true)
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
@@ -4140,7 +4105,8 @@ public void getConversionEventTest2() throws Exception {
.setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
.setEventName("eventName31228997")
.setCreateTime(Timestamp.newBuilder().build())
- .setIsDeletable(true)
+ .setDeletable(true)
+ .setCustom(true)
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
@@ -4335,30 +4301,33 @@ public void listConversionEventsExceptionTest2() throws Exception {
}
@Test
- public void createCustomDimensionTest() throws Exception {
- CustomDimension expectedResponse =
- CustomDimension.newBuilder()
- .setName(CustomDimensionName.of("[PROPERTY]").toString())
- .setParameterName("parameterName-379607596")
- .setDisplayName("displayName1714148973")
- .setDescription("description-1724546052")
- .setDisallowAdsPersonalization(true)
+ public void getDisplayVideo360AdvertiserLinkTest() throws Exception {
+ DisplayVideo360AdvertiserLink expectedResponse =
+ DisplayVideo360AdvertiserLink.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- PropertyName parent = PropertyName.of("[PROPERTY]");
- CustomDimension customDimension = CustomDimension.newBuilder().build();
+ DisplayVideo360AdvertiserLinkName name =
+ DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
- CustomDimension actualResponse = client.createCustomDimension(parent, customDimension);
+ DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name);
Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- CreateCustomDimensionRequest actualRequest =
- ((CreateCustomDimensionRequest) actualRequests.get(0));
+ GetDisplayVideo360AdvertiserLinkRequest actualRequest =
+ ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0));
- Assert.assertEquals(parent.toString(), actualRequest.getParent());
- Assert.assertEquals(customDimension, actualRequest.getCustomDimension());
+ Assert.assertEquals(name.toString(), actualRequest.getName());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4366,14 +4335,14 @@ public void createCustomDimensionTest() throws Exception {
}
@Test
- public void createCustomDimensionExceptionTest() throws Exception {
+ public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- PropertyName parent = PropertyName.of("[PROPERTY]");
- CustomDimension customDimension = CustomDimension.newBuilder().build();
- client.createCustomDimension(parent, customDimension);
+ DisplayVideo360AdvertiserLinkName name =
+ DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
+ client.getDisplayVideo360AdvertiserLink(name);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -4381,30 +4350,32 @@ public void createCustomDimensionExceptionTest() throws Exception {
}
@Test
- public void createCustomDimensionTest2() throws Exception {
- CustomDimension expectedResponse =
- CustomDimension.newBuilder()
- .setName(CustomDimensionName.of("[PROPERTY]").toString())
- .setParameterName("parameterName-379607596")
- .setDisplayName("displayName1714148973")
- .setDescription("description-1724546052")
- .setDisallowAdsPersonalization(true)
+ public void getDisplayVideo360AdvertiserLinkTest2() throws Exception {
+ DisplayVideo360AdvertiserLink expectedResponse =
+ DisplayVideo360AdvertiserLink.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- String parent = "parent-995424086";
- CustomDimension customDimension = CustomDimension.newBuilder().build();
+ String name = "name3373707";
- CustomDimension actualResponse = client.createCustomDimension(parent, customDimension);
+ DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name);
Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- CreateCustomDimensionRequest actualRequest =
- ((CreateCustomDimensionRequest) actualRequests.get(0));
+ GetDisplayVideo360AdvertiserLinkRequest actualRequest =
+ ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0));
- Assert.assertEquals(parent, actualRequest.getParent());
- Assert.assertEquals(customDimension, actualRequest.getCustomDimension());
+ Assert.assertEquals(name, actualRequest.getName());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4412,14 +4383,13 @@ public void createCustomDimensionTest2() throws Exception {
}
@Test
- public void createCustomDimensionExceptionTest2() throws Exception {
+ public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- String parent = "parent-995424086";
- CustomDimension customDimension = CustomDimension.newBuilder().build();
- client.createCustomDimension(parent, customDimension);
+ String name = "name3373707";
+ client.getDisplayVideo360AdvertiserLink(name);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -4427,30 +4397,34 @@ public void createCustomDimensionExceptionTest2() throws Exception {
}
@Test
- public void updateCustomDimensionTest() throws Exception {
- CustomDimension expectedResponse =
- CustomDimension.newBuilder()
- .setName(CustomDimensionName.of("[PROPERTY]").toString())
- .setParameterName("parameterName-379607596")
- .setDisplayName("displayName1714148973")
- .setDescription("description-1724546052")
- .setDisallowAdsPersonalization(true)
+ public void listDisplayVideo360AdvertiserLinksTest() throws Exception {
+ DisplayVideo360AdvertiserLink responsesElement =
+ DisplayVideo360AdvertiserLink.newBuilder().build();
+ ListDisplayVideo360AdvertiserLinksResponse expectedResponse =
+ ListDisplayVideo360AdvertiserLinksResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement))
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- CustomDimension customDimension = CustomDimension.newBuilder().build();
- FieldMask updateMask = FieldMask.newBuilder().build();
+ PropertyName parent = PropertyName.of("[PROPERTY]");
- CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask);
- Assert.assertEquals(expectedResponse, actualResponse);
+ ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse =
+ client.listDisplayVideo360AdvertiserLinks(parent);
+
+ List resources =
+ Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(
+ expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0));
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- UpdateCustomDimensionRequest actualRequest =
- ((UpdateCustomDimensionRequest) actualRequests.get(0));
+ ListDisplayVideo360AdvertiserLinksRequest actualRequest =
+ ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0));
- Assert.assertEquals(customDimension, actualRequest.getCustomDimension());
- Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4458,14 +4432,13 @@ public void updateCustomDimensionTest() throws Exception {
}
@Test
- public void updateCustomDimensionExceptionTest() throws Exception {
+ public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- CustomDimension customDimension = CustomDimension.newBuilder().build();
- FieldMask updateMask = FieldMask.newBuilder().build();
- client.updateCustomDimension(customDimension, updateMask);
+ PropertyName parent = PropertyName.of("[PROPERTY]");
+ client.listDisplayVideo360AdvertiserLinks(parent);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -4473,30 +4446,34 @@ public void updateCustomDimensionExceptionTest() throws Exception {
}
@Test
- public void listCustomDimensionsTest() throws Exception {
- CustomDimension responsesElement = CustomDimension.newBuilder().build();
- ListCustomDimensionsResponse expectedResponse =
- ListCustomDimensionsResponse.newBuilder()
+ public void listDisplayVideo360AdvertiserLinksTest2() throws Exception {
+ DisplayVideo360AdvertiserLink responsesElement =
+ DisplayVideo360AdvertiserLink.newBuilder().build();
+ ListDisplayVideo360AdvertiserLinksResponse expectedResponse =
+ ListDisplayVideo360AdvertiserLinksResponse.newBuilder()
.setNextPageToken("")
- .addAllCustomDimensions(Arrays.asList(responsesElement))
+ .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement))
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- PropertyName parent = PropertyName.of("[PROPERTY]");
+ String parent = "parent-995424086";
- ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent);
+ ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse =
+ client.listDisplayVideo360AdvertiserLinks(parent);
- List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+ List resources =
+ Lists.newArrayList(pagedListResponse.iterateAll());
Assert.assertEquals(1, resources.size());
- Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0));
+ Assert.assertEquals(
+ expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0));
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- ListCustomDimensionsRequest actualRequest =
- ((ListCustomDimensionsRequest) actualRequests.get(0));
+ ListDisplayVideo360AdvertiserLinksRequest actualRequest =
+ ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0));
- Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertEquals(parent, actualRequest.getParent());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4504,13 +4481,13 @@ public void listCustomDimensionsTest() throws Exception {
}
@Test
- public void listCustomDimensionsExceptionTest() throws Exception {
+ public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- PropertyName parent = PropertyName.of("[PROPERTY]");
- client.listCustomDimensions(parent);
+ String parent = "parent-995424086";
+ client.listDisplayVideo360AdvertiserLinks(parent);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -4518,30 +4495,37 @@ public void listCustomDimensionsExceptionTest() throws Exception {
}
@Test
- public void listCustomDimensionsTest2() throws Exception {
- CustomDimension responsesElement = CustomDimension.newBuilder().build();
- ListCustomDimensionsResponse expectedResponse =
- ListCustomDimensionsResponse.newBuilder()
- .setNextPageToken("")
- .addAllCustomDimensions(Arrays.asList(responsesElement))
+ public void createDisplayVideo360AdvertiserLinkTest() throws Exception {
+ DisplayVideo360AdvertiserLink expectedResponse =
+ DisplayVideo360AdvertiserLink.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- String parent = "parent-995424086";
-
- ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent);
-
- List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+ PropertyName parent = PropertyName.of("[PROPERTY]");
+ DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+ DisplayVideo360AdvertiserLink.newBuilder().build();
- Assert.assertEquals(1, resources.size());
- Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0));
+ DisplayVideo360AdvertiserLink actualResponse =
+ client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink);
+ Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- ListCustomDimensionsRequest actualRequest =
- ((ListCustomDimensionsRequest) actualRequests.get(0));
+ CreateDisplayVideo360AdvertiserLinkRequest actualRequest =
+ ((CreateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0));
- Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertEquals(
+ displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4549,13 +4533,15 @@ public void listCustomDimensionsTest2() throws Exception {
}
@Test
- public void listCustomDimensionsExceptionTest2() throws Exception {
+ public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- String parent = "parent-995424086";
- client.listCustomDimensions(parent);
+ PropertyName parent = PropertyName.of("[PROPERTY]");
+ DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+ DisplayVideo360AdvertiserLink.newBuilder().build();
+ client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -4563,20 +4549,37 @@ public void listCustomDimensionsExceptionTest2() throws Exception {
}
@Test
- public void archiveCustomDimensionTest() throws Exception {
- Empty expectedResponse = Empty.newBuilder().build();
+ public void createDisplayVideo360AdvertiserLinkTest2() throws Exception {
+ DisplayVideo360AdvertiserLink expectedResponse =
+ DisplayVideo360AdvertiserLink.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
+ .build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- CustomDimensionName name = CustomDimensionName.of("[PROPERTY]");
+ String parent = "parent-995424086";
+ DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+ DisplayVideo360AdvertiserLink.newBuilder().build();
- client.archiveCustomDimension(name);
+ DisplayVideo360AdvertiserLink actualResponse =
+ client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink);
+ Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- ArchiveCustomDimensionRequest actualRequest =
- ((ArchiveCustomDimensionRequest) actualRequests.get(0));
+ CreateDisplayVideo360AdvertiserLinkRequest actualRequest =
+ ((CreateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0));
- Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertEquals(
+ displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4584,13 +4587,15 @@ public void archiveCustomDimensionTest() throws Exception {
}
@Test
- public void archiveCustomDimensionExceptionTest() throws Exception {
+ public void createDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- CustomDimensionName name = CustomDimensionName.of("[PROPERTY]");
- client.archiveCustomDimension(name);
+ String parent = "parent-995424086";
+ DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+ DisplayVideo360AdvertiserLink.newBuilder().build();
+ client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -4598,20 +4603,21 @@ public void archiveCustomDimensionExceptionTest() throws Exception {
}
@Test
- public void archiveCustomDimensionTest2() throws Exception {
+ public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception {
Empty expectedResponse = Empty.newBuilder().build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- String name = "name3373707";
+ DisplayVideo360AdvertiserLinkName name =
+ DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
- client.archiveCustomDimension(name);
+ client.deleteDisplayVideo360AdvertiserLink(name);
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- ArchiveCustomDimensionRequest actualRequest =
- ((ArchiveCustomDimensionRequest) actualRequests.get(0));
+ DeleteDisplayVideo360AdvertiserLinkRequest actualRequest =
+ ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0));
- Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertEquals(name.toString(), actualRequest.getName());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4619,13 +4625,14 @@ public void archiveCustomDimensionTest2() throws Exception {
}
@Test
- public void archiveCustomDimensionExceptionTest2() throws Exception {
+ public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- String name = "name3373707";
- client.archiveCustomDimension(name);
+ DisplayVideo360AdvertiserLinkName name =
+ DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
+ client.deleteDisplayVideo360AdvertiserLink(name);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -4633,27 +4640,20 @@ public void archiveCustomDimensionExceptionTest2() throws Exception {
}
@Test
- public void getCustomDimensionTest() throws Exception {
- CustomDimension expectedResponse =
- CustomDimension.newBuilder()
- .setName(CustomDimensionName.of("[PROPERTY]").toString())
- .setParameterName("parameterName-379607596")
- .setDisplayName("displayName1714148973")
- .setDescription("description-1724546052")
- .setDisallowAdsPersonalization(true)
- .build();
+ public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception {
+ Empty expectedResponse = Empty.newBuilder().build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- CustomDimensionName name = CustomDimensionName.of("[PROPERTY]");
+ String name = "name3373707";
- CustomDimension actualResponse = client.getCustomDimension(name);
- Assert.assertEquals(expectedResponse, actualResponse);
+ client.deleteDisplayVideo360AdvertiserLink(name);
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0));
+ DeleteDisplayVideo360AdvertiserLinkRequest actualRequest =
+ ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0));
- Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertEquals(name, actualRequest.getName());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4661,13 +4661,13 @@ public void getCustomDimensionTest() throws Exception {
}
@Test
- public void getCustomDimensionExceptionTest() throws Exception {
+ public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- CustomDimensionName name = CustomDimensionName.of("[PROPERTY]");
- client.getCustomDimension(name);
+ String name = "name3373707";
+ client.deleteDisplayVideo360AdvertiserLink(name);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -4675,27 +4675,37 @@ public void getCustomDimensionExceptionTest() throws Exception {
}
@Test
- public void getCustomDimensionTest2() throws Exception {
- CustomDimension expectedResponse =
- CustomDimension.newBuilder()
- .setName(CustomDimensionName.of("[PROPERTY]").toString())
- .setParameterName("parameterName-379607596")
- .setDisplayName("displayName1714148973")
- .setDescription("description-1724546052")
- .setDisallowAdsPersonalization(true)
+ public void updateDisplayVideo360AdvertiserLinkTest() throws Exception {
+ DisplayVideo360AdvertiserLink expectedResponse =
+ DisplayVideo360AdvertiserLink.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- String name = "name3373707";
+ DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+ DisplayVideo360AdvertiserLink.newBuilder().build();
+ FieldMask updateMask = FieldMask.newBuilder().build();
- CustomDimension actualResponse = client.getCustomDimension(name);
+ DisplayVideo360AdvertiserLink actualResponse =
+ client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask);
Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0));
+ UpdateDisplayVideo360AdvertiserLinkRequest actualRequest =
+ ((UpdateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0));
- Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertEquals(
+ displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink());
+ Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4703,13 +4713,15 @@ public void getCustomDimensionTest2() throws Exception {
}
@Test
- public void getCustomDimensionExceptionTest2() throws Exception {
+ public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- String name = "name3373707";
- client.getCustomDimension(name);
+ DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+ DisplayVideo360AdvertiserLink.newBuilder().build();
+ FieldMask updateMask = FieldMask.newBuilder().build();
+ client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
@@ -4717,28 +4729,37 @@ public void getCustomDimensionExceptionTest2() throws Exception {
}
@Test
- public void createCustomMetricTest() throws Exception {
- CustomMetric expectedResponse =
- CustomMetric.newBuilder()
- .setName(CustomMetricName.of("[PROPERTY]").toString())
- .setParameterName("parameterName-379607596")
- .setDisplayName("displayName1714148973")
- .setDescription("description-1724546052")
+ public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception {
+ DisplayVideo360AdvertiserLinkProposal expectedResponse =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build())
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setValidationEmail("validationEmail-94407005")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
.build();
mockAnalyticsAdminService.addResponse(expectedResponse);
- PropertyName parent = PropertyName.of("[PROPERTY]");
- CustomMetric customMetric = CustomMetric.newBuilder().build();
+ DisplayVideo360AdvertiserLinkProposalName name =
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
- CustomMetric actualResponse = client.createCustomMetric(parent, customMetric);
+ DisplayVideo360AdvertiserLinkProposal actualResponse =
+ client.getDisplayVideo360AdvertiserLinkProposal(name);
Assert.assertEquals(expectedResponse, actualResponse);
List actualRequests = mockAnalyticsAdminService.getRequests();
Assert.assertEquals(1, actualRequests.size());
- CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0));
+ GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest =
+ ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0));
- Assert.assertEquals(parent.toString(), actualRequest.getParent());
- Assert.assertEquals(customMetric, actualRequest.getCustomMetric());
+ Assert.assertEquals(name.toString(), actualRequest.getName());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -4746,14 +4767,895 @@ public void createCustomMetricTest() throws Exception {
}
@Test
- public void createCustomMetricExceptionTest() throws Exception {
+ public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockAnalyticsAdminService.addException(exception);
try {
- PropertyName parent = PropertyName.of("[PROPERTY]");
- CustomMetric customMetric = CustomMetric.newBuilder().build();
- client.createCustomMetric(parent, customMetric);
+ DisplayVideo360AdvertiserLinkProposalName name =
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
+ client.getDisplayVideo360AdvertiserLinkProposal(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception {
+ DisplayVideo360AdvertiserLinkProposal expectedResponse =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build())
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setValidationEmail("validationEmail-94407005")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ String name = "name3373707";
+
+ DisplayVideo360AdvertiserLinkProposal actualResponse =
+ client.getDisplayVideo360AdvertiserLinkProposal(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest =
+ ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.getDisplayVideo360AdvertiserLinkProposal(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception {
+ DisplayVideo360AdvertiserLinkProposal responsesElement =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+ ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse =
+ ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement))
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ PropertyName parent = PropertyName.of("[PROPERTY]");
+
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse =
+ client.listDisplayVideo360AdvertiserLinkProposals(parent);
+
+ List resources =
+ Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(
+ expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0));
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest =
+ ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ PropertyName parent = PropertyName.of("[PROPERTY]");
+ client.listDisplayVideo360AdvertiserLinkProposals(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception {
+ DisplayVideo360AdvertiserLinkProposal responsesElement =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+ ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse =
+ ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement))
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ String parent = "parent-995424086";
+
+ ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse =
+ client.listDisplayVideo360AdvertiserLinkProposals(parent);
+
+ List resources =
+ Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(
+ expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0));
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest =
+ ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ client.listDisplayVideo360AdvertiserLinkProposals(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception {
+ DisplayVideo360AdvertiserLinkProposal expectedResponse =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build())
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setValidationEmail("validationEmail-94407005")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ PropertyName parent = PropertyName.of("[PROPERTY]");
+ DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+
+ DisplayVideo360AdvertiserLinkProposal actualResponse =
+ client.createDisplayVideo360AdvertiserLinkProposal(
+ parent, displayVideo360AdvertiserLinkProposal);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest =
+ ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertEquals(
+ displayVideo360AdvertiserLinkProposal,
+ actualRequest.getDisplayVideo360AdvertiserLinkProposal());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ PropertyName parent = PropertyName.of("[PROPERTY]");
+ DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+ client.createDisplayVideo360AdvertiserLinkProposal(
+ parent, displayVideo360AdvertiserLinkProposal);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception {
+ DisplayVideo360AdvertiserLinkProposal expectedResponse =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build())
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setValidationEmail("validationEmail-94407005")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ String parent = "parent-995424086";
+ DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+
+ DisplayVideo360AdvertiserLinkProposal actualResponse =
+ client.createDisplayVideo360AdvertiserLinkProposal(
+ parent, displayVideo360AdvertiserLinkProposal);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest =
+ ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertEquals(
+ displayVideo360AdvertiserLinkProposal,
+ actualRequest.getDisplayVideo360AdvertiserLinkProposal());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+ client.createDisplayVideo360AdvertiserLinkProposal(
+ parent, displayVideo360AdvertiserLinkProposal);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception {
+ Empty expectedResponse = Empty.newBuilder().build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ DisplayVideo360AdvertiserLinkProposalName name =
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
+
+ client.deleteDisplayVideo360AdvertiserLinkProposal(name);
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest =
+ ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ DisplayVideo360AdvertiserLinkProposalName name =
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
+ client.deleteDisplayVideo360AdvertiserLinkProposal(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception {
+ Empty expectedResponse = Empty.newBuilder().build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ String name = "name3373707";
+
+ client.deleteDisplayVideo360AdvertiserLinkProposal(name);
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest =
+ ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.deleteDisplayVideo360AdvertiserLinkProposal(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception {
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse expectedResponse =
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder()
+ .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ .toString())
+ .build();
+
+ ApproveDisplayVideo360AdvertiserLinkProposalResponse actualResponse =
+ client.approveDisplayVideo360AdvertiserLinkProposal(request);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest actualRequest =
+ ((ApproveDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0));
+
+ Assert.assertEquals(request.getName(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
+ ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ .toString())
+ .build();
+ client.approveDisplayVideo360AdvertiserLinkProposal(request);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception {
+ DisplayVideo360AdvertiserLinkProposal expectedResponse =
+ DisplayVideo360AdvertiserLinkProposal.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ .toString())
+ .setAdvertiserId("advertiserId550061990")
+ .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build())
+ .setAdvertiserDisplayName("advertiserDisplayName1594116162")
+ .setValidationEmail("validationEmail-94407005")
+ .setAdsPersonalizationEnabled(BoolValue.newBuilder().build())
+ .setCampaignDataSharingEnabled(BoolValue.newBuilder().build())
+ .setCostDataSharingEnabled(BoolValue.newBuilder().build())
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ CancelDisplayVideo360AdvertiserLinkProposalRequest request =
+ CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ .toString())
+ .build();
+
+ DisplayVideo360AdvertiserLinkProposal actualResponse =
+ client.cancelDisplayVideo360AdvertiserLinkProposal(request);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CancelDisplayVideo360AdvertiserLinkProposalRequest actualRequest =
+ ((CancelDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0));
+
+ Assert.assertEquals(request.getName(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ CancelDisplayVideo360AdvertiserLinkProposalRequest request =
+ CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+ .setName(
+ DisplayVideo360AdvertiserLinkProposalName.of(
+ "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+ .toString())
+ .build();
+ client.cancelDisplayVideo360AdvertiserLinkProposal(request);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void createCustomDimensionTest() throws Exception {
+ CustomDimension expectedResponse =
+ CustomDimension.newBuilder()
+ .setName(CustomDimensionName.of("[PROPERTY]").toString())
+ .setParameterName("parameterName-379607596")
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setDisallowAdsPersonalization(true)
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ PropertyName parent = PropertyName.of("[PROPERTY]");
+ CustomDimension customDimension = CustomDimension.newBuilder().build();
+
+ CustomDimension actualResponse = client.createCustomDimension(parent, customDimension);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateCustomDimensionRequest actualRequest =
+ ((CreateCustomDimensionRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertEquals(customDimension, actualRequest.getCustomDimension());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void createCustomDimensionExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ PropertyName parent = PropertyName.of("[PROPERTY]");
+ CustomDimension customDimension = CustomDimension.newBuilder().build();
+ client.createCustomDimension(parent, customDimension);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void createCustomDimensionTest2() throws Exception {
+ CustomDimension expectedResponse =
+ CustomDimension.newBuilder()
+ .setName(CustomDimensionName.of("[PROPERTY]").toString())
+ .setParameterName("parameterName-379607596")
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setDisallowAdsPersonalization(true)
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ String parent = "parent-995424086";
+ CustomDimension customDimension = CustomDimension.newBuilder().build();
+
+ CustomDimension actualResponse = client.createCustomDimension(parent, customDimension);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAnalyticsAdminService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateCustomDimensionRequest actualRequest =
+ ((CreateCustomDimensionRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertEquals(customDimension, actualRequest.getCustomDimension());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void createCustomDimensionExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsAdminService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ CustomDimension customDimension = CustomDimension.newBuilder().build();
+ client.createCustomDimension(parent, customDimension);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void updateCustomDimensionTest() throws Exception {
+ CustomDimension expectedResponse =
+ CustomDimension.newBuilder()
+ .setName(CustomDimensionName.of("[PROPERTY]").toString())
+ .setParameterName("parameterName-379607596")
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setDisallowAdsPersonalization(true)
+ .build();
+ mockAnalyticsAdminService.addResponse(expectedResponse);
+
+ CustomDimension customDimension = CustomDimension.newBuilder().build();
+ FieldMask updateMask = FieldMask.newBuilder().build();
+
+ CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List