Hi ,
*we are using the Adwords Api v201702 and we are facing problem :*
*We are trying to run this requset by using adwords api.*
List<String> fields = new ArrayList<>();
fields.add("AdGroupId");
fields.add("CriteriaType");
fields.add("Criteria");
DateRange dateRange = new DateRange();
dateRange.setMin(startDate);
dateRange.setMax(endDate);
Selector selector = new Selector();
selector.getFields().addAll(fields);
selector.setDateRange(dateRange);
ReportDefinition reportDefinition = new ReportDefinition();
reportDefinition.setReportName("Datorama Report");
reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE
);
reportDefinition.setReportType(ReportDefinitionReportType.
CRITERIA_PERFORMANCE_REPORT);
reportDefinition.setDownloadFormat(DownloadFormat.GZIPPED_CSV);
reportDefinition.setSelector(selector);
// download the report
ReportDownloader reportDownloader = new ReportDownloader(adWordsSession);
reportDownloader.setReportDownloadTimeout(HTTP_READ_TIMEOUT);
ReportDownloadResponse response = reportDownloader.downloadReport(
reportDefinition);
* When we this Requset, sometimes responding with 400 response and
sometimes running normally **.*
* This is the response:*
*Stack Trace :*
Caused by: HTTP Response Code: 400
at com.google.api.ads.adwords.lib.utils.v201702.
DetailedReportDownloadResponseException$Builder.build(
DetailedReportDownloadResponseException.java:35)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelperImpl.
handleResponse(AdHocReportDownloadHelperImpl.java:117)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelperImpl.
downloadReport(AdHocReportDownloadHelperImpl.java:60)
at sun.reflect.GeneratedMethodAccessor859.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.api.ads.common.lib.utils.AdsUtilityInvocationHandler.
handleInvocation(AdsUtilityInvocationHandler.java:46)
at com.google.common.reflect.AbstractInvocationHandler.invoke(
AbstractInvocationHandler.java:84)
at com.sun.proxy.$Proxy174.downloadReport(Unknown Source)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelper.
downloadReport(AdHocReportDownloadHelper.java:46)
at com.google.api.ads.adwords.lib.utils.v201702.ReportDownloader.
downloadReport(ReportDownloader.java:65)\
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/115f060e-c7c4-4045-8e38-f71124c2d760%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.