1<?php
2/*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16
17  /**
18   * The "adclients" collection of methods.
19   * Typical usage is:
20   *  <code>
21   *   $adexchangesellerService = new Google_AdExchangeSellerService(...);
22   *   $adclients = $adexchangesellerService->adclients;
23   *  </code>
24   */
25  class Google_AdclientsServiceResource extends Google_ServiceResource {
26
27    /**
28     * List all ad clients in this Ad Exchange account. (adclients.list)
29     *
30     * @param array $optParams Optional parameters.
31     *
32     * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
33     * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
34     * @return Google_AdClients
35     */
36    public function listAdclients($optParams = array()) {
37      $params = array();
38      $params = array_merge($params, $optParams);
39      $data = $this->__call('list', array($params));
40      if ($this->useObjects()) {
41        return new Google_AdClients($data);
42      } else {
43        return $data;
44      }
45    }
46  }
47
48  /**
49   * The "adunits" collection of methods.
50   * Typical usage is:
51   *  <code>
52   *   $adexchangesellerService = new Google_AdExchangeSellerService(...);
53   *   $adunits = $adexchangesellerService->adunits;
54   *  </code>
55   */
56  class Google_AdunitsServiceResource extends Google_ServiceResource {
57
58    /**
59     * Gets the specified ad unit in the specified ad client. (adunits.get)
60     *
61     * @param string $adClientId Ad client for which to get the ad unit.
62     * @param string $adUnitId Ad unit to retrieve.
63     * @param array $optParams Optional parameters.
64     * @return Google_AdUnit
65     */
66    public function get($adClientId, $adUnitId, $optParams = array()) {
67      $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
68      $params = array_merge($params, $optParams);
69      $data = $this->__call('get', array($params));
70      if ($this->useObjects()) {
71        return new Google_AdUnit($data);
72      } else {
73        return $data;
74      }
75    }
76    /**
77     * List all ad units in the specified ad client for this Ad Exchange account. (adunits.list)
78     *
79     * @param string $adClientId Ad client for which to list ad units.
80     * @param array $optParams Optional parameters.
81     *
82     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
83     * @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
84     * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
85     * @return Google_AdUnits
86     */
87    public function listAdunits($adClientId, $optParams = array()) {
88      $params = array('adClientId' => $adClientId);
89      $params = array_merge($params, $optParams);
90      $data = $this->__call('list', array($params));
91      if ($this->useObjects()) {
92        return new Google_AdUnits($data);
93      } else {
94        return $data;
95      }
96    }
97  }
98
99  /**
100   * The "customchannels" collection of methods.
101   * Typical usage is:
102   *  <code>
103   *   $adexchangesellerService = new Google_AdExchangeSellerService(...);
104   *   $customchannels = $adexchangesellerService->customchannels;
105   *  </code>
106   */
107  class Google_AdunitsCustomchannelsServiceResource extends Google_ServiceResource {
108
109    /**
110     * List all custom channels which the specified ad unit belongs to. (customchannels.list)
111     *
112     * @param string $adClientId Ad client which contains the ad unit.
113     * @param string $adUnitId Ad unit for which to list custom channels.
114     * @param array $optParams Optional parameters.
115     *
116     * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
117     * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
118     * @return Google_CustomChannels
119     */
120    public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
121      $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
122      $params = array_merge($params, $optParams);
123      $data = $this->__call('list', array($params));
124      if ($this->useObjects()) {
125        return new Google_CustomChannels($data);
126      } else {
127        return $data;
128      }
129    }
130  }
131
132  /**
133   * The "customchannels" collection of methods.
134   * Typical usage is:
135   *  <code>
136   *   $adexchangesellerService = new Google_AdExchangeSellerService(...);
137   *   $customchannels = $adexchangesellerService->customchannels;
138   *  </code>
139   */
140  class Google_CustomchannelsServiceResource extends Google_ServiceResource {
141
142    /**
143     * Get the specified custom channel from the specified ad client. (customchannels.get)
144     *
145     * @param string $adClientId Ad client which contains the custom channel.
146     * @param string $customChannelId Custom channel to retrieve.
147     * @param array $optParams Optional parameters.
148     * @return Google_CustomChannel
149     */
150    public function get($adClientId, $customChannelId, $optParams = array()) {
151      $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
152      $params = array_merge($params, $optParams);
153      $data = $this->__call('get', array($params));
154      if ($this->useObjects()) {
155        return new Google_CustomChannel($data);
156      } else {
157        return $data;
158      }
159    }
160    /**
161     * List all custom channels in the specified ad client for this Ad Exchange account.
162     * (customchannels.list)
163     *
164     * @param string $adClientId Ad client for which to list custom channels.
165     * @param array $optParams Optional parameters.
166     *
167     * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
168     * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
169     * @return Google_CustomChannels
170     */
171    public function listCustomchannels($adClientId, $optParams = array()) {
172      $params = array('adClientId' => $adClientId);
173      $params = array_merge($params, $optParams);
174      $data = $this->__call('list', array($params));
175      if ($this->useObjects()) {
176        return new Google_CustomChannels($data);
177      } else {
178        return $data;
179      }
180    }
181  }
182
183  /**
184   * The "adunits" collection of methods.
185   * Typical usage is:
186   *  <code>
187   *   $adexchangesellerService = new Google_AdExchangeSellerService(...);
188   *   $adunits = $adexchangesellerService->adunits;
189   *  </code>
190   */
191  class Google_CustomchannelsAdunitsServiceResource extends Google_ServiceResource {
192
193    /**
194     * List all ad units in the specified custom channel. (adunits.list)
195     *
196     * @param string $adClientId Ad client which contains the custom channel.
197     * @param string $customChannelId Custom channel for which to list ad units.
198     * @param array $optParams Optional parameters.
199     *
200     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
201     * @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
202     * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
203     * @return Google_AdUnits
204     */
205    public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
206      $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
207      $params = array_merge($params, $optParams);
208      $data = $this->__call('list', array($params));
209      if ($this->useObjects()) {
210        return new Google_AdUnits($data);
211      } else {
212        return $data;
213      }
214    }
215  }
216
217  /**
218   * The "reports" collection of methods.
219   * Typical usage is:
220   *  <code>
221   *   $adexchangesellerService = new Google_AdExchangeSellerService(...);
222   *   $reports = $adexchangesellerService->reports;
223   *  </code>
224   */
225  class Google_ReportsServiceResource extends Google_ServiceResource {
226
227    /**
228     * Generate an Ad Exchange report based on the report request sent in the query parameters. Returns
229     * the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
230     * (reports.generate)
231     *
232     * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
233     * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
234     * @param array $optParams Optional parameters.
235     *
236     * @opt_param string dimension Dimensions to base the report on.
237     * @opt_param string filter Filters to be run on the report.
238     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
239     * @opt_param string maxResults The maximum number of rows of report data to return.
240     * @opt_param string metric Numeric columns to include in the report.
241     * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
242     * @opt_param string startIndex Index of the first row of report data to return.
243     * @return Google_Report
244     */
245    public function generate($startDate, $endDate, $optParams = array()) {
246      $params = array('startDate' => $startDate, 'endDate' => $endDate);
247      $params = array_merge($params, $optParams);
248      $data = $this->__call('generate', array($params));
249      if ($this->useObjects()) {
250        return new Google_Report($data);
251      } else {
252        return $data;
253      }
254    }
255  }
256
257  /**
258   * The "saved" collection of methods.
259   * Typical usage is:
260   *  <code>
261   *   $adexchangesellerService = new Google_AdExchangeSellerService(...);
262   *   $saved = $adexchangesellerService->saved;
263   *  </code>
264   */
265  class Google_ReportsSavedServiceResource extends Google_ServiceResource {
266
267    /**
268     * Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
269     * (saved.generate)
270     *
271     * @param string $savedReportId The saved report to retrieve.
272     * @param array $optParams Optional parameters.
273     *
274     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
275     * @opt_param int maxResults The maximum number of rows of report data to return.
276     * @opt_param int startIndex Index of the first row of report data to return.
277     * @return Google_Report
278     */
279    public function generate($savedReportId, $optParams = array()) {
280      $params = array('savedReportId' => $savedReportId);
281      $params = array_merge($params, $optParams);
282      $data = $this->__call('generate', array($params));
283      if ($this->useObjects()) {
284        return new Google_Report($data);
285      } else {
286        return $data;
287      }
288    }
289    /**
290     * List all saved reports in this Ad Exchange account. (saved.list)
291     *
292     * @param array $optParams Optional parameters.
293     *
294     * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
295     * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
296     * @return Google_SavedReports
297     */
298    public function listReportsSaved($optParams = array()) {
299      $params = array();
300      $params = array_merge($params, $optParams);
301      $data = $this->__call('list', array($params));
302      if ($this->useObjects()) {
303        return new Google_SavedReports($data);
304      } else {
305        return $data;
306      }
307    }
308  }
309
310  /**
311   * The "urlchannels" collection of methods.
312   * Typical usage is:
313   *  <code>
314   *   $adexchangesellerService = new Google_AdExchangeSellerService(...);
315   *   $urlchannels = $adexchangesellerService->urlchannels;
316   *  </code>
317   */
318  class Google_UrlchannelsServiceResource extends Google_ServiceResource {
319
320    /**
321     * List all URL channels in the specified ad client for this Ad Exchange account. (urlchannels.list)
322     *
323     * @param string $adClientId Ad client for which to list URL channels.
324     * @param array $optParams Optional parameters.
325     *
326     * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
327     * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
328     * @return Google_UrlChannels
329     */
330    public function listUrlchannels($adClientId, $optParams = array()) {
331      $params = array('adClientId' => $adClientId);
332      $params = array_merge($params, $optParams);
333      $data = $this->__call('list', array($params));
334      if ($this->useObjects()) {
335        return new Google_UrlChannels($data);
336      } else {
337        return $data;
338      }
339    }
340  }
341
342/**
343 * Service definition for Google_AdExchangeSeller (v1).
344 *
345 * <p>
346 * Gives Ad Exchange seller users access to their inventory and the ability to generate reports
347 * </p>
348 *
349 * <p>
350 * For more information about this service, see the
351 * <a href="https://developers.google.com/ad-exchange/seller-rest/" target="_blank">API Documentation</a>
352 * </p>
353 *
354 * @author Google, Inc.
355 */
356class Google_AdExchangeSellerService extends Google_Service {
357  public $adclients;
358  public $adunits;
359  public $adunits_customchannels;
360  public $customchannels;
361  public $customchannels_adunits;
362  public $reports;
363  public $reports_saved;
364  public $urlchannels;
365  /**
366   * Constructs the internal representation of the AdExchangeSeller service.
367   *
368   * @param Google_Client $client
369   */
370  public function __construct(Google_Client $client) {
371    $this->servicePath = 'adexchangeseller/v1/';
372    $this->version = 'v1';
373    $this->serviceName = 'adexchangeseller';
374
375    $client->addService($this->serviceName, $this->version);
376    $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"id": "adexchangeseller.adclients.list", "path": "adclients", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
377    $this->adunits = new Google_AdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"get": {"id": "adexchangeseller.adunits.get", "path": "adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.adunits.list", "path": "adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
378    $this->adunits_customchannels = new Google_AdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"id": "adexchangeseller.adunits.customchannels.list", "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
379    $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"get": {"id": "adexchangeseller.customchannels.get", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.customchannels.list", "path": "adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
380    $this->customchannels_adunits = new Google_CustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"id": "adexchangeseller.customchannels.adunits.list", "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
381    $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adexchangeseller.reports.generate", "path": "reports", "httpMethod": "GET", "parameters": {"dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"], "supportsMediaDownload": true}}}', true));
382    $this->reports_saved = new Google_ReportsSavedServiceResource($this, $this->serviceName, 'saved', json_decode('{"methods": {"generate": {"id": "adexchangeseller.reports.saved.generate", "path": "reports/{savedReportId}", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "savedReportId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.reports.saved.list", "path": "reports/saved", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedReports"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
383    $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"id": "adexchangeseller.urlchannels.list", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
384
385  }
386}
387
388
389
390class Google_AdClient extends Google_Model {
391  public $arcOptIn;
392  public $id;
393  public $kind;
394  public $productCode;
395  public $supportsReporting;
396  public function setArcOptIn( $arcOptIn) {
397    $this->arcOptIn = $arcOptIn;
398  }
399  public function getArcOptIn() {
400    return $this->arcOptIn;
401  }
402  public function setId( $id) {
403    $this->id = $id;
404  }
405  public function getId() {
406    return $this->id;
407  }
408  public function setKind( $kind) {
409    $this->kind = $kind;
410  }
411  public function getKind() {
412    return $this->kind;
413  }
414  public function setProductCode( $productCode) {
415    $this->productCode = $productCode;
416  }
417  public function getProductCode() {
418    return $this->productCode;
419  }
420  public function setSupportsReporting( $supportsReporting) {
421    $this->supportsReporting = $supportsReporting;
422  }
423  public function getSupportsReporting() {
424    return $this->supportsReporting;
425  }
426}
427
428class Google_AdClients extends Google_Model {
429  public $etag;
430  protected $__itemsType = 'Google_AdClient';
431  protected $__itemsDataType = 'array';
432  public $items;
433  public $kind;
434  public $nextPageToken;
435  public function setEtag( $etag) {
436    $this->etag = $etag;
437  }
438  public function getEtag() {
439    return $this->etag;
440  }
441  public function setItems(/* array(Google_AdClient) */ $items) {
442    $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
443    $this->items = $items;
444  }
445  public function getItems() {
446    return $this->items;
447  }
448  public function setKind( $kind) {
449    $this->kind = $kind;
450  }
451  public function getKind() {
452    return $this->kind;
453  }
454  public function setNextPageToken( $nextPageToken) {
455    $this->nextPageToken = $nextPageToken;
456  }
457  public function getNextPageToken() {
458    return $this->nextPageToken;
459  }
460}
461
462class Google_AdUnit extends Google_Model {
463  public $code;
464  public $id;
465  public $kind;
466  public $name;
467  public $status;
468  public function setCode( $code) {
469    $this->code = $code;
470  }
471  public function getCode() {
472    return $this->code;
473  }
474  public function setId( $id) {
475    $this->id = $id;
476  }
477  public function getId() {
478    return $this->id;
479  }
480  public function setKind( $kind) {
481    $this->kind = $kind;
482  }
483  public function getKind() {
484    return $this->kind;
485  }
486  public function setName( $name) {
487    $this->name = $name;
488  }
489  public function getName() {
490    return $this->name;
491  }
492  public function setStatus( $status) {
493    $this->status = $status;
494  }
495  public function getStatus() {
496    return $this->status;
497  }
498}
499
500class Google_AdUnits extends Google_Model {
501  public $etag;
502  protected $__itemsType = 'Google_AdUnit';
503  protected $__itemsDataType = 'array';
504  public $items;
505  public $kind;
506  public $nextPageToken;
507  public function setEtag( $etag) {
508    $this->etag = $etag;
509  }
510  public function getEtag() {
511    return $this->etag;
512  }
513  public function setItems(/* array(Google_AdUnit) */ $items) {
514    $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
515    $this->items = $items;
516  }
517  public function getItems() {
518    return $this->items;
519  }
520  public function setKind( $kind) {
521    $this->kind = $kind;
522  }
523  public function getKind() {
524    return $this->kind;
525  }
526  public function setNextPageToken( $nextPageToken) {
527    $this->nextPageToken = $nextPageToken;
528  }
529  public function getNextPageToken() {
530    return $this->nextPageToken;
531  }
532}
533
534class Google_CustomChannel extends Google_Model {
535  public $code;
536  public $id;
537  public $kind;
538  public $name;
539  protected $__targetingInfoType = 'Google_CustomChannelTargetingInfo';
540  protected $__targetingInfoDataType = '';
541  public $targetingInfo;
542  public function setCode( $code) {
543    $this->code = $code;
544  }
545  public function getCode() {
546    return $this->code;
547  }
548  public function setId( $id) {
549    $this->id = $id;
550  }
551  public function getId() {
552    return $this->id;
553  }
554  public function setKind( $kind) {
555    $this->kind = $kind;
556  }
557  public function getKind() {
558    return $this->kind;
559  }
560  public function setName( $name) {
561    $this->name = $name;
562  }
563  public function getName() {
564    return $this->name;
565  }
566  public function setTargetingInfo(Google_CustomChannelTargetingInfo $targetingInfo) {
567    $this->targetingInfo = $targetingInfo;
568  }
569  public function getTargetingInfo() {
570    return $this->targetingInfo;
571  }
572}
573
574class Google_CustomChannelTargetingInfo extends Google_Model {
575  public $adsAppearOn;
576  public $description;
577  public $location;
578  public $siteLanguage;
579  public function setAdsAppearOn( $adsAppearOn) {
580    $this->adsAppearOn = $adsAppearOn;
581  }
582  public function getAdsAppearOn() {
583    return $this->adsAppearOn;
584  }
585  public function setDescription( $description) {
586    $this->description = $description;
587  }
588  public function getDescription() {
589    return $this->description;
590  }
591  public function setLocation( $location) {
592    $this->location = $location;
593  }
594  public function getLocation() {
595    return $this->location;
596  }
597  public function setSiteLanguage( $siteLanguage) {
598    $this->siteLanguage = $siteLanguage;
599  }
600  public function getSiteLanguage() {
601    return $this->siteLanguage;
602  }
603}
604
605class Google_CustomChannels extends Google_Model {
606  public $etag;
607  protected $__itemsType = 'Google_CustomChannel';
608  protected $__itemsDataType = 'array';
609  public $items;
610  public $kind;
611  public $nextPageToken;
612  public function setEtag( $etag) {
613    $this->etag = $etag;
614  }
615  public function getEtag() {
616    return $this->etag;
617  }
618  public function setItems(/* array(Google_CustomChannel) */ $items) {
619    $this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
620    $this->items = $items;
621  }
622  public function getItems() {
623    return $this->items;
624  }
625  public function setKind( $kind) {
626    $this->kind = $kind;
627  }
628  public function getKind() {
629    return $this->kind;
630  }
631  public function setNextPageToken( $nextPageToken) {
632    $this->nextPageToken = $nextPageToken;
633  }
634  public function getNextPageToken() {
635    return $this->nextPageToken;
636  }
637}
638
639class Google_Report extends Google_Model {
640  public $averages;
641  protected $__headersType = 'Google_ReportHeaders';
642  protected $__headersDataType = 'array';
643  public $headers;
644  public $kind;
645  public $rows;
646  public $totalMatchedRows;
647  public $totals;
648  public $warnings;
649  public function setAverages(/* array(Google_string) */ $averages) {
650    $this->assertIsArray($averages, 'Google_string', __METHOD__);
651    $this->averages = $averages;
652  }
653  public function getAverages() {
654    return $this->averages;
655  }
656  public function setHeaders(/* array(Google_ReportHeaders) */ $headers) {
657    $this->assertIsArray($headers, 'Google_ReportHeaders', __METHOD__);
658    $this->headers = $headers;
659  }
660  public function getHeaders() {
661    return $this->headers;
662  }
663  public function setKind( $kind) {
664    $this->kind = $kind;
665  }
666  public function getKind() {
667    return $this->kind;
668  }
669  public function setRows(/* array(Google_string) */ $rows) {
670    $this->assertIsArray($rows, 'Google_string', __METHOD__);
671    $this->rows = $rows;
672  }
673  public function getRows() {
674    return $this->rows;
675  }
676  public function setTotalMatchedRows( $totalMatchedRows) {
677    $this->totalMatchedRows = $totalMatchedRows;
678  }
679  public function getTotalMatchedRows() {
680    return $this->totalMatchedRows;
681  }
682  public function setTotals(/* array(Google_string) */ $totals) {
683    $this->assertIsArray($totals, 'Google_string', __METHOD__);
684    $this->totals = $totals;
685  }
686  public function getTotals() {
687    return $this->totals;
688  }
689  public function setWarnings(/* array(Google_string) */ $warnings) {
690    $this->assertIsArray($warnings, 'Google_string', __METHOD__);
691    $this->warnings = $warnings;
692  }
693  public function getWarnings() {
694    return $this->warnings;
695  }
696}
697
698class Google_ReportHeaders extends Google_Model {
699  public $currency;
700  public $name;
701  public $type;
702  public function setCurrency( $currency) {
703    $this->currency = $currency;
704  }
705  public function getCurrency() {
706    return $this->currency;
707  }
708  public function setName( $name) {
709    $this->name = $name;
710  }
711  public function getName() {
712    return $this->name;
713  }
714  public function setType( $type) {
715    $this->type = $type;
716  }
717  public function getType() {
718    return $this->type;
719  }
720}
721
722class Google_SavedReport extends Google_Model {
723  public $id;
724  public $kind;
725  public $name;
726  public function setId( $id) {
727    $this->id = $id;
728  }
729  public function getId() {
730    return $this->id;
731  }
732  public function setKind( $kind) {
733    $this->kind = $kind;
734  }
735  public function getKind() {
736    return $this->kind;
737  }
738  public function setName( $name) {
739    $this->name = $name;
740  }
741  public function getName() {
742    return $this->name;
743  }
744}
745
746class Google_SavedReports extends Google_Model {
747  public $etag;
748  protected $__itemsType = 'Google_SavedReport';
749  protected $__itemsDataType = 'array';
750  public $items;
751  public $kind;
752  public $nextPageToken;
753  public function setEtag( $etag) {
754    $this->etag = $etag;
755  }
756  public function getEtag() {
757    return $this->etag;
758  }
759  public function setItems(/* array(Google_SavedReport) */ $items) {
760    $this->assertIsArray($items, 'Google_SavedReport', __METHOD__);
761    $this->items = $items;
762  }
763  public function getItems() {
764    return $this->items;
765  }
766  public function setKind( $kind) {
767    $this->kind = $kind;
768  }
769  public function getKind() {
770    return $this->kind;
771  }
772  public function setNextPageToken( $nextPageToken) {
773    $this->nextPageToken = $nextPageToken;
774  }
775  public function getNextPageToken() {
776    return $this->nextPageToken;
777  }
778}
779
780class Google_UrlChannel extends Google_Model {
781  public $id;
782  public $kind;
783  public $urlPattern;
784  public function setId( $id) {
785    $this->id = $id;
786  }
787  public function getId() {
788    return $this->id;
789  }
790  public function setKind( $kind) {
791    $this->kind = $kind;
792  }
793  public function getKind() {
794    return $this->kind;
795  }
796  public function setUrlPattern( $urlPattern) {
797    $this->urlPattern = $urlPattern;
798  }
799  public function getUrlPattern() {
800    return $this->urlPattern;
801  }
802}
803
804class Google_UrlChannels extends Google_Model {
805  public $etag;
806  protected $__itemsType = 'Google_UrlChannel';
807  protected $__itemsDataType = 'array';
808  public $items;
809  public $kind;
810  public $nextPageToken;
811  public function setEtag( $etag) {
812    $this->etag = $etag;
813  }
814  public function getEtag() {
815    return $this->etag;
816  }
817  public function setItems(/* array(Google_UrlChannel) */ $items) {
818    $this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
819    $this->items = $items;
820  }
821  public function getItems() {
822    return $this->items;
823  }
824  public function setKind( $kind) {
825    $this->kind = $kind;
826  }
827  public function getKind() {
828    return $this->kind;
829  }
830  public function setNextPageToken( $nextPageToken) {
831    $this->nextPageToken = $nextPageToken;
832  }
833  public function getNextPageToken() {
834    return $this->nextPageToken;
835  }
836}
837