Hi
I am trying to download historical data for the click performance report.
I can get it to run with the YESTERDAY and TODAY date range type, but I
want to be able to go back and download the last 90 days worth of data. I
am using the Java adwords.axis examples as a base, and trying to do
something like the following:
DateRange dr = new DateRange();
dr.setMin("20160401");
dr.setMax("20160402");
selector.setDateRange(dr);
reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE);
reportDefinition.setReportType(ReportDefinitionReportType.CLICK_PERFORMANCE_REPORT);
reportDefinition.setDownloadFormat(DownloadFormat.CSV);
However, I get the following error:
---
[07 Apr 2016 11:50:59,539-report_download:WARN:main] Response received with
status code 400 and message: Bad Request
Report was not downloaded due to: HTTP Response Code: 400, Trigger: A
single day DateRange is required for reportType: CLICK_PERFORMANCE_REPORT,
Type: ReportDefinitionError.INVALID_DATE_RANGE_FOR_REPORT
---
If I omit the date range type altogether but leave the min and max in I get
the exact same error.
Any help appreciated.
Thanks
Neil
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/84ddc45b-23cd-48de-9d50-3e0a038a9c09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.