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   *   $adsensehostService = new Google_AdSenseHostService(...);
22   *   $accounts = $adsensehostService->accounts;
23   *  </code>
24   */
25  class Google_AccountsServiceResource extends Google_ServiceResource {
26
27    /**
28     * Get information about the selected associated AdSense account. (accounts.get)
29     *
30     * @param string $accountId Account to get information about.
31     * @param array $optParams Optional parameters.
32     * @return Google_Account
33     */
34    public function get($accountId, $optParams = array()) {
35      $params = array('accountId' => $accountId);
36      $params = array_merge($params, $optParams);
37      $data = $this->__call('get', array($params));
38      if ($this->useObjects()) {
39        return new Google_Account($data);
40      } else {
41        return $data;
42      }
43    }
44    /**
45     * List hosted accounts associated with this AdSense account by ad client id. (accounts.list)
46     *
47     * @param string $filterAdClientId Ad clients to list accounts for.
48     * @param array $optParams Optional parameters.
49     * @return Google_Accounts
50     */
51    public function listAccounts($filterAdClientId, $optParams = array()) {
52      $params = array('filterAdClientId' => $filterAdClientId);
53      $params = array_merge($params, $optParams);
54      $data = $this->__call('list', array($params));
55      if ($this->useObjects()) {
56        return new Google_Accounts($data);
57      } else {
58        return $data;
59      }
60    }
61  }
62
63  /**
64   * The "adclients" collection of methods.
65   * Typical usage is:
66   *  <code>
67   *   $adsensehostService = new Google_AdSenseHostService(...);
68   *   $adclients = $adsensehostService->adclients;
69   *  </code>
70   */
71  class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
72
73    /**
74     * Get information about one of the ad clients in the specified publisher's AdSense account.
75     * (adclients.get)
76     *
77     * @param string $accountId Account which contains the ad client.
78     * @param string $adClientId Ad client to get.
79     * @param array $optParams Optional parameters.
80     * @return Google_AdClient
81     */
82    public function get($accountId, $adClientId, $optParams = array()) {
83      $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
84      $params = array_merge($params, $optParams);
85      $data = $this->__call('get', array($params));
86      if ($this->useObjects()) {
87        return new Google_AdClient($data);
88      } else {
89        return $data;
90      }
91    }
92    /**
93     * List all hosted ad clients in the specified hosted account. (adclients.list)
94     *
95     * @param string $accountId Account for which to list ad clients.
96     * @param array $optParams Optional parameters.
97     *
98     * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
99     * @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.
100     * @return Google_AdClients
101     */
102    public function listAccountsAdclients($accountId, $optParams = array()) {
103      $params = array('accountId' => $accountId);
104      $params = array_merge($params, $optParams);
105      $data = $this->__call('list', array($params));
106      if ($this->useObjects()) {
107        return new Google_AdClients($data);
108      } else {
109        return $data;
110      }
111    }
112  }
113  /**
114   * The "adunits" collection of methods.
115   * Typical usage is:
116   *  <code>
117   *   $adsensehostService = new Google_AdSenseHostService(...);
118   *   $adunits = $adsensehostService->adunits;
119   *  </code>
120   */
121  class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
122
123    /**
124     * Delete the specified ad unit from the specified publisher AdSense account. (adunits.delete)
125     *
126     * @param string $accountId Account which contains the ad unit.
127     * @param string $adClientId Ad client for which to get ad unit.
128     * @param string $adUnitId Ad unit to delete.
129     * @param array $optParams Optional parameters.
130     * @return Google_AdUnit
131     */
132    public function delete($accountId, $adClientId, $adUnitId, $optParams = array()) {
133      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
134      $params = array_merge($params, $optParams);
135      $data = $this->__call('delete', array($params));
136      if ($this->useObjects()) {
137        return new Google_AdUnit($data);
138      } else {
139        return $data;
140      }
141    }
142    /**
143     * Get the specified host ad unit in this AdSense account. (adunits.get)
144     *
145     * @param string $accountId Account which contains the ad unit.
146     * @param string $adClientId Ad client for which to get ad unit.
147     * @param string $adUnitId Ad unit to get.
148     * @param array $optParams Optional parameters.
149     * @return Google_AdUnit
150     */
151    public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
152      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
153      $params = array_merge($params, $optParams);
154      $data = $this->__call('get', array($params));
155      if ($this->useObjects()) {
156        return new Google_AdUnit($data);
157      } else {
158        return $data;
159      }
160    }
161    /**
162     * Get ad code for the specified ad unit, attaching the specified host custom channels.
163     * (adunits.getAdCode)
164     *
165     * @param string $accountId Account which contains the ad client.
166     * @param string $adClientId Ad client with contains the ad unit.
167     * @param string $adUnitId Ad unit to get the code for.
168     * @param array $optParams Optional parameters.
169     *
170     * @opt_param string hostCustomChannelId Host custom channel to attach to the ad code.
171     * @return Google_AdCode
172     */
173    public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) {
174      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
175      $params = array_merge($params, $optParams);
176      $data = $this->__call('getAdCode', array($params));
177      if ($this->useObjects()) {
178        return new Google_AdCode($data);
179      } else {
180        return $data;
181      }
182    }
183    /**
184     * Insert the supplied ad unit into the specified publisher AdSense account. (adunits.insert)
185     *
186     * @param string $accountId Account which will contain the ad unit.
187     * @param string $adClientId Ad client into which to insert the ad unit.
188     * @param Google_AdUnit $postBody
189     * @param array $optParams Optional parameters.
190     * @return Google_AdUnit
191     */
192    public function insert($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
193      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
194      $params = array_merge($params, $optParams);
195      $data = $this->__call('insert', array($params));
196      if ($this->useObjects()) {
197        return new Google_AdUnit($data);
198      } else {
199        return $data;
200      }
201    }
202    /**
203     * List all ad units in the specified publisher's AdSense account. (adunits.list)
204     *
205     * @param string $accountId Account which contains the ad client.
206     * @param string $adClientId Ad client for which to list ad units.
207     * @param array $optParams Optional parameters.
208     *
209     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
210     * @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
211     * @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.
212     * @return Google_AdUnits
213     */
214    public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
215      $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
216      $params = array_merge($params, $optParams);
217      $data = $this->__call('list', array($params));
218      if ($this->useObjects()) {
219        return new Google_AdUnits($data);
220      } else {
221        return $data;
222      }
223    }
224    /**
225     * Update the supplied ad unit in the specified publisher AdSense account. This method supports
226     * patch semantics. (adunits.patch)
227     *
228     * @param string $accountId Account which contains the ad client.
229     * @param string $adClientId Ad client which contains the ad unit.
230     * @param string $adUnitId Ad unit to get.
231     * @param Google_AdUnit $postBody
232     * @param array $optParams Optional parameters.
233     * @return Google_AdUnit
234     */
235    public function patch($accountId, $adClientId, $adUnitId, Google_AdUnit $postBody, $optParams = array()) {
236      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
237      $params = array_merge($params, $optParams);
238      $data = $this->__call('patch', array($params));
239      if ($this->useObjects()) {
240        return new Google_AdUnit($data);
241      } else {
242        return $data;
243      }
244    }
245    /**
246     * Update the supplied ad unit in the specified publisher AdSense account. (adunits.update)
247     *
248     * @param string $accountId Account which contains the ad client.
249     * @param string $adClientId Ad client which contains the ad unit.
250     * @param Google_AdUnit $postBody
251     * @param array $optParams Optional parameters.
252     * @return Google_AdUnit
253     */
254    public function update($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
255      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
256      $params = array_merge($params, $optParams);
257      $data = $this->__call('update', array($params));
258      if ($this->useObjects()) {
259        return new Google_AdUnit($data);
260      } else {
261        return $data;
262      }
263    }
264  }
265  /**
266   * The "reports" collection of methods.
267   * Typical usage is:
268   *  <code>
269   *   $adsensehostService = new Google_AdSenseHostService(...);
270   *   $reports = $adsensehostService->reports;
271   *  </code>
272   */
273  class Google_AccountsReportsServiceResource extends Google_ServiceResource {
274
275    /**
276     * Generate an AdSense report based on the report request sent in the query parameters. Returns the
277     * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
278     * (reports.generate)
279     *
280     * @param string $accountId Hosted account upon which to report.
281     * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
282     * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
283     * @param array $optParams Optional parameters.
284     *
285     * @opt_param string dimension Dimensions to base the report on.
286     * @opt_param string filter Filters to be run on the report.
287     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
288     * @opt_param string maxResults The maximum number of rows of report data to return.
289     * @opt_param string metric Numeric columns to include in the report.
290     * @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.
291     * @opt_param string startIndex Index of the first row of report data to return.
292     * @return Google_Report
293     */
294    public function generate($accountId, $startDate, $endDate, $optParams = array()) {
295      $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
296      $params = array_merge($params, $optParams);
297      $data = $this->__call('generate', array($params));
298      if ($this->useObjects()) {
299        return new Google_Report($data);
300      } else {
301        return $data;
302      }
303    }
304  }
305
306  /**
307   * The "adclients" collection of methods.
308   * Typical usage is:
309   *  <code>
310   *   $adsensehostService = new Google_AdSenseHostService(...);
311   *   $adclients = $adsensehostService->adclients;
312   *  </code>
313   */
314  class Google_AdclientsServiceResource extends Google_ServiceResource {
315
316    /**
317     * Get information about one of the ad clients in the Host AdSense account. (adclients.get)
318     *
319     * @param string $adClientId Ad client to get.
320     * @param array $optParams Optional parameters.
321     * @return Google_AdClient
322     */
323    public function get($adClientId, $optParams = array()) {
324      $params = array('adClientId' => $adClientId);
325      $params = array_merge($params, $optParams);
326      $data = $this->__call('get', array($params));
327      if ($this->useObjects()) {
328        return new Google_AdClient($data);
329      } else {
330        return $data;
331      }
332    }
333    /**
334     * List all host ad clients in this AdSense account. (adclients.list)
335     *
336     * @param array $optParams Optional parameters.
337     *
338     * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
339     * @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.
340     * @return Google_AdClients
341     */
342    public function listAdclients($optParams = array()) {
343      $params = array();
344      $params = array_merge($params, $optParams);
345      $data = $this->__call('list', array($params));
346      if ($this->useObjects()) {
347        return new Google_AdClients($data);
348      } else {
349        return $data;
350      }
351    }
352  }
353
354  /**
355   * The "associationsessions" collection of methods.
356   * Typical usage is:
357   *  <code>
358   *   $adsensehostService = new Google_AdSenseHostService(...);
359   *   $associationsessions = $adsensehostService->associationsessions;
360   *  </code>
361   */
362  class Google_AssociationsessionsServiceResource extends Google_ServiceResource {
363
364    /**
365     * Create an association session for initiating an association with an AdSense user.
366     * (associationsessions.start)
367     *
368     * @param string $productCode Products to associate with the user.
369     * @param string $websiteUrl The URL of the user's hosted website.
370     * @param array $optParams Optional parameters.
371     *
372     * @opt_param string userLocale The preferred locale of the user.
373     * @opt_param string websiteLocale The locale of the user's hosted website.
374     * @return Google_AssociationSession
375     */
376    public function start($productCode, $websiteUrl, $optParams = array()) {
377      $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
378      $params = array_merge($params, $optParams);
379      $data = $this->__call('start', array($params));
380      if ($this->useObjects()) {
381        return new Google_AssociationSession($data);
382      } else {
383        return $data;
384      }
385    }
386    /**
387     * Verify an association session after the association callback returns from AdSense signup.
388     * (associationsessions.verify)
389     *
390     * @param string $token The token returned to the association callback URL.
391     * @param array $optParams Optional parameters.
392     * @return Google_AssociationSession
393     */
394    public function verify($token, $optParams = array()) {
395      $params = array('token' => $token);
396      $params = array_merge($params, $optParams);
397      $data = $this->__call('verify', array($params));
398      if ($this->useObjects()) {
399        return new Google_AssociationSession($data);
400      } else {
401        return $data;
402      }
403    }
404  }
405
406  /**
407   * The "customchannels" collection of methods.
408   * Typical usage is:
409   *  <code>
410   *   $adsensehostService = new Google_AdSenseHostService(...);
411   *   $customchannels = $adsensehostService->customchannels;
412   *  </code>
413   */
414  class Google_CustomchannelsServiceResource extends Google_ServiceResource {
415
416    /**
417     * Delete a specific custom channel from the host AdSense account. (customchannels.delete)
418     *
419     * @param string $adClientId Ad client from which to delete the custom channel.
420     * @param string $customChannelId Custom channel to delete.
421     * @param array $optParams Optional parameters.
422     * @return Google_CustomChannel
423     */
424    public function delete($adClientId, $customChannelId, $optParams = array()) {
425      $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
426      $params = array_merge($params, $optParams);
427      $data = $this->__call('delete', array($params));
428      if ($this->useObjects()) {
429        return new Google_CustomChannel($data);
430      } else {
431        return $data;
432      }
433    }
434    /**
435     * Get a specific custom channel from the host AdSense account. (customchannels.get)
436     *
437     * @param string $adClientId Ad client from which to get the custom channel.
438     * @param string $customChannelId Custom channel to get.
439     * @param array $optParams Optional parameters.
440     * @return Google_CustomChannel
441     */
442    public function get($adClientId, $customChannelId, $optParams = array()) {
443      $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
444      $params = array_merge($params, $optParams);
445      $data = $this->__call('get', array($params));
446      if ($this->useObjects()) {
447        return new Google_CustomChannel($data);
448      } else {
449        return $data;
450      }
451    }
452    /**
453     * Add a new custom channel to the host AdSense account. (customchannels.insert)
454     *
455     * @param string $adClientId Ad client to which the new custom channel will be added.
456     * @param Google_CustomChannel $postBody
457     * @param array $optParams Optional parameters.
458     * @return Google_CustomChannel
459     */
460    public function insert($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
461      $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
462      $params = array_merge($params, $optParams);
463      $data = $this->__call('insert', array($params));
464      if ($this->useObjects()) {
465        return new Google_CustomChannel($data);
466      } else {
467        return $data;
468      }
469    }
470    /**
471     * List all host custom channels in this AdSense account. (customchannels.list)
472     *
473     * @param string $adClientId Ad client for which to list custom channels.
474     * @param array $optParams Optional parameters.
475     *
476     * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
477     * @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.
478     * @return Google_CustomChannels
479     */
480    public function listCustomchannels($adClientId, $optParams = array()) {
481      $params = array('adClientId' => $adClientId);
482      $params = array_merge($params, $optParams);
483      $data = $this->__call('list', array($params));
484      if ($this->useObjects()) {
485        return new Google_CustomChannels($data);
486      } else {
487        return $data;
488      }
489    }
490    /**
491     * Update a custom channel in the host AdSense account. This method supports patch semantics.
492     * (customchannels.patch)
493     *
494     * @param string $adClientId Ad client in which the custom channel will be updated.
495     * @param string $customChannelId Custom channel to get.
496     * @param Google_CustomChannel $postBody
497     * @param array $optParams Optional parameters.
498     * @return Google_CustomChannel
499     */
500    public function patch($adClientId, $customChannelId, Google_CustomChannel $postBody, $optParams = array()) {
501      $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
502      $params = array_merge($params, $optParams);
503      $data = $this->__call('patch', array($params));
504      if ($this->useObjects()) {
505        return new Google_CustomChannel($data);
506      } else {
507        return $data;
508      }
509    }
510    /**
511     * Update a custom channel in the host AdSense account. (customchannels.update)
512     *
513     * @param string $adClientId Ad client in which the custom channel will be updated.
514     * @param Google_CustomChannel $postBody
515     * @param array $optParams Optional parameters.
516     * @return Google_CustomChannel
517     */
518    public function update($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
519      $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
520      $params = array_merge($params, $optParams);
521      $data = $this->__call('update', array($params));
522      if ($this->useObjects()) {
523        return new Google_CustomChannel($data);
524      } else {
525        return $data;
526      }
527    }
528  }
529
530  /**
531   * The "reports" collection of methods.
532   * Typical usage is:
533   *  <code>
534   *   $adsensehostService = new Google_AdSenseHostService(...);
535   *   $reports = $adsensehostService->reports;
536   *  </code>
537   */
538  class Google_ReportsServiceResource extends Google_ServiceResource {
539
540    /**
541     * Generate an AdSense report based on the report request sent in the query parameters. Returns the
542     * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
543     * (reports.generate)
544     *
545     * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
546     * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
547     * @param array $optParams Optional parameters.
548     *
549     * @opt_param string dimension Dimensions to base the report on.
550     * @opt_param string filter Filters to be run on the report.
551     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
552     * @opt_param string maxResults The maximum number of rows of report data to return.
553     * @opt_param string metric Numeric columns to include in the report.
554     * @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.
555     * @opt_param string startIndex Index of the first row of report data to return.
556     * @return Google_Report
557     */
558    public function generate($startDate, $endDate, $optParams = array()) {
559      $params = array('startDate' => $startDate, 'endDate' => $endDate);
560      $params = array_merge($params, $optParams);
561      $data = $this->__call('generate', array($params));
562      if ($this->useObjects()) {
563        return new Google_Report($data);
564      } else {
565        return $data;
566      }
567    }
568  }
569
570  /**
571   * The "urlchannels" collection of methods.
572   * Typical usage is:
573   *  <code>
574   *   $adsensehostService = new Google_AdSenseHostService(...);
575   *   $urlchannels = $adsensehostService->urlchannels;
576   *  </code>
577   */
578  class Google_UrlchannelsServiceResource extends Google_ServiceResource {
579
580    /**
581     * Delete a URL channel from the host AdSense account. (urlchannels.delete)
582     *
583     * @param string $adClientId Ad client from which to delete the URL channel.
584     * @param string $urlChannelId URL channel to delete.
585     * @param array $optParams Optional parameters.
586     * @return Google_UrlChannel
587     */
588    public function delete($adClientId, $urlChannelId, $optParams = array()) {
589      $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
590      $params = array_merge($params, $optParams);
591      $data = $this->__call('delete', array($params));
592      if ($this->useObjects()) {
593        return new Google_UrlChannel($data);
594      } else {
595        return $data;
596      }
597    }
598    /**
599     * Add a new URL channel to the host AdSense account. (urlchannels.insert)
600     *
601     * @param string $adClientId Ad client to which the new URL channel will be added.
602     * @param Google_UrlChannel $postBody
603     * @param array $optParams Optional parameters.
604     * @return Google_UrlChannel
605     */
606    public function insert($adClientId, Google_UrlChannel $postBody, $optParams = array()) {
607      $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
608      $params = array_merge($params, $optParams);
609      $data = $this->__call('insert', array($params));
610      if ($this->useObjects()) {
611        return new Google_UrlChannel($data);
612      } else {
613        return $data;
614      }
615    }
616    /**
617     * List all host URL channels in the host AdSense account. (urlchannels.list)
618     *
619     * @param string $adClientId Ad client for which to list URL channels.
620     * @param array $optParams Optional parameters.
621     *
622     * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
623     * @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.
624     * @return Google_UrlChannels
625     */
626    public function listUrlchannels($adClientId, $optParams = array()) {
627      $params = array('adClientId' => $adClientId);
628      $params = array_merge($params, $optParams);
629      $data = $this->__call('list', array($params));
630      if ($this->useObjects()) {
631        return new Google_UrlChannels($data);
632      } else {
633        return $data;
634      }
635    }
636  }
637
638/**
639 * Service definition for Google_AdSenseHost (v4.1).
640 *
641 * <p>
642 * Gives AdSense Hosts access to report generation, ad code generation, and publisher management capabilities.
643 * </p>
644 *
645 * <p>
646 * For more information about this service, see the
647 * <a href="https://developers.google.com/adsense/host/" target="_blank">API Documentation</a>
648 * </p>
649 *
650 * @author Google, Inc.
651 */
652class Google_AdSenseHostService extends Google_Service {
653  public $accounts;
654  public $accounts_adclients;
655  public $accounts_adunits;
656  public $accounts_reports;
657  public $adclients;
658  public $associationsessions;
659  public $customchannels;
660  public $reports;
661  public $urlchannels;
662  /**
663   * Constructs the internal representation of the AdSenseHost service.
664   *
665   * @param Google_Client $client
666   */
667  public function __construct(Google_Client $client) {
668    $this->servicePath = 'adsensehost/v4.1/';
669    $this->version = 'v4.1';
670    $this->serviceName = 'adsensehost';
671
672    $client->addService($this->serviceName, $this->version);
673    $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"get": {"id": "adsensehost.accounts.get", "path": "accounts/{accountId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.accounts.list", "path": "accounts", "httpMethod": "GET", "parameters": {"filterAdClientId": {"type": "string", "required": true, "repeated": true, "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
674    $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"get": {"id": "adsensehost.accounts.adclients.get", "path": "accounts/{accountId}/adclients/{adClientId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdClient"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.accounts.adclients.list", "path": "accounts/{accountId}/adclients", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
675    $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"delete": {"id": "adsensehost.accounts.adunits.delete", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "DELETE", "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/adsensehost"]}, "get": {"id": "adsensehost.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/adsensehost"]}, "getAdCode": {"id": "adsensehost.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"}, "hostCustomChannelId": {"type": "string", "repeated": true, "location": "query"}}, "response": {"$ref": "AdCode"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "insert": {"id": "adsensehost.accounts.adunits.insert", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.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": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "patch": {"id": "adsensehost.accounts.adunits.patch", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "update": {"id": "adsensehost.accounts.adunits.update", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
676    $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsensehost.accounts.reports.generate", "path": "accounts/{accountId}/reports", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
677    $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"get": {"id": "adsensehost.adclients.get", "path": "adclients/{adClientId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdClient"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.adclients.list", "path": "adclients", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
678    $this->associationsessions = new Google_AssociationsessionsServiceResource($this, $this->serviceName, 'associationsessions', json_decode('{"methods": {"start": {"id": "adsensehost.associationsessions.start", "path": "associationsessions/start", "httpMethod": "GET", "parameters": {"productCode": {"type": "string", "required": true, "enum": ["AFC", "AFG", "AFMC", "AFS", "AFV"], "repeated": true, "location": "query"}, "userLocale": {"type": "string", "location": "query"}, "websiteLocale": {"type": "string", "location": "query"}, "websiteUrl": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "AssociationSession"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "verify": {"id": "adsensehost.associationsessions.verify", "path": "associationsessions/verify", "httpMethod": "GET", "parameters": {"token": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "AssociationSession"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
679    $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"delete": {"id": "adsensehost.customchannels.delete", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "DELETE", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "get": {"id": "adsensehost.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/adsensehost"]}, "insert": {"id": "adsensehost.customchannels.insert", "path": "adclients/{adClientId}/customchannels", "httpMethod": "POST", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.customchannels.list", "path": "adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "patch": {"id": "adsensehost.customchannels.patch", "path": "adclients/{adClientId}/customchannels", "httpMethod": "PATCH", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "update": {"id": "adsensehost.customchannels.update", "path": "adclients/{adClientId}/customchannels", "httpMethod": "PUT", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
680    $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsensehost.reports.generate", "path": "reports", "httpMethod": "GET", "parameters": {"dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
681    $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"delete": {"id": "adsensehost.urlchannels.delete", "path": "adclients/{adClientId}/urlchannels/{urlChannelId}", "httpMethod": "DELETE", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "urlChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "UrlChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "insert": {"id": "adsensehost.urlchannels.insert", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "POST", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "UrlChannel"}, "response": {"$ref": "UrlChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.urlchannels.list", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
682
683  }
684}
685
686
687
688class Google_Account extends Google_Model {
689  public $id;
690  public $kind;
691  public $name;
692  public $status;
693  public function setId( $id) {
694    $this->id = $id;
695  }
696  public function getId() {
697    return $this->id;
698  }
699  public function setKind( $kind) {
700    $this->kind = $kind;
701  }
702  public function getKind() {
703    return $this->kind;
704  }
705  public function setName( $name) {
706    $this->name = $name;
707  }
708  public function getName() {
709    return $this->name;
710  }
711  public function setStatus( $status) {
712    $this->status = $status;
713  }
714  public function getStatus() {
715    return $this->status;
716  }
717}
718
719class Google_Accounts extends Google_Model {
720  public $etag;
721  protected $__itemsType = 'Google_Account';
722  protected $__itemsDataType = 'array';
723  public $items;
724  public $kind;
725  public function setEtag( $etag) {
726    $this->etag = $etag;
727  }
728  public function getEtag() {
729    return $this->etag;
730  }
731  public function setItems(/* array(Google_Account) */ $items) {
732    $this->assertIsArray($items, 'Google_Account', __METHOD__);
733    $this->items = $items;
734  }
735  public function getItems() {
736    return $this->items;
737  }
738  public function setKind( $kind) {
739    $this->kind = $kind;
740  }
741  public function getKind() {
742    return $this->kind;
743  }
744}
745
746class Google_AdClient extends Google_Model {
747  public $arcOptIn;
748  public $id;
749  public $kind;
750  public $productCode;
751  public $supportsReporting;
752  public function setArcOptIn( $arcOptIn) {
753    $this->arcOptIn = $arcOptIn;
754  }
755  public function getArcOptIn() {
756    return $this->arcOptIn;
757  }
758  public function setId( $id) {
759    $this->id = $id;
760  }
761  public function getId() {
762    return $this->id;
763  }
764  public function setKind( $kind) {
765    $this->kind = $kind;
766  }
767  public function getKind() {
768    return $this->kind;
769  }
770  public function setProductCode( $productCode) {
771    $this->productCode = $productCode;
772  }
773  public function getProductCode() {
774    return $this->productCode;
775  }
776  public function setSupportsReporting( $supportsReporting) {
777    $this->supportsReporting = $supportsReporting;
778  }
779  public function getSupportsReporting() {
780    return $this->supportsReporting;
781  }
782}
783
784class Google_AdClients extends Google_Model {
785  public $etag;
786  protected $__itemsType = 'Google_AdClient';
787  protected $__itemsDataType = 'array';
788  public $items;
789  public $kind;
790  public $nextPageToken;
791  public function setEtag( $etag) {
792    $this->etag = $etag;
793  }
794  public function getEtag() {
795    return $this->etag;
796  }
797  public function setItems(/* array(Google_AdClient) */ $items) {
798    $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
799    $this->items = $items;
800  }
801  public function getItems() {
802    return $this->items;
803  }
804  public function setKind( $kind) {
805    $this->kind = $kind;
806  }
807  public function getKind() {
808    return $this->kind;
809  }
810  public function setNextPageToken( $nextPageToken) {
811    $this->nextPageToken = $nextPageToken;
812  }
813  public function getNextPageToken() {
814    return $this->nextPageToken;
815  }
816}
817
818class Google_AdCode extends Google_Model {
819  public $adCode;
820  public $kind;
821  public function setAdCode( $adCode) {
822    $this->adCode = $adCode;
823  }
824  public function getAdCode() {
825    return $this->adCode;
826  }
827  public function setKind( $kind) {
828    $this->kind = $kind;
829  }
830  public function getKind() {
831    return $this->kind;
832  }
833}
834
835class Google_AdStyle extends Google_Model {
836  protected $__colorsType = 'Google_AdStyleColors';
837  protected $__colorsDataType = '';
838  public $colors;
839  public $corners;
840  protected $__fontType = 'Google_AdStyleFont';
841  protected $__fontDataType = '';
842  public $font;
843  public $kind;
844  public function setColors(Google_AdStyleColors $colors) {
845    $this->colors = $colors;
846  }
847  public function getColors() {
848    return $this->colors;
849  }
850  public function setCorners( $corners) {
851    $this->corners = $corners;
852  }
853  public function getCorners() {
854    return $this->corners;
855  }
856  public function setFont(Google_AdStyleFont $font) {
857    $this->font = $font;
858  }
859  public function getFont() {
860    return $this->font;
861  }
862  public function setKind( $kind) {
863    $this->kind = $kind;
864  }
865  public function getKind() {
866    return $this->kind;
867  }
868}
869
870class Google_AdStyleColors extends Google_Model {
871  public $background;
872  public $border;
873  public $text;
874  public $title;
875  public $url;
876  public function setBackground( $background) {
877    $this->background = $background;
878  }
879  public function getBackground() {
880    return $this->background;
881  }
882  public function setBorder( $border) {
883    $this->border = $border;
884  }
885  public function getBorder() {
886    return $this->border;
887  }
888  public function setText( $text) {
889    $this->text = $text;
890  }
891  public function getText() {
892    return $this->text;
893  }
894  public function setTitle( $title) {
895    $this->title = $title;
896  }
897  public function getTitle() {
898    return $this->title;
899  }
900  public function setUrl( $url) {
901    $this->url = $url;
902  }
903  public function getUrl() {
904    return $this->url;
905  }
906}
907
908class Google_AdStyleFont extends Google_Model {
909  public $family;
910  public $size;
911  public function setFamily( $family) {
912    $this->family = $family;
913  }
914  public function getFamily() {
915    return $this->family;
916  }
917  public function setSize( $size) {
918    $this->size = $size;
919  }
920  public function getSize() {
921    return $this->size;
922  }
923}
924
925class Google_AdUnit extends Google_Model {
926  public $code;
927  protected $__contentAdsSettingsType = 'Google_AdUnitContentAdsSettings';
928  protected $__contentAdsSettingsDataType = '';
929  public $contentAdsSettings;
930  protected $__customStyleType = 'Google_AdStyle';
931  protected $__customStyleDataType = '';
932  public $customStyle;
933  public $id;
934  public $kind;
935  protected $__mobileContentAdsSettingsType = 'Google_AdUnitMobileContentAdsSettings';
936  protected $__mobileContentAdsSettingsDataType = '';
937  public $mobileContentAdsSettings;
938  public $name;
939  public $status;
940  public function setCode( $code) {
941    $this->code = $code;
942  }
943  public function getCode() {
944    return $this->code;
945  }
946  public function setContentAdsSettings(Google_AdUnitContentAdsSettings $contentAdsSettings) {
947    $this->contentAdsSettings = $contentAdsSettings;
948  }
949  public function getContentAdsSettings() {
950    return $this->contentAdsSettings;
951  }
952  public function setCustomStyle(Google_AdStyle $customStyle) {
953    $this->customStyle = $customStyle;
954  }
955  public function getCustomStyle() {
956    return $this->customStyle;
957  }
958  public function setId( $id) {
959    $this->id = $id;
960  }
961  public function getId() {
962    return $this->id;
963  }
964  public function setKind( $kind) {
965    $this->kind = $kind;
966  }
967  public function getKind() {
968    return $this->kind;
969  }
970  public function setMobileContentAdsSettings(Google_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) {
971    $this->mobileContentAdsSettings = $mobileContentAdsSettings;
972  }
973  public function getMobileContentAdsSettings() {
974    return $this->mobileContentAdsSettings;
975  }
976  public function setName( $name) {
977    $this->name = $name;
978  }
979  public function getName() {
980    return $this->name;
981  }
982  public function setStatus( $status) {
983    $this->status = $status;
984  }
985  public function getStatus() {
986    return $this->status;
987  }
988}
989
990class Google_AdUnitContentAdsSettings extends Google_Model {
991  protected $__backupOptionType = 'Google_AdUnitContentAdsSettingsBackupOption';
992  protected $__backupOptionDataType = '';
993  public $backupOption;
994  public $size;
995  public $type;
996  public function setBackupOption(Google_AdUnitContentAdsSettingsBackupOption $backupOption) {
997    $this->backupOption = $backupOption;
998  }
999  public function getBackupOption() {
1000    return $this->backupOption;
1001  }
1002  public function setSize( $size) {
1003    $this->size = $size;
1004  }
1005  public function getSize() {
1006    return $this->size;
1007  }
1008  public function setType( $type) {
1009    $this->type = $type;
1010  }
1011  public function getType() {
1012    return $this->type;
1013  }
1014}
1015
1016class Google_AdUnitContentAdsSettingsBackupOption extends Google_Model {
1017  public $color;
1018  public $type;
1019  public $url;
1020  public function setColor( $color) {
1021    $this->color = $color;
1022  }
1023  public function getColor() {
1024    return $this->color;
1025  }
1026  public function setType( $type) {
1027    $this->type = $type;
1028  }
1029  public function getType() {
1030    return $this->type;
1031  }
1032  public function setUrl( $url) {
1033    $this->url = $url;
1034  }
1035  public function getUrl() {
1036    return $this->url;
1037  }
1038}
1039
1040class Google_AdUnitMobileContentAdsSettings extends Google_Model {
1041  public $markupLanguage;
1042  public $scriptingLanguage;
1043  public $size;
1044  public $type;
1045  public function setMarkupLanguage( $markupLanguage) {
1046    $this->markupLanguage = $markupLanguage;
1047  }
1048  public function getMarkupLanguage() {
1049    return $this->markupLanguage;
1050  }
1051  public function setScriptingLanguage( $scriptingLanguage) {
1052    $this->scriptingLanguage = $scriptingLanguage;
1053  }
1054  public function getScriptingLanguage() {
1055    return $this->scriptingLanguage;
1056  }
1057  public function setSize( $size) {
1058    $this->size = $size;
1059  }
1060  public function getSize() {
1061    return $this->size;
1062  }
1063  public function setType( $type) {
1064    $this->type = $type;
1065  }
1066  public function getType() {
1067    return $this->type;
1068  }
1069}
1070
1071class Google_AdUnits extends Google_Model {
1072  public $etag;
1073  protected $__itemsType = 'Google_AdUnit';
1074  protected $__itemsDataType = 'array';
1075  public $items;
1076  public $kind;
1077  public $nextPageToken;
1078  public function setEtag( $etag) {
1079    $this->etag = $etag;
1080  }
1081  public function getEtag() {
1082    return $this->etag;
1083  }
1084  public function setItems(/* array(Google_AdUnit) */ $items) {
1085    $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
1086    $this->items = $items;
1087  }
1088  public function getItems() {
1089    return $this->items;
1090  }
1091  public function setKind( $kind) {
1092    $this->kind = $kind;
1093  }
1094  public function getKind() {
1095    return $this->kind;
1096  }
1097  public function setNextPageToken( $nextPageToken) {
1098    $this->nextPageToken = $nextPageToken;
1099  }
1100  public function getNextPageToken() {
1101    return $this->nextPageToken;
1102  }
1103}
1104
1105class Google_AssociationSession extends Google_Model {
1106  public $accountId;
1107  public $id;
1108  public $kind;
1109  public $productCodes;
1110  public $redirectUrl;
1111  public $status;
1112  public $userLocale;
1113  public $websiteLocale;
1114  public $websiteUrl;
1115  public function setAccountId( $accountId) {
1116    $this->accountId = $accountId;
1117  }
1118  public function getAccountId() {
1119    return $this->accountId;
1120  }
1121  public function setId( $id) {
1122    $this->id = $id;
1123  }
1124  public function getId() {
1125    return $this->id;
1126  }
1127  public function setKind( $kind) {
1128    $this->kind = $kind;
1129  }
1130  public function getKind() {
1131    return $this->kind;
1132  }
1133  public function setProductCodes(/* array(Google_string) */ $productCodes) {
1134    $this->assertIsArray($productCodes, 'Google_string', __METHOD__);
1135    $this->productCodes = $productCodes;
1136  }
1137  public function getProductCodes() {
1138    return $this->productCodes;
1139  }
1140  public function setRedirectUrl( $redirectUrl) {
1141    $this->redirectUrl = $redirectUrl;
1142  }
1143  public function getRedirectUrl() {
1144    return $this->redirectUrl;
1145  }
1146  public function setStatus( $status) {
1147    $this->status = $status;
1148  }
1149  public function getStatus() {
1150    return $this->status;
1151  }
1152  public function setUserLocale( $userLocale) {
1153    $this->userLocale = $userLocale;
1154  }
1155  public function getUserLocale() {
1156    return $this->userLocale;
1157  }
1158  public function setWebsiteLocale( $websiteLocale) {
1159    $this->websiteLocale = $websiteLocale;
1160  }
1161  public function getWebsiteLocale() {
1162    return $this->websiteLocale;
1163  }
1164  public function setWebsiteUrl( $websiteUrl) {
1165    $this->websiteUrl = $websiteUrl;
1166  }
1167  public function getWebsiteUrl() {
1168    return $this->websiteUrl;
1169  }
1170}
1171
1172class Google_CustomChannel extends Google_Model {
1173  public $code;
1174  public $id;
1175  public $kind;
1176  public $name;
1177  public function setCode( $code) {
1178    $this->code = $code;
1179  }
1180  public function getCode() {
1181    return $this->code;
1182  }
1183  public function setId( $id) {
1184    $this->id = $id;
1185  }
1186  public function getId() {
1187    return $this->id;
1188  }
1189  public function setKind( $kind) {
1190    $this->kind = $kind;
1191  }
1192  public function getKind() {
1193    return $this->kind;
1194  }
1195  public function setName( $name) {
1196    $this->name = $name;
1197  }
1198  public function getName() {
1199    return $this->name;
1200  }
1201}
1202
1203class Google_CustomChannels extends Google_Model {
1204  public $etag;
1205  protected $__itemsType = 'Google_CustomChannel';
1206  protected $__itemsDataType = 'array';
1207  public $items;
1208  public $kind;
1209  public $nextPageToken;
1210  public function setEtag( $etag) {
1211    $this->etag = $etag;
1212  }
1213  public function getEtag() {
1214    return $this->etag;
1215  }
1216  public function setItems(/* array(Google_CustomChannel) */ $items) {
1217    $this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
1218    $this->items = $items;
1219  }
1220  public function getItems() {
1221    return $this->items;
1222  }
1223  public function setKind( $kind) {
1224    $this->kind = $kind;
1225  }
1226  public function getKind() {
1227    return $this->kind;
1228  }
1229  public function setNextPageToken( $nextPageToken) {
1230    $this->nextPageToken = $nextPageToken;
1231  }
1232  public function getNextPageToken() {
1233    return $this->nextPageToken;
1234  }
1235}
1236
1237class Google_Report extends Google_Model {
1238  public $averages;
1239  protected $__headersType = 'Google_ReportHeaders';
1240  protected $__headersDataType = 'array';
1241  public $headers;
1242  public $kind;
1243  public $rows;
1244  public $totalMatchedRows;
1245  public $totals;
1246  public $warnings;
1247  public function setAverages(/* array(Google_string) */ $averages) {
1248    $this->assertIsArray($averages, 'Google_string', __METHOD__);
1249    $this->averages = $averages;
1250  }
1251  public function getAverages() {
1252    return $this->averages;
1253  }
1254  public function setHeaders(/* array(Google_ReportHeaders) */ $headers) {
1255    $this->assertIsArray($headers, 'Google_ReportHeaders', __METHOD__);
1256    $this->headers = $headers;
1257  }
1258  public function getHeaders() {
1259    return $this->headers;
1260  }
1261  public function setKind( $kind) {
1262    $this->kind = $kind;
1263  }
1264  public function getKind() {
1265    return $this->kind;
1266  }
1267  public function setRows(/* array(Google_string) */ $rows) {
1268    $this->assertIsArray($rows, 'Google_string', __METHOD__);
1269    $this->rows = $rows;
1270  }
1271  public function getRows() {
1272    return $this->rows;
1273  }
1274  public function setTotalMatchedRows( $totalMatchedRows) {
1275    $this->totalMatchedRows = $totalMatchedRows;
1276  }
1277  public function getTotalMatchedRows() {
1278    return $this->totalMatchedRows;
1279  }
1280  public function setTotals(/* array(Google_string) */ $totals) {
1281    $this->assertIsArray($totals, 'Google_string', __METHOD__);
1282    $this->totals = $totals;
1283  }
1284  public function getTotals() {
1285    return $this->totals;
1286  }
1287  public function setWarnings(/* array(Google_string) */ $warnings) {
1288    $this->assertIsArray($warnings, 'Google_string', __METHOD__);
1289    $this->warnings = $warnings;
1290  }
1291  public function getWarnings() {
1292    return $this->warnings;
1293  }
1294}
1295
1296class Google_ReportHeaders extends Google_Model {
1297  public $currency;
1298  public $name;
1299  public $type;
1300  public function setCurrency( $currency) {
1301    $this->currency = $currency;
1302  }
1303  public function getCurrency() {
1304    return $this->currency;
1305  }
1306  public function setName( $name) {
1307    $this->name = $name;
1308  }
1309  public function getName() {
1310    return $this->name;
1311  }
1312  public function setType( $type) {
1313    $this->type = $type;
1314  }
1315  public function getType() {
1316    return $this->type;
1317  }
1318}
1319
1320class Google_UrlChannel extends Google_Model {
1321  public $id;
1322  public $kind;
1323  public $urlPattern;
1324  public function setId( $id) {
1325    $this->id = $id;
1326  }
1327  public function getId() {
1328    return $this->id;
1329  }
1330  public function setKind( $kind) {
1331    $this->kind = $kind;
1332  }
1333  public function getKind() {
1334    return $this->kind;
1335  }
1336  public function setUrlPattern( $urlPattern) {
1337    $this->urlPattern = $urlPattern;
1338  }
1339  public function getUrlPattern() {
1340    return $this->urlPattern;
1341  }
1342}
1343
1344class Google_UrlChannels extends Google_Model {
1345  public $etag;
1346  protected $__itemsType = 'Google_UrlChannel';
1347  protected $__itemsDataType = 'array';
1348  public $items;
1349  public $kind;
1350  public $nextPageToken;
1351  public function setEtag( $etag) {
1352    $this->etag = $etag;
1353  }
1354  public function getEtag() {
1355    return $this->etag;
1356  }
1357  public function setItems(/* array(Google_UrlChannel) */ $items) {
1358    $this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
1359    $this->items = $items;
1360  }
1361  public function getItems() {
1362    return $this->items;
1363  }
1364  public function setKind( $kind) {
1365    $this->kind = $kind;
1366  }
1367  public function getKind() {
1368    return $this->kind;
1369  }
1370  public function setNextPageToken( $nextPageToken) {
1371    $this->nextPageToken = $nextPageToken;
1372  }
1373  public function getNextPageToken() {
1374    return $this->nextPageToken;
1375  }
1376}
1377