src/Google/AdsApi/AdWords/Reporting/v201809/RequestOptionsFactory.php
public function createRequestOptionsWithAwqlQuery(
        $reportDefinition,
        $reportFormat,
        ReportSettings $reportSettingsOverride = null
    ) {
        $params = ['__rdquery' => $reportDefinition, '__fmt' => $reportFormat];

        return array_merge(
            $this->options,
            [
                RequestOptions::HEADERS =>
                    $this->createHeaders($reportSettingsOverride),
                RequestOptions::FORM_PARAMS => $params,
            ]
        );
    }
public function createRequestOptionsWithAwqlQuery(
        $reportDefinition,
        $reportFormat,
        ReportSettings $reportSettingsOverride = null
    ) {
        $params = ['__rdquery' => $reportDefinition, '__fmt' => $reportFormat];

        return array_merge(
            $this->options,
            [
                RequestOptions::HEADERS =>
                    $this->createHeaders($reportSettingsOverride),
                RequestOptions::FORM_PARAMS => $params,
            ]
        );
    }
public function createRequestOptionsWithAwqlQuery ( $ reportDefinition , $ reportFormat , ReportSettings $ reportSettingsOverride = null ) { $ params = [ '__rdquery' => $ reportDefinition , '__fmt' => $ reportFormat ] ; return array_merge ( $ this -> options , [ RequestOptions :: HEADERS => $ this -> createHeaders ( $ reportSettingsOverride ) , RequestOptions :: FORM_PARAMS => $ params , ] ) ; }
Creates request options for downloading a report using an AWQL-based
report definition.

@see
https://developers.google.com/adwords/api/docs/guides/reporting#create-a-report-definition
@param string $reportDefinition the report definition in AWQL format
@param string $reportFormat the format to download report as
@param null|ReportSettings $reportSettingsOverride the report settings
used to override the report settings of the AdWords session for this
request
@return array the request options
Creates request options for downloading a report using an AWQL - based report definition .