Skip to content

Commit ef70382

Browse files
authored
Add required params to GetAccountChanges (#384)
Change-Id: I0ef1231b4813dbbcf846e8937e77a314436dd76c
1 parent f0a9017 commit ef70382

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

google-ads-examples/src/main/java/com/google/ads/googleads/examples/accountmanagement/GetAccountChanges.java renamed to google-ads-examples/src/main/java/com/google/ads/googleads/examples/accountmanagement/GetChangeSummary.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import java.util.Optional;
3030

3131
/** Gets the changes in the account made in the last 7 days. */
32-
public class GetAccountChanges {
32+
public class GetChangeSummary {
3333

3434
private static class GetAccountChangesParams extends CodeSampleParams {
3535

@@ -59,7 +59,7 @@ public static void main(String[] args) {
5959
}
6060

6161
try {
62-
new GetAccountChanges().runExample(googleAdsClient, params.customerId);
62+
new GetChangeSummary().runExample(googleAdsClient, params.customerId);
6363
} catch (GoogleAdsException gae) {
6464
// GoogleAdsException is the base class for most exceptions thrown by an API request.
6565
// Instances of this exception have a message and a GoogleAdsFailure that contains a
@@ -100,8 +100,9 @@ private void runExample(GoogleAdsClient googleAdsClient, long customerId) {
100100
+ "change_status.feed, "
101101
+ "change_status.feed_item "
102102
+ "FROM change_status "
103-
+ "WHERE change_status.last_change_date_time DURING LAST_7_DAYS "
104-
+ "ORDER BY change_status.last_change_date_time";
103+
+ "WHERE change_status.last_change_date_time DURING LAST_14_DAYS "
104+
+ "ORDER BY change_status.last_change_date_time"
105+
+ "LIMIT 10000";
105106

106107
try (GoogleAdsServiceClient client =
107108
googleAdsClient.getLatestVersion().createGoogleAdsServiceClient()) {

0 commit comments

Comments
 (0)