src/Google/AdsApi/AdWords/Reporting/v201809/RequestOptionsFactory.php
public function createRequestOptionsWithReportDefinition(
        ReportDefinition $reportDefinition,
        ReportSettings $reportSettingsOverride = null
    ) {
        $params = [];
        $context = ['xml_root_node_name' => 'reportDefinition'];
        $params['__rdxml'] = $this->reportDefinitionSerializer->serialize(
            $reportDefinition,
            'xml',
            $context
        );

        return array_merge(
            $this->options,
            [
                RequestOptions::HEADERS =>
                    $this->createHeaders($reportSettingsOverride),
                RequestOptions::FORM_PARAMS => $params,
            ]
        );
    }
public function createRequestOptionsWithReportDefinition(
        ReportDefinition $reportDefinition,
        ReportSettings $reportSettingsOverride = null
    ) {
        $params = [];
        $context = ['xml_root_node_name' => 'reportDefinition'];
        $params['__rdxml'] = $this->reportDefinitionSerializer->serialize(
            $reportDefinition,
            'xml',
            $context
        );

        return array_merge(
            $this->options,
            [
                RequestOptions::HEADERS =>
                    $this->createHeaders($reportSettingsOverride),
                RequestOptions::FORM_PARAMS => $params,
            ]
        );
    }
public function createRequestOptionsWithReportDefinition ( ReportDefinition $ reportDefinition , ReportSettings $ reportSettingsOverride = null ) { $ params = [ ] ; $ context = [ 'xml_root_node_name' => 'reportDefinition' ] ; $ params [ '__rdxml' ] = $ this -> reportDefinitionSerializer -> serialize ( $ reportDefinition , 'xml' , $ context ) ; return array_merge ( $ this -> options , [ RequestOptions :: HEADERS => $ this -> createHeaders ( $ reportSettingsOverride ) , RequestOptions :: FORM_PARAMS => $ params , ] ) ; }
Creates request options for downloading a report using an XML-based
report definition.

@see
https://developers.google.com/adwords/api/docs/guides/reporting#create-a-report-definition
@param ReportDefinition $reportDefinition the report definition
@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 XML - based report definition .