From c698ba425cbac1059a0176351b98b8f571c4624b Mon Sep 17 00:00:00 2001 From: Ruizhi Liao Date: Mon, 11 Mar 2024 09:21:38 -0700 Subject: [PATCH] fix a bug in the client sample code PiperOrigin-RevId: 614689121 --- .../services/samples/dfareporting/ads/CreateRotationGroup.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/v4/src/main/java/com/google/api/services/samples/dfareporting/ads/CreateRotationGroup.java b/java/v4/src/main/java/com/google/api/services/samples/dfareporting/ads/CreateRotationGroup.java index 8f9d756..901b131 100755 --- a/java/v4/src/main/java/com/google/api/services/samples/dfareporting/ads/CreateRotationGroup.java +++ b/java/v4/src/main/java/com/google/api/services/samples/dfareporting/ads/CreateRotationGroup.java @@ -25,7 +25,6 @@ import com.google.api.services.dfareporting.model.PlacementAssignment; import com.google.api.services.samples.dfareporting.DfaReportingFactory; import com.google.common.collect.ImmutableList; - import java.util.Date; /** @@ -72,7 +71,7 @@ public static void runExample(Dfareporting reporting, long profileId, String adN deliverySchedule.setPriority("AD_PRIORITY_01"); DateTime startDate = new DateTime(new Date()); - DateTime endDate = campaign.getEndDate(); + DateTime endDate = new DateTime(campaign.getEndDate().getValue()); // Create a rotation group. Ad rotationGroup = new Ad();