src/Google/AdsApi/AdWords/Reporting/v201809/ReportDownloader.php
public function downloadReportWithAwql(
        $reportQuery,
        $reportFormat,
        ReportSettings $reportSettingsOverride = null
    ) {
        // The `$reportQuery` argument must be a string. If it is an object
        // of other types, the object must be converted to a string for this
        // function to accept it.
        if (!is_string($reportQuery)) {
            throw new InvalidArgumentException('The report query must be a' .
                ' string.');
        }

        return $this->makeReportRequest(
            $this->requestOptionsFactory
                ->createRequestOptionsWithAwqlQuery(
                    $reportQuery,
                    $reportFormat,
                    $reportSettingsOverride
                )
        );
    }
public function downloadReportWithAwql(
        $reportQuery,
        $reportFormat,
        ReportSettings $reportSettingsOverride = null
    ) {
        // The `$reportQuery` argument must be a string. If it is an object
        // of other types, the object must be converted to a string for this
        // function to accept it.
        if (!is_string($reportQuery)) {
            throw new InvalidArgumentException('The report query must be a' .
                ' string.');
        }

        return $this->makeReportRequest(
            $this->requestOptionsFactory
                ->createRequestOptionsWithAwqlQuery(
                    $reportQuery,
                    $reportFormat,
                    $reportSettingsOverride
                )
        );
    }
public function downloadReportWithAwql ( $ reportQuery , $ reportFormat , ReportSettings $ reportSettingsOverride = null ) { // The `$reportQuery` argument must be a string. If it is an object // of other types, the object must be converted to a string for this // function to accept it. if ( ! is_string ( $ reportQuery ) ) { throw new InvalidArgumentException ( 'The report query must be a' . ' string.' ) ; } return $ this -> makeReportRequest ( $ this -> requestOptionsFactory -> createRequestOptionsWithAwqlQuery ( $ reportQuery , $ reportFormat , $ reportSettingsOverride ) ) ; }
Downloads a report using AWQL.

@param string $reportQuery the query to use for the report
@param string $reportFormat the report format to request
@param null|ReportSettings $reportSettingsOverride the report settings
used to override the report settings of the AdWords session for this
request
@return ReportDownloadResult the report download result
@throws ApiException if there are errors during downloading reports
Downloads a report using AWQL .