Hi, I am trying to run the example code provided by the site with my account with the below code, and getting an error back as "Report Downloaded in error". My authentication is connecting. Is there a parameter to pass to CRITERIA_PERFORMANCE_REPORT?
public void Run(AdWordsUser user, string fileName) { ReportDefinition definition = new ReportDefinition(); definition.reportName = fileName; definition.reportType = ReportDefinitionReportType .CRITERIA_PERFORMANCE_REPORT; definition.downloadFormat = DownloadFormat.XML; definition.dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS ; // Create selector. Selector selector = new Selector(); selector.fields = new string[] {"CampaignId", "AdGroupId", "Id", "CriteriaType", "Criteria", "CriteriaDestinationUrl", "Clicks", "Impressions", "Cost"}; // Predicate predicate = new Predicate(); // predicate.field = "Status"; // predicate.@operator = PredicateOperator.IN; // predicate.values = new string[] { "ENABLED", "PAUSED" }; //// selector.predicates = new Predicate[] { predicate }; definition.selector = selector; definition.includeZeroImpressions = false; string filePath = "C:\\Users\\toldro.SPRAYTECH\\" + filename; try { ReportUtilities utilities = new ReportUtilities(user); utilities.ReportVersion = "v201406"; utilities.DownloadClientReport(definition, filePath); Console.WriteLine("Report was downloaded to '{0}'.", filePath); } catch (Exception ex) { throw new System.ApplicationException("Failed to download report.", ex); } } } } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 --- 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 adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.