Skip to content

Commit

Permalink
fix a bug in the client sample code
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 614689121
  • Loading branch information
ruizhi-google authored and copybara-github committed Mar 11, 2024
1 parent edc6ae8 commit c698ba4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c698ba4

Please sign in to comment.