HI
i question !!
change history
May 30, 2017, I made changes to my ad group content.
Well, when it was viewed on May 30th,
30 days are not displayed when viewed on May 31
what should i do ?
attach java source
DateTimeRange dateTimeRange = new DateTimeRange();
LocalDate localDate = LocalDate.now(); //20170531
localDate = localDate.minusDays(1); //20170530
dateTimeRange.setMin(localDate.format(DateTimeFormatter.ofPattern("yyyyMMdd
000000"))); // 20170530 000000
dateTimeRange.setMax(localDate.format(DateTimeFormatter.ofPattern("yyyyMMdd
235959"))); // 20170530 235959
// Create selector.
CustomerSyncSelector customerSyncSelector = new CustomerSyncSelector();
customerSyncSelector.setDateTimeRange(dateTimeRange);
customerSyncSelector.setCampaignIds(ArrayUtils.toPrimitive(new
Long[]{campaignID}));
CustomerChangeData accountChanges =
customerSyncService.get(customerSyncSelector);
System.out.printf("최근 변경 시간 : %s%n", accountChanges.getLastChangeTimestamp());
System.out.println("시작날짜 >< " + dateTimeRange.getMin() + " 종료날짜 >< " +
dateTimeRange.getMax());
if (accountChanges != null && accountChanges.getChangedCampaigns() != null) {
for (CampaignChangeData campaignChanges :
accountChanges.getChangedCampaigns()) {
if (campaignChanges.getChangedAdGroups() != null) {
for (AdGroupChangeData adGroupChanges :
campaignChanges.getChangedAdGroups()) {
System.out.println("광고그룹 아이디 -> " +
adGroupChanges.getAdGroupId());
System.out.println("변경 되었니 -> " +
adGroupChanges.getAdGroupChangeStatus());
System.out.println(getFormattedList(adGroupChanges.getChangedCriteria()));
System.out.println(getFormattedList(adGroupChanges.getRemovedCriteria()));
}
} else {
// ??
System.out.println("oops");
}
}
} else {
System.out.println("No account changes were found.");
}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/189abc13-0f54-443e-886f-a45fcd0d3b41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.