if ( $this->dateRangeType == "CUSTOM_DATE" ) {
$selector->dateRange = new DateRange($this->dateRangeStart, $this->dateRangeEnd);
}
$reportDefinition = new ReportDefinition();
$reportDefinition->selector = $selector;
$reportDefinition->reportName = $this->reportType . " " . $this->dateRangeType;
if ( $this->dateRangeType == "CUSTOM_DATE" ) {
$reportDefinition->reportName .= "(From : " . $this->dateRangeStart . " to : " . $this->dateRangeEnd . ")";
}
$reportDefinition->dateRangeType = $this->dateRangeType;
$reportDefinition->reportType = $this->reportType;
$reportDefinition->downloadFormat = $this->outFileType;
$reportDefinition->includeZeroImpressions = FALSE;
Xml file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><reportDownloadError><ApiError><type>ReportDownloadError.INVALID_REPORT_DEFINITION_XML</type><trigger>Invalid ReportDefinition Xml: cvc-complex-type.2.4.d: Invalid content was found starting with element 'includeZeroImpressions'. No child element is expected at this point.</trigger><fieldPath></fieldPath></ApiError></reportDownloadError>
But In google adwords api version: v201506 no this error and successfully download all XML file