/**
  * @return array
  */
 public function toArray()
 {
     return $this->report_definition->toArray();
 }
Example #2
0
 /**
  * @param ReportDefinition $report_definition
  *
  * @return \Guzzle\Http\Message\RequestInterface
  */
 private function buildRequest(ReportDefinition $report_definition)
 {
     $xml = $this->xml_parser->arrayToXml($report_definition->toArray());
     $request = $this->client->post('https://adwords.google.com/api/adwords/reportdownload/' . self::API_VERSION, array('Authorization' => $this->auth_token, 'developerToken' => $this->developer_token, 'clientCustomerId' => $this->customer_id), array('__rdxml' => $xml));
     return $request;
 }