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 "accounts" collection of methods.
19   * Typical usage is:
20   *  <code>
21   *   $adsenseService = new Google_AdSenseService(...);
22   *   $accounts = $adsenseService->accounts;
23   *  </code>
24   */
25  class Google_AccountsServiceResource extends Google_ServiceResource {
26
27    /**
28     * Get information about the selected AdSense account. (accounts.get)
29     *
30     * @param string $accountId Account to get information about.
31     * @param array $optParams Optional parameters.
32     *
33     * @opt_param bool tree Whether the tree of sub accounts should be returned.
34     * @return Google_Account
35     */
36    public function get($accountId, $optParams = array()) {
37      $params = array('accountId' => $accountId);
38      $params = array_merge($params, $optParams);
39      $data = $this->__call('get', array($params));
40      if ($this->useObjects()) {
41        return new Google_Account($data);
42      } else {
43        return $data;
44      }
45    }
46    /**
47     * List all accounts available to this AdSense account. (accounts.list)
48     *
49     * @param array $optParams Optional parameters.
50     *
51     * @opt_param int maxResults The maximum number of accounts to include in the response, used for paging.
52     * @opt_param string pageToken A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
53     * @return Google_Accounts
54     */
55    public function listAccounts($optParams = array()) {
56      $params = array();
57      $params = array_merge($params, $optParams);
58      $data = $this->__call('list', array($params));
59      if ($this->useObjects()) {
60        return new Google_Accounts($data);
61      } else {
62        return $data;
63      }
64    }
65  }
66
67  /**
68   * The "adclients" collection of methods.
69   * Typical usage is:
70   *  <code>
71   *   $adsenseService = new Google_AdSenseService(...);
72   *   $adclients = $adsenseService->adclients;
73   *  </code>
74   */
75  class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
76
77    /**
78     * List all ad clients in the specified account. (adclients.list)
79     *
80     * @param string $accountId Account for which to list ad clients.
81     * @param array $optParams Optional parameters.
82     *
83     * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
84     * @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.
85     * @return Google_AdClients
86     */
87    public function listAccountsAdclients($accountId, $optParams = array()) {
88      $params = array('accountId' => $accountId);
89      $params = array_merge($params, $optParams);
90      $data = $this->__call('list', array($params));
91      if ($this->useObjects()) {
92        return new Google_AdClients($data);
93      } else {
94        return $data;
95      }
96    }
97  }
98  /**
99   * The "adunits" collection of methods.
100   * Typical usage is:
101   *  <code>
102   *   $adsenseService = new Google_AdSenseService(...);
103   *   $adunits = $adsenseService->adunits;
104   *  </code>
105   */
106  class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
107
108    /**
109     * Gets the specified ad unit in the specified ad client for the specified account. (adunits.get)
110     *
111     * @param string $accountId Account to which the ad client belongs.
112     * @param string $adClientId Ad client for which to get the ad unit.
113     * @param string $adUnitId Ad unit to retrieve.
114     * @param array $optParams Optional parameters.
115     * @return Google_AdUnit
116     */
117    public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
118      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
119      $params = array_merge($params, $optParams);
120      $data = $this->__call('get', array($params));
121      if ($this->useObjects()) {
122        return new Google_AdUnit($data);
123      } else {
124        return $data;
125      }
126    }
127    /**
128     * Get ad code for the specified ad unit. (adunits.getAdCode)
129     *
130     * @param string $accountId Account which contains the ad client.
131     * @param string $adClientId Ad client with contains the ad unit.
132     * @param string $adUnitId Ad unit to get the code for.
133     * @param array $optParams Optional parameters.
134     * @return Google_AdCode
135     */
136    public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) {
137      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
138      $params = array_merge($params, $optParams);
139      $data = $this->__call('getAdCode', array($params));
140      if ($this->useObjects()) {
141        return new Google_AdCode($data);
142      } else {
143        return $data;
144      }
145    }
146    /**
147     * List all ad units in the specified ad client for the specified account. (adunits.list)
148     *
149     * @param string $accountId Account to which the ad client belongs.
150     * @param string $adClientId Ad client for which to list ad units.
151     * @param array $optParams Optional parameters.
152     *
153     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
154     * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
155     * @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.
156     * @return Google_AdUnits
157     */
158    public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
159      $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
160      $params = array_merge($params, $optParams);
161      $data = $this->__call('list', array($params));
162      if ($this->useObjects()) {
163        return new Google_AdUnits($data);
164      } else {
165        return $data;
166      }
167    }
168  }
169
170  /**
171   * The "customchannels" collection of methods.
172   * Typical usage is:
173   *  <code>
174   *   $adsenseService = new Google_AdSenseService(...);
175   *   $customchannels = $adsenseService->customchannels;
176   *  </code>
177   */
178  class Google_AccountsAdunitsCustomchannelsServiceResource extends Google_ServiceResource {
179
180    /**
181     * List all custom channels which the specified ad unit belongs to. (customchannels.list)
182     *
183     * @param string $accountId Account to which the ad client belongs.
184     * @param string $adClientId Ad client which contains the ad unit.
185     * @param string $adUnitId Ad unit for which to list custom channels.
186     * @param array $optParams Optional parameters.
187     *
188     * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
189     * @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.
190     * @return Google_CustomChannels
191     */
192    public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) {
193      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
194      $params = array_merge($params, $optParams);
195      $data = $this->__call('list', array($params));
196      if ($this->useObjects()) {
197        return new Google_CustomChannels($data);
198      } else {
199        return $data;
200      }
201    }
202  }
203  /**
204   * The "alerts" collection of methods.
205   * Typical usage is:
206   *  <code>
207   *   $adsenseService = new Google_AdSenseService(...);
208   *   $alerts = $adsenseService->alerts;
209   *  </code>
210   */
211  class Google_AccountsAlertsServiceResource extends Google_ServiceResource {
212
213    /**
214     * List the alerts for the specified AdSense account. (alerts.list)
215     *
216     * @param string $accountId Account for which to retrieve the alerts.
217     * @param array $optParams Optional parameters.
218     *
219     * @opt_param string locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
220     * @return Google_Alerts
221     */
222    public function listAccountsAlerts($accountId, $optParams = array()) {
223      $params = array('accountId' => $accountId);
224      $params = array_merge($params, $optParams);
225      $data = $this->__call('list', array($params));
226      if ($this->useObjects()) {
227        return new Google_Alerts($data);
228      } else {
229        return $data;
230      }
231    }
232  }
233  /**
234   * The "customchannels" collection of methods.
235   * Typical usage is:
236   *  <code>
237   *   $adsenseService = new Google_AdSenseService(...);
238   *   $customchannels = $adsenseService->customchannels;
239   *  </code>
240   */
241  class Google_AccountsCustomchannelsServiceResource extends Google_ServiceResource {
242
243    /**
244     * Get the specified custom channel from the specified ad client for the specified account.
245     * (customchannels.get)
246     *
247     * @param string $accountId Account to which the ad client belongs.
248     * @param string $adClientId Ad client which contains the custom channel.
249     * @param string $customChannelId Custom channel to retrieve.
250     * @param array $optParams Optional parameters.
251     * @return Google_CustomChannel
252     */
253    public function get($accountId, $adClientId, $customChannelId, $optParams = array()) {
254      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
255      $params = array_merge($params, $optParams);
256      $data = $this->__call('get', array($params));
257      if ($this->useObjects()) {
258        return new Google_CustomChannel($data);
259      } else {
260        return $data;
261      }
262    }
263    /**
264     * List all custom channels in the specified ad client for the specified account.
265     * (customchannels.list)
266     *
267     * @param string $accountId Account to which the ad client belongs.
268     * @param string $adClientId Ad client for which to list custom channels.
269     * @param array $optParams Optional parameters.
270     *
271     * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
272     * @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.
273     * @return Google_CustomChannels
274     */
275    public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) {
276      $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
277      $params = array_merge($params, $optParams);
278      $data = $this->__call('list', array($params));
279      if ($this->useObjects()) {
280        return new Google_CustomChannels($data);
281      } else {
282        return $data;
283      }
284    }
285  }
286
287  /**
288   * The "adunits" collection of methods.
289   * Typical usage is:
290   *  <code>
291   *   $adsenseService = new Google_AdSenseService(...);
292   *   $adunits = $adsenseService->adunits;
293   *  </code>
294   */
295  class Google_AccountsCustomchannelsAdunitsServiceResource extends Google_ServiceResource {
296
297    /**
298     * List all ad units in the specified custom channel. (adunits.list)
299     *
300     * @param string $accountId Account to which the ad client belongs.
301     * @param string $adClientId Ad client which contains the custom channel.
302     * @param string $customChannelId Custom channel for which to list ad units.
303     * @param array $optParams Optional parameters.
304     *
305     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
306     * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
307     * @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.
308     * @return Google_AdUnits
309     */
310    public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) {
311      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
312      $params = array_merge($params, $optParams);
313      $data = $this->__call('list', array($params));
314      if ($this->useObjects()) {
315        return new Google_AdUnits($data);
316      } else {
317        return $data;
318      }
319    }
320  }
321  /**
322   * The "reports" collection of methods.
323   * Typical usage is:
324   *  <code>
325   *   $adsenseService = new Google_AdSenseService(...);
326   *   $reports = $adsenseService->reports;
327   *  </code>
328   */
329  class Google_AccountsReportsServiceResource extends Google_ServiceResource {
330
331    /**
332     * Generate an AdSense report based on the report request sent in the query parameters. Returns the
333     * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
334     * (reports.generate)
335     *
336     * @param string $accountId Account upon which to report.
337     * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
338     * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
339     * @param array $optParams Optional parameters.
340     *
341     * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
342     * @opt_param string dimension Dimensions to base the report on.
343     * @opt_param string filter Filters to be run on the report.
344     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
345     * @opt_param int maxResults The maximum number of rows of report data to return.
346     * @opt_param string metric Numeric columns to include in the report.
347     * @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.
348     * @opt_param int startIndex Index of the first row of report data to return.
349     * @opt_param bool useTimezoneReporting Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.
350     * @return Google_AdsenseReportsGenerateResponse
351     */
352    public function generate($accountId, $startDate, $endDate, $optParams = array()) {
353      $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
354      $params = array_merge($params, $optParams);
355      $data = $this->__call('generate', array($params));
356      if ($this->useObjects()) {
357        return new Google_AdsenseReportsGenerateResponse($data);
358      } else {
359        return $data;
360      }
361    }
362  }
363
364  /**
365   * The "saved" collection of methods.
366   * Typical usage is:
367   *  <code>
368   *   $adsenseService = new Google_AdSenseService(...);
369   *   $saved = $adsenseService->saved;
370   *  </code>
371   */
372  class Google_AccountsReportsSavedServiceResource extends Google_ServiceResource {
373
374    /**
375     * Generate an AdSense report based on the saved report ID sent in the query parameters.
376     * (saved.generate)
377     *
378     * @param string $accountId Account to which the saved reports belong.
379     * @param string $savedReportId The saved report to retrieve.
380     * @param array $optParams Optional parameters.
381     *
382     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
383     * @opt_param int maxResults The maximum number of rows of report data to return.
384     * @opt_param int startIndex Index of the first row of report data to return.
385     * @return Google_AdsenseReportsGenerateResponse
386     */
387    public function generate($accountId, $savedReportId, $optParams = array()) {
388      $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
389      $params = array_merge($params, $optParams);
390      $data = $this->__call('generate', array($params));
391      if ($this->useObjects()) {
392        return new Google_AdsenseReportsGenerateResponse($data);
393      } else {
394        return $data;
395      }
396    }
397    /**
398     * List all saved reports in the specified AdSense account. (saved.list)
399     *
400     * @param string $accountId Account to which the saved reports belong.
401     * @param array $optParams Optional parameters.
402     *
403     * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
404     * @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.
405     * @return Google_SavedReports
406     */
407    public function listAccountsReportsSaved($accountId, $optParams = array()) {
408      $params = array('accountId' => $accountId);
409      $params = array_merge($params, $optParams);
410      $data = $this->__call('list', array($params));
411      if ($this->useObjects()) {
412        return new Google_SavedReports($data);
413      } else {
414        return $data;
415      }
416    }
417  }
418  /**
419   * The "savedadstyles" collection of methods.
420   * Typical usage is:
421   *  <code>
422   *   $adsenseService = new Google_AdSenseService(...);
423   *   $savedadstyles = $adsenseService->savedadstyles;
424   *  </code>
425   */
426  class Google_AccountsSavedadstylesServiceResource extends Google_ServiceResource {
427
428    /**
429     * List a specific saved ad style for the specified account. (savedadstyles.get)
430     *
431     * @param string $accountId Account for which to get the saved ad style.
432     * @param string $savedAdStyleId Saved ad style to retrieve.
433     * @param array $optParams Optional parameters.
434     * @return Google_SavedAdStyle
435     */
436    public function get($accountId, $savedAdStyleId, $optParams = array()) {
437      $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId);
438      $params = array_merge($params, $optParams);
439      $data = $this->__call('get', array($params));
440      if ($this->useObjects()) {
441        return new Google_SavedAdStyle($data);
442      } else {
443        return $data;
444      }
445    }
446    /**
447     * List all saved ad styles in the specified account. (savedadstyles.list)
448     *
449     * @param string $accountId Account for which to list saved ad styles.
450     * @param array $optParams Optional parameters.
451     *
452     * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
453     * @opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
454     * @return Google_SavedAdStyles
455     */
456    public function listAccountsSavedadstyles($accountId, $optParams = array()) {
457      $params = array('accountId' => $accountId);
458      $params = array_merge($params, $optParams);
459      $data = $this->__call('list', array($params));
460      if ($this->useObjects()) {
461        return new Google_SavedAdStyles($data);
462      } else {
463        return $data;
464      }
465    }
466  }
467  /**
468   * The "urlchannels" collection of methods.
469   * Typical usage is:
470   *  <code>
471   *   $adsenseService = new Google_AdSenseService(...);
472   *   $urlchannels = $adsenseService->urlchannels;
473   *  </code>
474   */
475  class Google_AccountsUrlchannelsServiceResource extends Google_ServiceResource {
476
477    /**
478     * List all URL channels in the specified ad client for the specified account. (urlchannels.list)
479     *
480     * @param string $accountId Account to which the ad client belongs.
481     * @param string $adClientId Ad client for which to list URL channels.
482     * @param array $optParams Optional parameters.
483     *
484     * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
485     * @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.
486     * @return Google_UrlChannels
487     */
488    public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) {
489      $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
490      $params = array_merge($params, $optParams);
491      $data = $this->__call('list', array($params));
492      if ($this->useObjects()) {
493        return new Google_UrlChannels($data);
494      } else {
495        return $data;
496      }
497    }
498  }
499
500  /**
501   * The "adclients" collection of methods.
502   * Typical usage is:
503   *  <code>
504   *   $adsenseService = new Google_AdSenseService(...);
505   *   $adclients = $adsenseService->adclients;
506   *  </code>
507   */
508  class Google_AdclientsServiceResource extends Google_ServiceResource {
509
510    /**
511     * List all ad clients in this AdSense account. (adclients.list)
512     *
513     * @param array $optParams Optional parameters.
514     *
515     * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
516     * @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.
517     * @return Google_AdClients
518     */
519    public function listAdclients($optParams = array()) {
520      $params = array();
521      $params = array_merge($params, $optParams);
522      $data = $this->__call('list', array($params));
523      if ($this->useObjects()) {
524        return new Google_AdClients($data);
525      } else {
526        return $data;
527      }
528    }
529  }
530
531  /**
532   * The "adunits" collection of methods.
533   * Typical usage is:
534   *  <code>
535   *   $adsenseService = new Google_AdSenseService(...);
536   *   $adunits = $adsenseService->adunits;
537   *  </code>
538   */
539  class Google_AdunitsServiceResource extends Google_ServiceResource {
540
541    /**
542     * Gets the specified ad unit in the specified ad client. (adunits.get)
543     *
544     * @param string $adClientId Ad client for which to get the ad unit.
545     * @param string $adUnitId Ad unit to retrieve.
546     * @param array $optParams Optional parameters.
547     * @return Google_AdUnit
548     */
549    public function get($adClientId, $adUnitId, $optParams = array()) {
550      $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
551      $params = array_merge($params, $optParams);
552      $data = $this->__call('get', array($params));
553      if ($this->useObjects()) {
554        return new Google_AdUnit($data);
555      } else {
556        return $data;
557      }
558    }
559    /**
560     * Get ad code for the specified ad unit. (adunits.getAdCode)
561     *
562     * @param string $adClientId Ad client with contains the ad unit.
563     * @param string $adUnitId Ad unit to get the code for.
564     * @param array $optParams Optional parameters.
565     * @return Google_AdCode
566     */
567    public function getAdCode($adClientId, $adUnitId, $optParams = array()) {
568      $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
569      $params = array_merge($params, $optParams);
570      $data = $this->__call('getAdCode', array($params));
571      if ($this->useObjects()) {
572        return new Google_AdCode($data);
573      } else {
574        return $data;
575      }
576    }
577    /**
578     * List all ad units in the specified ad client for this AdSense account. (adunits.list)
579     *
580     * @param string $adClientId Ad client for which to list ad units.
581     * @param array $optParams Optional parameters.
582     *
583     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
584     * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
585     * @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.
586     * @return Google_AdUnits
587     */
588    public function listAdunits($adClientId, $optParams = array()) {
589      $params = array('adClientId' => $adClientId);
590      $params = array_merge($params, $optParams);
591      $data = $this->__call('list', array($params));
592      if ($this->useObjects()) {
593        return new Google_AdUnits($data);
594      } else {
595        return $data;
596      }
597    }
598  }
599
600  /**
601   * The "customchannels" collection of methods.
602   * Typical usage is:
603   *  <code>
604   *   $adsenseService = new Google_AdSenseService(...);
605   *   $customchannels = $adsenseService->customchannels;
606   *  </code>
607   */
608  class Google_AdunitsCustomchannelsServiceResource extends Google_ServiceResource {
609
610    /**
611     * List all custom channels which the specified ad unit belongs to. (customchannels.list)
612     *
613     * @param string $adClientId Ad client which contains the ad unit.
614     * @param string $adUnitId Ad unit for which to list custom channels.
615     * @param array $optParams Optional parameters.
616     *
617     * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
618     * @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.
619     * @return Google_CustomChannels
620     */
621    public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
622      $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
623      $params = array_merge($params, $optParams);
624      $data = $this->__call('list', array($params));
625      if ($this->useObjects()) {
626        return new Google_CustomChannels($data);
627      } else {
628        return $data;
629      }
630    }
631  }
632
633  /**
634   * The "alerts" collection of methods.
635   * Typical usage is:
636   *  <code>
637   *   $adsenseService = new Google_AdSenseService(...);
638   *   $alerts = $adsenseService->alerts;
639   *  </code>
640   */
641  class Google_AlertsServiceResource extends Google_ServiceResource {
642
643    /**
644     * List the alerts for this AdSense account. (alerts.list)
645     *
646     * @param array $optParams Optional parameters.
647     *
648     * @opt_param string locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
649     * @return Google_Alerts
650     */
651    public function listAlerts($optParams = array()) {
652      $params = array();
653      $params = array_merge($params, $optParams);
654      $data = $this->__call('list', array($params));
655      if ($this->useObjects()) {
656        return new Google_Alerts($data);
657      } else {
658        return $data;
659      }
660    }
661  }
662
663  /**
664   * The "customchannels" collection of methods.
665   * Typical usage is:
666   *  <code>
667   *   $adsenseService = new Google_AdSenseService(...);
668   *   $customchannels = $adsenseService->customchannels;
669   *  </code>
670   */
671  class Google_CustomchannelsServiceResource extends Google_ServiceResource {
672
673    /**
674     * Get the specified custom channel from the specified ad client. (customchannels.get)
675     *
676     * @param string $adClientId Ad client which contains the custom channel.
677     * @param string $customChannelId Custom channel to retrieve.
678     * @param array $optParams Optional parameters.
679     * @return Google_CustomChannel
680     */
681    public function get($adClientId, $customChannelId, $optParams = array()) {
682      $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
683      $params = array_merge($params, $optParams);
684      $data = $this->__call('get', array($params));
685      if ($this->useObjects()) {
686        return new Google_CustomChannel($data);
687      } else {
688        return $data;
689      }
690    }
691    /**
692     * List all custom channels in the specified ad client for this AdSense account.
693     * (customchannels.list)
694     *
695     * @param string $adClientId Ad client for which to list custom channels.
696     * @param array $optParams Optional parameters.
697     *
698     * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
699     * @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.
700     * @return Google_CustomChannels
701     */
702    public function listCustomchannels($adClientId, $optParams = array()) {
703      $params = array('adClientId' => $adClientId);
704      $params = array_merge($params, $optParams);
705      $data = $this->__call('list', array($params));
706      if ($this->useObjects()) {
707        return new Google_CustomChannels($data);
708      } else {
709        return $data;
710      }
711    }
712  }
713
714  /**
715   * The "adunits" collection of methods.
716   * Typical usage is:
717   *  <code>
718   *   $adsenseService = new Google_AdSenseService(...);
719   *   $adunits = $adsenseService->adunits;
720   *  </code>
721   */
722  class Google_CustomchannelsAdunitsServiceResource extends Google_ServiceResource {
723
724    /**
725     * List all ad units in the specified custom channel. (adunits.list)
726     *
727     * @param string $adClientId Ad client which contains the custom channel.
728     * @param string $customChannelId Custom channel for which to list ad units.
729     * @param array $optParams Optional parameters.
730     *
731     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
732     * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
733     * @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.
734     * @return Google_AdUnits
735     */
736    public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
737      $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
738      $params = array_merge($params, $optParams);
739      $data = $this->__call('list', array($params));
740      if ($this->useObjects()) {
741        return new Google_AdUnits($data);
742      } else {
743        return $data;
744      }
745    }
746  }
747
748  /**
749   * The "metadata" collection of methods.
750   * Typical usage is:
751   *  <code>
752   *   $adsenseService = new Google_AdSenseService(...);
753   *   $metadata = $adsenseService->metadata;
754   *  </code>
755   */
756  class Google_MetadataServiceResource extends Google_ServiceResource {
757
758  }
759
760  /**
761   * The "dimensions" collection of methods.
762   * Typical usage is:
763   *  <code>
764   *   $adsenseService = new Google_AdSenseService(...);
765   *   $dimensions = $adsenseService->dimensions;
766   *  </code>
767   */
768  class Google_MetadataDimensionsServiceResource extends Google_ServiceResource {
769
770    /**
771     * List the metadata for the dimensions available to this AdSense account. (dimensions.list)
772     *
773     * @param array $optParams Optional parameters.
774     * @return Google_Metadata
775     */
776    public function listMetadataDimensions($optParams = array()) {
777      $params = array();
778      $params = array_merge($params, $optParams);
779      $data = $this->__call('list', array($params));
780      if ($this->useObjects()) {
781        return new Google_Metadata($data);
782      } else {
783        return $data;
784      }
785    }
786  }
787  /**
788   * The "metrics" collection of methods.
789   * Typical usage is:
790   *  <code>
791   *   $adsenseService = new Google_AdSenseService(...);
792   *   $metrics = $adsenseService->metrics;
793   *  </code>
794   */
795  class Google_MetadataMetricsServiceResource extends Google_ServiceResource {
796
797    /**
798     * List the metadata for the metrics available to this AdSense account. (metrics.list)
799     *
800     * @param array $optParams Optional parameters.
801     * @return Google_Metadata
802     */
803    public function listMetadataMetrics($optParams = array()) {
804      $params = array();
805      $params = array_merge($params, $optParams);
806      $data = $this->__call('list', array($params));
807      if ($this->useObjects()) {
808        return new Google_Metadata($data);
809      } else {
810        return $data;
811      }
812    }
813  }
814
815  /**
816   * The "reports" collection of methods.
817   * Typical usage is:
818   *  <code>
819   *   $adsenseService = new Google_AdSenseService(...);
820   *   $reports = $adsenseService->reports;
821   *  </code>
822   */
823  class Google_ReportsServiceResource extends Google_ServiceResource {
824
825    /**
826     * Generate an AdSense report based on the report request sent in the query parameters. Returns the
827     * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
828     * (reports.generate)
829     *
830     * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
831     * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
832     * @param array $optParams Optional parameters.
833     *
834     * @opt_param string accountId Accounts upon which to report.
835     * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
836     * @opt_param string dimension Dimensions to base the report on.
837     * @opt_param string filter Filters to be run on the report.
838     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
839     * @opt_param int maxResults The maximum number of rows of report data to return.
840     * @opt_param string metric Numeric columns to include in the report.
841     * @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.
842     * @opt_param int startIndex Index of the first row of report data to return.
843     * @opt_param bool useTimezoneReporting Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.
844     * @return Google_AdsenseReportsGenerateResponse
845     */
846    public function generate($startDate, $endDate, $optParams = array()) {
847      $params = array('startDate' => $startDate, 'endDate' => $endDate);
848      $params = array_merge($params, $optParams);
849      $data = $this->__call('generate', array($params));
850      if ($this->useObjects()) {
851        return new Google_AdsenseReportsGenerateResponse($data);
852      } else {
853        return $data;
854      }
855    }
856  }
857
858  /**
859   * The "saved" collection of methods.
860   * Typical usage is:
861   *  <code>
862   *   $adsenseService = new Google_AdSenseService(...);
863   *   $saved = $adsenseService->saved;
864   *  </code>
865   */
866  class Google_ReportsSavedServiceResource extends Google_ServiceResource {
867
868    /**
869     * Generate an AdSense report based on the saved report ID sent in the query parameters.
870     * (saved.generate)
871     *
872     * @param string $savedReportId The saved report to retrieve.
873     * @param array $optParams Optional parameters.
874     *
875     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
876     * @opt_param int maxResults The maximum number of rows of report data to return.
877     * @opt_param int startIndex Index of the first row of report data to return.
878     * @return Google_AdsenseReportsGenerateResponse
879     */
880    public function generate($savedReportId, $optParams = array()) {
881      $params = array('savedReportId' => $savedReportId);
882      $params = array_merge($params, $optParams);
883      $data = $this->__call('generate', array($params));
884      if ($this->useObjects()) {
885        return new Google_AdsenseReportsGenerateResponse($data);
886      } else {
887        return $data;
888      }
889    }
890    /**
891     * List all saved reports in this AdSense account. (saved.list)
892     *
893     * @param array $optParams Optional parameters.
894     *
895     * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
896     * @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.
897     * @return Google_SavedReports
898     */
899    public function listReportsSaved($optParams = array()) {
900      $params = array();
901      $params = array_merge($params, $optParams);
902      $data = $this->__call('list', array($params));
903      if ($this->useObjects()) {
904        return new Google_SavedReports($data);
905      } else {
906        return $data;
907      }
908    }
909  }
910
911  /**
912   * The "savedadstyles" collection of methods.
913   * Typical usage is:
914   *  <code>
915   *   $adsenseService = new Google_AdSenseService(...);
916   *   $savedadstyles = $adsenseService->savedadstyles;
917   *  </code>
918   */
919  class Google_SavedadstylesServiceResource extends Google_ServiceResource {
920
921    /**
922     * Get a specific saved ad style from the user's account. (savedadstyles.get)
923     *
924     * @param string $savedAdStyleId Saved ad style to retrieve.
925     * @param array $optParams Optional parameters.
926     * @return Google_SavedAdStyle
927     */
928    public function get($savedAdStyleId, $optParams = array()) {
929      $params = array('savedAdStyleId' => $savedAdStyleId);
930      $params = array_merge($params, $optParams);
931      $data = $this->__call('get', array($params));
932      if ($this->useObjects()) {
933        return new Google_SavedAdStyle($data);
934      } else {
935        return $data;
936      }
937    }
938    /**
939     * List all saved ad styles in the user's account. (savedadstyles.list)
940     *
941     * @param array $optParams Optional parameters.
942     *
943     * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
944     * @opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
945     * @return Google_SavedAdStyles
946     */
947    public function listSavedadstyles($optParams = array()) {
948      $params = array();
949      $params = array_merge($params, $optParams);
950      $data = $this->__call('list', array($params));
951      if ($this->useObjects()) {
952        return new Google_SavedAdStyles($data);
953      } else {
954        return $data;
955      }
956    }
957  }
958
959  /**
960   * The "urlchannels" collection of methods.
961   * Typical usage is:
962   *  <code>
963   *   $adsenseService = new Google_AdSenseService(...);
964   *   $urlchannels = $adsenseService->urlchannels;
965   *  </code>
966   */
967  class Google_UrlchannelsServiceResource extends Google_ServiceResource {
968
969    /**
970     * List all URL channels in the specified ad client for this AdSense account. (urlchannels.list)
971     *
972     * @param string $adClientId Ad client for which to list URL channels.
973     * @param array $optParams Optional parameters.
974     *
975     * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
976     * @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.
977     * @return Google_UrlChannels
978     */
979    public function listUrlchannels($adClientId, $optParams = array()) {
980      $params = array('adClientId' => $adClientId);
981      $params = array_merge($params, $optParams);
982      $data = $this->__call('list', array($params));
983      if ($this->useObjects()) {
984        return new Google_UrlChannels($data);
985      } else {
986        return $data;
987      }
988    }
989  }
990
991/**
992 * Service definition for Google_AdSense (v1.3).
993 *
994 * <p>
995 * Gives AdSense publishers access to their inventory and the ability to generate reports
996 * </p>
997 *
998 * <p>
999 * For more information about this service, see the
1000 * <a href="https://developers.google.com/adsense/management/" target="_blank">API Documentation</a>
1001 * </p>
1002 *
1003 * @author Google, Inc.
1004 */
1005class Google_AdSenseService extends Google_Service {
1006  public $accounts;
1007  public $accounts_adclients;
1008  public $accounts_adunits;
1009  public $accounts_adunits_customchannels;
1010  public $accounts_alerts;
1011  public $accounts_customchannels;
1012  public $accounts_customchannels_adunits;
1013  public $accounts_reports;
1014  public $accounts_reports_saved;
1015  public $accounts_savedadstyles;
1016  public $accounts_urlchannels;
1017  public $adclients;
1018  public $adunits;
1019  public $adunits_customchannels;
1020  public $alerts;
1021  public $customchannels;
1022  public $customchannels_adunits;
1023  public $metadata_dimensions;
1024  public $metadata_metrics;
1025  public $reports;
1026  public $reports_saved;
1027  public $savedadstyles;
1028  public $urlchannels;
1029  /**
1030   * Constructs the internal representation of the AdSense service.
1031   *
1032   * @param Google_Client $client
1033   */
1034  public function __construct(Google_Client $client) {
1035    $this->servicePath = 'adsense/v1.3/';
1036    $this->version = 'v1.3';
1037    $this->serviceName = 'adsense';
1038
1039    $client->addService($this->serviceName, $this->version);
1040    $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"get": {"id": "adsense.accounts.get", "path": "accounts/{accountId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "tree": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.list", "path": "accounts", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1041    $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"id": "adsense.accounts.adclients.list", "path": "accounts/{accountId}/adclients", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1042    $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"get": {"id": "adsense.accounts.adunits.get", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "getAdCode": {"id": "adsense.accounts.adunits.getAdCode", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdCode"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.adunits.list", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1043    $this->accounts_adunits_customchannels = new Google_AccountsAdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"id": "adsense.accounts.adunits.customchannels.list", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1044    $this->accounts_alerts = new Google_AccountsAlertsServiceResource($this, $this->serviceName, 'alerts', json_decode('{"methods": {"list": {"id": "adsense.accounts.alerts.list", "path": "accounts/{accountId}/alerts", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}}, "response": {"$ref": "Alerts"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1045    $this->accounts_customchannels = new Google_AccountsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"get": {"id": "adsense.accounts.customchannels.get", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.customchannels.list", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1046    $this->accounts_customchannels_adunits = new Google_AccountsCustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"id": "adsense.accounts.customchannels.adunits.list", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1047    $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsense.accounts.reports.generate", "path": "accounts/{accountId}/reports", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "currency": {"type": "string", "location": "query"}, "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": "int32", "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": "int32", "minimum": "0", "maximum": "5000", "location": "query"}, "useTimezoneReporting": {"type": "boolean", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "supportsMediaDownload": true}}}', true));
1048    $this->accounts_reports_saved = new Google_AccountsReportsSavedServiceResource($this, $this->serviceName, 'saved', json_decode('{"methods": {"generate": {"id": "adsense.accounts.reports.saved.generate", "path": "accounts/{accountId}/reports/{savedReportId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "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": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.reports.saved.list", "path": "accounts/{accountId}/reports/saved", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "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/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1049    $this->accounts_savedadstyles = new Google_AccountsSavedadstylesServiceResource($this, $this->serviceName, 'savedadstyles', json_decode('{"methods": {"get": {"id": "adsense.accounts.savedadstyles.get", "path": "accounts/{accountId}/savedadstyles/{savedAdStyleId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "savedAdStyleId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SavedAdStyle"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.savedadstyles.list", "path": "accounts/{accountId}/savedadstyles", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedAdStyles"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1050    $this->accounts_urlchannels = new Google_AccountsUrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"id": "adsense.accounts.urlchannels.list", "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1051    $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"id": "adsense.adclients.list", "path": "adclients", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1052    $this->adunits = new Google_AdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"get": {"id": "adsense.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/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "getAdCode": {"id": "adsense.adunits.getAdCode", "path": "adclients/{adClientId}/adunits/{adUnitId}/adcode", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdCode"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.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": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1053    $this->adunits_customchannels = new Google_AdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"id": "adsense.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": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1054    $this->alerts = new Google_AlertsServiceResource($this, $this->serviceName, 'alerts', json_decode('{"methods": {"list": {"id": "adsense.alerts.list", "path": "alerts", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}}, "response": {"$ref": "Alerts"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1055    $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"get": {"id": "adsense.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/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.customchannels.list", "path": "adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1056    $this->customchannels_adunits = new Google_CustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"id": "adsense.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": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1057    $this->metadata_dimensions = new Google_MetadataDimensionsServiceResource($this, $this->serviceName, 'dimensions', json_decode('{"methods": {"list": {"id": "adsense.metadata.dimensions.list", "path": "metadata/dimensions", "httpMethod": "GET", "response": {"$ref": "Metadata"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1058    $this->metadata_metrics = new Google_MetadataMetricsServiceResource($this, $this->serviceName, 'metrics', json_decode('{"methods": {"list": {"id": "adsense.metadata.metrics.list", "path": "metadata/metrics", "httpMethod": "GET", "response": {"$ref": "Metadata"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1059    $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsense.reports.generate", "path": "reports", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "repeated": true, "location": "query"}, "currency": {"type": "string", "location": "query"}, "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": "int32", "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": "int32", "minimum": "0", "maximum": "5000", "location": "query"}, "useTimezoneReporting": {"type": "boolean", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "supportsMediaDownload": true}}}', true));
1060    $this->reports_saved = new Google_ReportsSavedServiceResource($this, $this->serviceName, 'saved', json_decode('{"methods": {"generate": {"id": "adsense.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": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.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/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1061    $this->savedadstyles = new Google_SavedadstylesServiceResource($this, $this->serviceName, 'savedadstyles', json_decode('{"methods": {"get": {"id": "adsense.savedadstyles.get", "path": "savedadstyles/{savedAdStyleId}", "httpMethod": "GET", "parameters": {"savedAdStyleId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SavedAdStyle"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.savedadstyles.list", "path": "savedadstyles", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedAdStyles"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1062    $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"id": "adsense.urlchannels.list", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1063
1064  }
1065}
1066
1067
1068
1069class Google_Account extends Google_Model {
1070  public $id;
1071  public $kind;
1072  public $name;
1073  public $premium;
1074  protected $__subAccountsType = 'Google_Account';
1075  protected $__subAccountsDataType = 'array';
1076  public $subAccounts;
1077  public function setId( $id) {
1078    $this->id = $id;
1079  }
1080  public function getId() {
1081    return $this->id;
1082  }
1083  public function setKind( $kind) {
1084    $this->kind = $kind;
1085  }
1086  public function getKind() {
1087    return $this->kind;
1088  }
1089  public function setName( $name) {
1090    $this->name = $name;
1091  }
1092  public function getName() {
1093    return $this->name;
1094  }
1095  public function setPremium( $premium) {
1096    $this->premium = $premium;
1097  }
1098  public function getPremium() {
1099    return $this->premium;
1100  }
1101  public function setSubAccounts(/* array(Google_Account) */ $subAccounts) {
1102    $this->assertIsArray($subAccounts, 'Google_Account', __METHOD__);
1103    $this->subAccounts = $subAccounts;
1104  }
1105  public function getSubAccounts() {
1106    return $this->subAccounts;
1107  }
1108}
1109
1110class Google_Accounts extends Google_Model {
1111  public $etag;
1112  protected $__itemsType = 'Google_Account';
1113  protected $__itemsDataType = 'array';
1114  public $items;
1115  public $kind;
1116  public $nextPageToken;
1117  public function setEtag( $etag) {
1118    $this->etag = $etag;
1119  }
1120  public function getEtag() {
1121    return $this->etag;
1122  }
1123  public function setItems(/* array(Google_Account) */ $items) {
1124    $this->assertIsArray($items, 'Google_Account', __METHOD__);
1125    $this->items = $items;
1126  }
1127  public function getItems() {
1128    return $this->items;
1129  }
1130  public function setKind( $kind) {
1131    $this->kind = $kind;
1132  }
1133  public function getKind() {
1134    return $this->kind;
1135  }
1136  public function setNextPageToken( $nextPageToken) {
1137    $this->nextPageToken = $nextPageToken;
1138  }
1139  public function getNextPageToken() {
1140    return $this->nextPageToken;
1141  }
1142}
1143
1144class Google_AdClient extends Google_Model {
1145  public $arcOptIn;
1146  public $id;
1147  public $kind;
1148  public $productCode;
1149  public $supportsReporting;
1150  public function setArcOptIn( $arcOptIn) {
1151    $this->arcOptIn = $arcOptIn;
1152  }
1153  public function getArcOptIn() {
1154    return $this->arcOptIn;
1155  }
1156  public function setId( $id) {
1157    $this->id = $id;
1158  }
1159  public function getId() {
1160    return $this->id;
1161  }
1162  public function setKind( $kind) {
1163    $this->kind = $kind;
1164  }
1165  public function getKind() {
1166    return $this->kind;
1167  }
1168  public function setProductCode( $productCode) {
1169    $this->productCode = $productCode;
1170  }
1171  public function getProductCode() {
1172    return $this->productCode;
1173  }
1174  public function setSupportsReporting( $supportsReporting) {
1175    $this->supportsReporting = $supportsReporting;
1176  }
1177  public function getSupportsReporting() {
1178    return $this->supportsReporting;
1179  }
1180}
1181
1182class Google_AdClients extends Google_Model {
1183  public $etag;
1184  protected $__itemsType = 'Google_AdClient';
1185  protected $__itemsDataType = 'array';
1186  public $items;
1187  public $kind;
1188  public $nextPageToken;
1189  public function setEtag( $etag) {
1190    $this->etag = $etag;
1191  }
1192  public function getEtag() {
1193    return $this->etag;
1194  }
1195  public function setItems(/* array(Google_AdClient) */ $items) {
1196    $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
1197    $this->items = $items;
1198  }
1199  public function getItems() {
1200    return $this->items;
1201  }
1202  public function setKind( $kind) {
1203    $this->kind = $kind;
1204  }
1205  public function getKind() {
1206    return $this->kind;
1207  }
1208  public function setNextPageToken( $nextPageToken) {
1209    $this->nextPageToken = $nextPageToken;
1210  }
1211  public function getNextPageToken() {
1212    return $this->nextPageToken;
1213  }
1214}
1215
1216class Google_AdCode extends Google_Model {
1217  public $adCode;
1218  public $kind;
1219  public function setAdCode( $adCode) {
1220    $this->adCode = $adCode;
1221  }
1222  public function getAdCode() {
1223    return $this->adCode;
1224  }
1225  public function setKind( $kind) {
1226    $this->kind = $kind;
1227  }
1228  public function getKind() {
1229    return $this->kind;
1230  }
1231}
1232
1233class Google_AdStyle extends Google_Model {
1234  protected $__colorsType = 'Google_AdStyleColors';
1235  protected $__colorsDataType = '';
1236  public $colors;
1237  public $corners;
1238  protected $__fontType = 'Google_AdStyleFont';
1239  protected $__fontDataType = '';
1240  public $font;
1241  public $kind;
1242  public function setColors(Google_AdStyleColors $colors) {
1243    $this->colors = $colors;
1244  }
1245  public function getColors() {
1246    return $this->colors;
1247  }
1248  public function setCorners( $corners) {
1249    $this->corners = $corners;
1250  }
1251  public function getCorners() {
1252    return $this->corners;
1253  }
1254  public function setFont(Google_AdStyleFont $font) {
1255    $this->font = $font;
1256  }
1257  public function getFont() {
1258    return $this->font;
1259  }
1260  public function setKind( $kind) {
1261    $this->kind = $kind;
1262  }
1263  public function getKind() {
1264    return $this->kind;
1265  }
1266}
1267
1268class Google_AdStyleColors extends Google_Model {
1269  public $background;
1270  public $border;
1271  public $text;
1272  public $title;
1273  public $url;
1274  public function setBackground( $background) {
1275    $this->background = $background;
1276  }
1277  public function getBackground() {
1278    return $this->background;
1279  }
1280  public function setBorder( $border) {
1281    $this->border = $border;
1282  }
1283  public function getBorder() {
1284    return $this->border;
1285  }
1286  public function setText( $text) {
1287    $this->text = $text;
1288  }
1289  public function getText() {
1290    return $this->text;
1291  }
1292  public function setTitle( $title) {
1293    $this->title = $title;
1294  }
1295  public function getTitle() {
1296    return $this->title;
1297  }
1298  public function setUrl( $url) {
1299    $this->url = $url;
1300  }
1301  public function getUrl() {
1302    return $this->url;
1303  }
1304}
1305
1306class Google_AdStyleFont extends Google_Model {
1307  public $family;
1308  public $size;
1309  public function setFamily( $family) {
1310    $this->family = $family;
1311  }
1312  public function getFamily() {
1313    return $this->family;
1314  }
1315  public function setSize( $size) {
1316    $this->size = $size;
1317  }
1318  public function getSize() {
1319    return $this->size;
1320  }
1321}
1322
1323class Google_AdUnit extends Google_Model {
1324  public $code;
1325  protected $__contentAdsSettingsType = 'Google_AdUnitContentAdsSettings';
1326  protected $__contentAdsSettingsDataType = '';
1327  public $contentAdsSettings;
1328  protected $__customStyleType = 'Google_AdStyle';
1329  protected $__customStyleDataType = '';
1330  public $customStyle;
1331  protected $__feedAdsSettingsType = 'Google_AdUnitFeedAdsSettings';
1332  protected $__feedAdsSettingsDataType = '';
1333  public $feedAdsSettings;
1334  public $id;
1335  public $kind;
1336  protected $__mobileContentAdsSettingsType = 'Google_AdUnitMobileContentAdsSettings';
1337  protected $__mobileContentAdsSettingsDataType = '';
1338  public $mobileContentAdsSettings;
1339  public $name;
1340  public $savedStyleId;
1341  public $status;
1342  public function setCode( $code) {
1343    $this->code = $code;
1344  }
1345  public function getCode() {
1346    return $this->code;
1347  }
1348  public function setContentAdsSettings(Google_AdUnitContentAdsSettings $contentAdsSettings) {
1349    $this->contentAdsSettings = $contentAdsSettings;
1350  }
1351  public function getContentAdsSettings() {
1352    return $this->contentAdsSettings;
1353  }
1354  public function setCustomStyle(Google_AdStyle $customStyle) {
1355    $this->customStyle = $customStyle;
1356  }
1357  public function getCustomStyle() {
1358    return $this->customStyle;
1359  }
1360  public function setFeedAdsSettings(Google_AdUnitFeedAdsSettings $feedAdsSettings) {
1361    $this->feedAdsSettings = $feedAdsSettings;
1362  }
1363  public function getFeedAdsSettings() {
1364    return $this->feedAdsSettings;
1365  }
1366  public function setId( $id) {
1367    $this->id = $id;
1368  }
1369  public function getId() {
1370    return $this->id;
1371  }
1372  public function setKind( $kind) {
1373    $this->kind = $kind;
1374  }
1375  public function getKind() {
1376    return $this->kind;
1377  }
1378  public function setMobileContentAdsSettings(Google_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) {
1379    $this->mobileContentAdsSettings = $mobileContentAdsSettings;
1380  }
1381  public function getMobileContentAdsSettings() {
1382    return $this->mobileContentAdsSettings;
1383  }
1384  public function setName( $name) {
1385    $this->name = $name;
1386  }
1387  public function getName() {
1388    return $this->name;
1389  }
1390  public function setSavedStyleId( $savedStyleId) {
1391    $this->savedStyleId = $savedStyleId;
1392  }
1393  public function getSavedStyleId() {
1394    return $this->savedStyleId;
1395  }
1396  public function setStatus( $status) {
1397    $this->status = $status;
1398  }
1399  public function getStatus() {
1400    return $this->status;
1401  }
1402}
1403
1404class Google_AdUnitContentAdsSettings extends Google_Model {
1405  protected $__backupOptionType = 'Google_AdUnitContentAdsSettingsBackupOption';
1406  protected $__backupOptionDataType = '';
1407  public $backupOption;
1408  public $size;
1409  public $type;
1410  public function setBackupOption(Google_AdUnitContentAdsSettingsBackupOption $backupOption) {
1411    $this->backupOption = $backupOption;
1412  }
1413  public function getBackupOption() {
1414    return $this->backupOption;
1415  }
1416  public function setSize( $size) {
1417    $this->size = $size;
1418  }
1419  public function getSize() {
1420    return $this->size;
1421  }
1422  public function setType( $type) {
1423    $this->type = $type;
1424  }
1425  public function getType() {
1426    return $this->type;
1427  }
1428}
1429
1430class Google_AdUnitContentAdsSettingsBackupOption extends Google_Model {
1431  public $color;
1432  public $type;
1433  public $url;
1434  public function setColor( $color) {
1435    $this->color = $color;
1436  }
1437  public function getColor() {
1438    return $this->color;
1439  }
1440  public function setType( $type) {
1441    $this->type = $type;
1442  }
1443  public function getType() {
1444    return $this->type;
1445  }
1446  public function setUrl( $url) {
1447    $this->url = $url;
1448  }
1449  public function getUrl() {
1450    return $this->url;
1451  }
1452}
1453
1454class Google_AdUnitFeedAdsSettings extends Google_Model {
1455  public $adPosition;
1456  public $frequency;
1457  public $minimumWordCount;
1458  public $type;
1459  public function setAdPosition( $adPosition) {
1460    $this->adPosition = $adPosition;
1461  }
1462  public function getAdPosition() {
1463    return $this->adPosition;
1464  }
1465  public function setFrequency( $frequency) {
1466    $this->frequency = $frequency;
1467  }
1468  public function getFrequency() {
1469    return $this->frequency;
1470  }
1471  public function setMinimumWordCount( $minimumWordCount) {
1472    $this->minimumWordCount = $minimumWordCount;
1473  }
1474  public function getMinimumWordCount() {
1475    return $this->minimumWordCount;
1476  }
1477  public function setType( $type) {
1478    $this->type = $type;
1479  }
1480  public function getType() {
1481    return $this->type;
1482  }
1483}
1484
1485class Google_AdUnitMobileContentAdsSettings extends Google_Model {
1486  public $markupLanguage;
1487  public $scriptingLanguage;
1488  public $size;
1489  public $type;
1490  public function setMarkupLanguage( $markupLanguage) {
1491    $this->markupLanguage = $markupLanguage;
1492  }
1493  public function getMarkupLanguage() {
1494    return $this->markupLanguage;
1495  }
1496  public function setScriptingLanguage( $scriptingLanguage) {
1497    $this->scriptingLanguage = $scriptingLanguage;
1498  }
1499  public function getScriptingLanguage() {
1500    return $this->scriptingLanguage;
1501  }
1502  public function setSize( $size) {
1503    $this->size = $size;
1504  }
1505  public function getSize() {
1506    return $this->size;
1507  }
1508  public function setType( $type) {
1509    $this->type = $type;
1510  }
1511  public function getType() {
1512    return $this->type;
1513  }
1514}
1515
1516class Google_AdUnits extends Google_Model {
1517  public $etag;
1518  protected $__itemsType = 'Google_AdUnit';
1519  protected $__itemsDataType = 'array';
1520  public $items;
1521  public $kind;
1522  public $nextPageToken;
1523  public function setEtag( $etag) {
1524    $this->etag = $etag;
1525  }
1526  public function getEtag() {
1527    return $this->etag;
1528  }
1529  public function setItems(/* array(Google_AdUnit) */ $items) {
1530    $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
1531    $this->items = $items;
1532  }
1533  public function getItems() {
1534    return $this->items;
1535  }
1536  public function setKind( $kind) {
1537    $this->kind = $kind;
1538  }
1539  public function getKind() {
1540    return $this->kind;
1541  }
1542  public function setNextPageToken( $nextPageToken) {
1543    $this->nextPageToken = $nextPageToken;
1544  }
1545  public function getNextPageToken() {
1546    return $this->nextPageToken;
1547  }
1548}
1549
1550class Google_AdsenseReportsGenerateResponse extends Google_Model {
1551  public $averages;
1552  protected $__headersType = 'Google_AdsenseReportsGenerateResponseHeaders';
1553  protected $__headersDataType = 'array';
1554  public $headers;
1555  public $kind;
1556  public $rows;
1557  public $totalMatchedRows;
1558  public $totals;
1559  public $warnings;
1560  public function setAverages(/* array(Google_string) */ $averages) {
1561    $this->assertIsArray($averages, 'Google_string', __METHOD__);
1562    $this->averages = $averages;
1563  }
1564  public function getAverages() {
1565    return $this->averages;
1566  }
1567  public function setHeaders(/* array(Google_AdsenseReportsGenerateResponseHeaders) */ $headers) {
1568    $this->assertIsArray($headers, 'Google_AdsenseReportsGenerateResponseHeaders', __METHOD__);
1569    $this->headers = $headers;
1570  }
1571  public function getHeaders() {
1572    return $this->headers;
1573  }
1574  public function setKind( $kind) {
1575    $this->kind = $kind;
1576  }
1577  public function getKind() {
1578    return $this->kind;
1579  }
1580  public function setRows(/* array(Google_string) */ $rows) {
1581    $this->assertIsArray($rows, 'Google_string', __METHOD__);
1582    $this->rows = $rows;
1583  }
1584  public function getRows() {
1585    return $this->rows;
1586  }
1587  public function setTotalMatchedRows( $totalMatchedRows) {
1588    $this->totalMatchedRows = $totalMatchedRows;
1589  }
1590  public function getTotalMatchedRows() {
1591    return $this->totalMatchedRows;
1592  }
1593  public function setTotals(/* array(Google_string) */ $totals) {
1594    $this->assertIsArray($totals, 'Google_string', __METHOD__);
1595    $this->totals = $totals;
1596  }
1597  public function getTotals() {
1598    return $this->totals;
1599  }
1600  public function setWarnings(/* array(Google_string) */ $warnings) {
1601    $this->assertIsArray($warnings, 'Google_string', __METHOD__);
1602    $this->warnings = $warnings;
1603  }
1604  public function getWarnings() {
1605    return $this->warnings;
1606  }
1607}
1608
1609class Google_AdsenseReportsGenerateResponseHeaders extends Google_Model {
1610  public $currency;
1611  public $name;
1612  public $type;
1613  public function setCurrency( $currency) {
1614    $this->currency = $currency;
1615  }
1616  public function getCurrency() {
1617    return $this->currency;
1618  }
1619  public function setName( $name) {
1620    $this->name = $name;
1621  }
1622  public function getName() {
1623    return $this->name;
1624  }
1625  public function setType( $type) {
1626    $this->type = $type;
1627  }
1628  public function getType() {
1629    return $this->type;
1630  }
1631}
1632
1633class Google_Alert extends Google_Model {
1634  public $id;
1635  public $kind;
1636  public $message;
1637  public $severity;
1638  public $type;
1639  public function setId( $id) {
1640    $this->id = $id;
1641  }
1642  public function getId() {
1643    return $this->id;
1644  }
1645  public function setKind( $kind) {
1646    $this->kind = $kind;
1647  }
1648  public function getKind() {
1649    return $this->kind;
1650  }
1651  public function setMessage( $message) {
1652    $this->message = $message;
1653  }
1654  public function getMessage() {
1655    return $this->message;
1656  }
1657  public function setSeverity( $severity) {
1658    $this->severity = $severity;
1659  }
1660  public function getSeverity() {
1661    return $this->severity;
1662  }
1663  public function setType( $type) {
1664    $this->type = $type;
1665  }
1666  public function getType() {
1667    return $this->type;
1668  }
1669}
1670
1671class Google_Alerts extends Google_Model {
1672  protected $__itemsType = 'Google_Alert';
1673  protected $__itemsDataType = 'array';
1674  public $items;
1675  public $kind;
1676  public function setItems(/* array(Google_Alert) */ $items) {
1677    $this->assertIsArray($items, 'Google_Alert', __METHOD__);
1678    $this->items = $items;
1679  }
1680  public function getItems() {
1681    return $this->items;
1682  }
1683  public function setKind( $kind) {
1684    $this->kind = $kind;
1685  }
1686  public function getKind() {
1687    return $this->kind;
1688  }
1689}
1690
1691class Google_CustomChannel extends Google_Model {
1692  public $code;
1693  public $id;
1694  public $kind;
1695  public $name;
1696  protected $__targetingInfoType = 'Google_CustomChannelTargetingInfo';
1697  protected $__targetingInfoDataType = '';
1698  public $targetingInfo;
1699  public function setCode( $code) {
1700    $this->code = $code;
1701  }
1702  public function getCode() {
1703    return $this->code;
1704  }
1705  public function setId( $id) {
1706    $this->id = $id;
1707  }
1708  public function getId() {
1709    return $this->id;
1710  }
1711  public function setKind( $kind) {
1712    $this->kind = $kind;
1713  }
1714  public function getKind() {
1715    return $this->kind;
1716  }
1717  public function setName( $name) {
1718    $this->name = $name;
1719  }
1720  public function getName() {
1721    return $this->name;
1722  }
1723  public function setTargetingInfo(Google_CustomChannelTargetingInfo $targetingInfo) {
1724    $this->targetingInfo = $targetingInfo;
1725  }
1726  public function getTargetingInfo() {
1727    return $this->targetingInfo;
1728  }
1729}
1730
1731class Google_CustomChannelTargetingInfo extends Google_Model {
1732  public $adsAppearOn;
1733  public $description;
1734  public $location;
1735  public $siteLanguage;
1736  public function setAdsAppearOn( $adsAppearOn) {
1737    $this->adsAppearOn = $adsAppearOn;
1738  }
1739  public function getAdsAppearOn() {
1740    return $this->adsAppearOn;
1741  }
1742  public function setDescription( $description) {
1743    $this->description = $description;
1744  }
1745  public function getDescription() {
1746    return $this->description;
1747  }
1748  public function setLocation( $location) {
1749    $this->location = $location;
1750  }
1751  public function getLocation() {
1752    return $this->location;
1753  }
1754  public function setSiteLanguage( $siteLanguage) {
1755    $this->siteLanguage = $siteLanguage;
1756  }
1757  public function getSiteLanguage() {
1758    return $this->siteLanguage;
1759  }
1760}
1761
1762class Google_CustomChannels extends Google_Model {
1763  public $etag;
1764  protected $__itemsType = 'Google_CustomChannel';
1765  protected $__itemsDataType = 'array';
1766  public $items;
1767  public $kind;
1768  public $nextPageToken;
1769  public function setEtag( $etag) {
1770    $this->etag = $etag;
1771  }
1772  public function getEtag() {
1773    return $this->etag;
1774  }
1775  public function setItems(/* array(Google_CustomChannel) */ $items) {
1776    $this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
1777    $this->items = $items;
1778  }
1779  public function getItems() {
1780    return $this->items;
1781  }
1782  public function setKind( $kind) {
1783    $this->kind = $kind;
1784  }
1785  public function getKind() {
1786    return $this->kind;
1787  }
1788  public function setNextPageToken( $nextPageToken) {
1789    $this->nextPageToken = $nextPageToken;
1790  }
1791  public function getNextPageToken() {
1792    return $this->nextPageToken;
1793  }
1794}
1795
1796class Google_Metadata extends Google_Model {
1797  protected $__itemsType = 'Google_ReportingMetadataEntry';
1798  protected $__itemsDataType = 'array';
1799  public $items;
1800  public $kind;
1801  public function setItems(/* array(Google_ReportingMetadataEntry) */ $items) {
1802    $this->assertIsArray($items, 'Google_ReportingMetadataEntry', __METHOD__);
1803    $this->items = $items;
1804  }
1805  public function getItems() {
1806    return $this->items;
1807  }
1808  public function setKind( $kind) {
1809    $this->kind = $kind;
1810  }
1811  public function getKind() {
1812    return $this->kind;
1813  }
1814}
1815
1816class Google_ReportingMetadataEntry extends Google_Model {
1817  public $compatibleDimensions;
1818  public $compatibleMetrics;
1819  public $id;
1820  public $kind;
1821  public $requiredDimensions;
1822  public $requiredMetrics;
1823  public $supportedProducts;
1824  public function setCompatibleDimensions(/* array(Google_string) */ $compatibleDimensions) {
1825    $this->assertIsArray($compatibleDimensions, 'Google_string', __METHOD__);
1826    $this->compatibleDimensions = $compatibleDimensions;
1827  }
1828  public function getCompatibleDimensions() {
1829    return $this->compatibleDimensions;
1830  }
1831  public function setCompatibleMetrics(/* array(Google_string) */ $compatibleMetrics) {
1832    $this->assertIsArray($compatibleMetrics, 'Google_string', __METHOD__);
1833    $this->compatibleMetrics = $compatibleMetrics;
1834  }
1835  public function getCompatibleMetrics() {
1836    return $this->compatibleMetrics;
1837  }
1838  public function setId( $id) {
1839    $this->id = $id;
1840  }
1841  public function getId() {
1842    return $this->id;
1843  }
1844  public function setKind( $kind) {
1845    $this->kind = $kind;
1846  }
1847  public function getKind() {
1848    return $this->kind;
1849  }
1850  public function setRequiredDimensions(/* array(Google_string) */ $requiredDimensions) {
1851    $this->assertIsArray($requiredDimensions, 'Google_string', __METHOD__);
1852    $this->requiredDimensions = $requiredDimensions;
1853  }
1854  public function getRequiredDimensions() {
1855    return $this->requiredDimensions;
1856  }
1857  public function setRequiredMetrics(/* array(Google_string) */ $requiredMetrics) {
1858    $this->assertIsArray($requiredMetrics, 'Google_string', __METHOD__);
1859    $this->requiredMetrics = $requiredMetrics;
1860  }
1861  public function getRequiredMetrics() {
1862    return $this->requiredMetrics;
1863  }
1864  public function setSupportedProducts(/* array(Google_string) */ $supportedProducts) {
1865    $this->assertIsArray($supportedProducts, 'Google_string', __METHOD__);
1866    $this->supportedProducts = $supportedProducts;
1867  }
1868  public function getSupportedProducts() {
1869    return $this->supportedProducts;
1870  }
1871}
1872
1873class Google_SavedAdStyle extends Google_Model {
1874  protected $__adStyleType = 'Google_AdStyle';
1875  protected $__adStyleDataType = '';
1876  public $adStyle;
1877  public $id;
1878  public $kind;
1879  public $name;
1880  public function setAdStyle(Google_AdStyle $adStyle) {
1881    $this->adStyle = $adStyle;
1882  }
1883  public function getAdStyle() {
1884    return $this->adStyle;
1885  }
1886  public function setId( $id) {
1887    $this->id = $id;
1888  }
1889  public function getId() {
1890    return $this->id;
1891  }
1892  public function setKind( $kind) {
1893    $this->kind = $kind;
1894  }
1895  public function getKind() {
1896    return $this->kind;
1897  }
1898  public function setName( $name) {
1899    $this->name = $name;
1900  }
1901  public function getName() {
1902    return $this->name;
1903  }
1904}
1905
1906class Google_SavedAdStyles extends Google_Model {
1907  public $etag;
1908  protected $__itemsType = 'Google_SavedAdStyle';
1909  protected $__itemsDataType = 'array';
1910  public $items;
1911  public $kind;
1912  public $nextPageToken;
1913  public function setEtag( $etag) {
1914    $this->etag = $etag;
1915  }
1916  public function getEtag() {
1917    return $this->etag;
1918  }
1919  public function setItems(/* array(Google_SavedAdStyle) */ $items) {
1920    $this->assertIsArray($items, 'Google_SavedAdStyle', __METHOD__);
1921    $this->items = $items;
1922  }
1923  public function getItems() {
1924    return $this->items;
1925  }
1926  public function setKind( $kind) {
1927    $this->kind = $kind;
1928  }
1929  public function getKind() {
1930    return $this->kind;
1931  }
1932  public function setNextPageToken( $nextPageToken) {
1933    $this->nextPageToken = $nextPageToken;
1934  }
1935  public function getNextPageToken() {
1936    return $this->nextPageToken;
1937  }
1938}
1939
1940class Google_SavedReport extends Google_Model {
1941  public $id;
1942  public $kind;
1943  public $name;
1944  public function setId( $id) {
1945    $this->id = $id;
1946  }
1947  public function getId() {
1948    return $this->id;
1949  }
1950  public function setKind( $kind) {
1951    $this->kind = $kind;
1952  }
1953  public function getKind() {
1954    return $this->kind;
1955  }
1956  public function setName( $name) {
1957    $this->name = $name;
1958  }
1959  public function getName() {
1960    return $this->name;
1961  }
1962}
1963
1964class Google_SavedReports extends Google_Model {
1965  public $etag;
1966  protected $__itemsType = 'Google_SavedReport';
1967  protected $__itemsDataType = 'array';
1968  public $items;
1969  public $kind;
1970  public $nextPageToken;
1971  public function setEtag( $etag) {
1972    $this->etag = $etag;
1973  }
1974  public function getEtag() {
1975    return $this->etag;
1976  }
1977  public function setItems(/* array(Google_SavedReport) */ $items) {
1978    $this->assertIsArray($items, 'Google_SavedReport', __METHOD__);
1979    $this->items = $items;
1980  }
1981  public function getItems() {
1982    return $this->items;
1983  }
1984  public function setKind( $kind) {
1985    $this->kind = $kind;
1986  }
1987  public function getKind() {
1988    return $this->kind;
1989  }
1990  public function setNextPageToken( $nextPageToken) {
1991    $this->nextPageToken = $nextPageToken;
1992  }
1993  public function getNextPageToken() {
1994    return $this->nextPageToken;
1995  }
1996}
1997
1998class Google_UrlChannel extends Google_Model {
1999  public $id;
2000  public $kind;
2001  public $urlPattern;
2002  public function setId( $id) {
2003    $this->id = $id;
2004  }
2005  public function getId() {
2006    return $this->id;
2007  }
2008  public function setKind( $kind) {
2009    $this->kind = $kind;
2010  }
2011  public function getKind() {
2012    return $this->kind;
2013  }
2014  public function setUrlPattern( $urlPattern) {
2015    $this->urlPattern = $urlPattern;
2016  }
2017  public function getUrlPattern() {
2018    return $this->urlPattern;
2019  }
2020}
2021
2022class Google_UrlChannels extends Google_Model {
2023  public $etag;
2024  protected $__itemsType = 'Google_UrlChannel';
2025  protected $__itemsDataType = 'array';
2026  public $items;
2027  public $kind;
2028  public $nextPageToken;
2029  public function setEtag( $etag) {
2030    $this->etag = $etag;
2031  }
2032  public function getEtag() {
2033    return $this->etag;
2034  }
2035  public function setItems(/* array(Google_UrlChannel) */ $items) {
2036    $this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
2037    $this->items = $items;
2038  }
2039  public function getItems() {
2040    return $this->items;
2041  }
2042  public function setKind( $kind) {
2043    $this->kind = $kind;
2044  }
2045  public function getKind() {
2046    return $this->kind;
2047  }
2048  public function setNextPageToken( $nextPageToken) {
2049    $this->nextPageToken = $nextPageToken;
2050  }
2051  public function getNextPageToken() {
2052    return $this->nextPageToken;
2053  }
2054}
2055