Hello again, I have a problem with getting fields on Criteria Performance Report. Here's my code: public static CriteriaPerformance CriteriaPerformance(string keyword) { var user = new AdWordsUser(); var criteria = new CriteriaPerformance(); var report = new ReportDefinition { reportName = string.Format(@"Criteria performance report"), reportType = ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT, dateRangeType = ReportDefinitionDateRangeType.ALL_TIME, downloadFormat = DownloadFormat.XML, includeZeroImpressions = false, selector = new Selector() { dateRange = new DateRange { min = DateTime.UtcNow.AddDays(-21).ToString("yyyyMMdd"), max = DateTime.UtcNow.ToString("yyyyMMdd") }, fields = new[] { "Cost", "Conversions", "ConversionRate", "AverageCost", "Impressions" ,"Clicks" }, predicates = new[] { Predicate.Equals("Criteria", keyword) } } };
var utilities = new ReportUtilities(user, "v201506", report); try { using (var response = utilities.GetResponse()) { using (var reader = new StreamReader(response.Stream)) { var result = reader.ReadToEnd(); var doc = new XmlDocument(); doc.LoadXml(result); criteria.Impressions = Convert.ToInt64(doc.SelectSingleNode("/report/table/row/@impressions").Value); criteria.Cost = Convert.ToDecimal(doc.SelectSingleNode("/report/table/row/@cost").Value) / 1000000m; criteria.Clicks = Convert.ToInt64(doc.SelectSingleNode("/report/table/row/@clicks").Value); criteria.Conversion = Convert.ToDouble(doc.SelectSingleNode("/report/table/row/@conversions").Value); criteria.ConversionRate = Convert.ToDouble(doc.SelectSingleNode("/report/table/row/@convRate").Value); criteria.AverageCost = Convert.ToDecimal(doc.SelectSingleNode("/report/table/row/@avgCost").Value) / 1000000m; } } } catch (Exception exception) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(exception.Message); Console.ResetColor(); } return criteria; } And the error is: ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT, Trigger: , FieldPath: Conversions -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. 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/9d8b3fba-b1eb-4a90-8931-f83b80005fe1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.