Api version 201708, I create the following query $report_definition = new ReportDefinition($selector); $report_definition->setReportName(self::_get_report_name($customer_id)); $report_definition->setDateRangeType(ReportDefinitionDateRangeType::CUSTOM_DATE); $report_definition->setReportType(ReportDefinitionReportType::ACCOUNT_PERFORMANCE_REPORT); $report_definition->setDownloadFormat(DownloadFormat::XML);
$report_downloader = new ReportDownloader($adwords_session_user); $report_settings_override = (new ReportSettingsBuilder()) ->includeZeroImpressions(true) ->build(); $report_download_result = $report_downloader->downloadReport($report_definition, $report_settings_override); $report_download_result->saveToFile('/'); And I get the followingGoogle\AdsApi\AdWords\v201708\cm\ApiException [ 0 ]: Details: [fieldPath: ; trigger: Invalid ReportDefinition Xml: cvc-type.3.1.2: Element 'fields' is a simple type, so it must have no element information item [children].; errorString: ReportDownloadError.INVALID_REPORT_DEFINITION_XML] What am I doing wrong ? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/6a82904a-0bd5-495f-8a65-68179401a80f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.