There appears to be an issue with downloading AdHoc XML reports in the new v201109 API. A lot of our most recently downloaded reports have been truncated. It doesn't appear to be an issue with the size of the XML file being downloaded because a 137 KB file was not truncated, but a 16 KB file was truncated. Here is a sample of the code used to generate and download the AdHoc XML reports:
definition = new ReportDefinition(); definition.reportName = "backfillData"; definition.reportType = ReportDefinitionReportType.ADGROUP_PERFORMANCE_REPORT; definition.dateRangeType = ReportDefinitionDateRangeType.CUSTOM_DATE; definition.downloadFormat = DownloadFormat.XML; selector = new Selector(); selector.dateRange = new DateRange(); selector.dateRange.min = reportDate_dt.ToString("yyyyMMdd"); selector.dateRange.max = reportDate_dt.ToString("yyyyMMdd"); selector.fields = new string[] { "CampaignId", "CampaignStatus", "AdGroupId", "Status", "Impressions", "Clicks", "Conversions", "ViewThroughConversions", "AveragePosition", "Cost" }; campaignPredicate = new Predicate(); campaignPredicate.field = "CampaignStatus"; campaignPredicate.@operator = PredicateOperator.EQUALS; campaignPredicate.operatorSpecified = true; campaignPredicate.values = new string[] { "ACTIVE" }; adGroupStatusPred = new Predicate(); adGroupStatusPred.field = "Status"; adGroupStatusPred.@operator = PredicateOperator.EQUALS; adGroupStatusPred.operatorSpecified = true; adGroupStatusPred.values = new string[] { "ENABLED" }; selector.predicates = new Predicate[] { campaignPredicate, adGroupStatusPred }; definition.selector = selector; try { util.DownloadClientReport<ReportDefinition>(definition, path_str); } catch (Exception ex) { throw new Exception(string.Format("Failed to download XML report to ['{0}']", path_str), ex); } try { doc.Load(path_str); } catch (Exception ex) { throw new Exception(string.Format("Bad XML report [{0}].", path_str), ex); } Why are only some of the XML reports getting truncated? And why would this truncation not be dependent on the size of the XML file being downloaded? ADM -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en