Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 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 "urlchannels" collection of methods.
19
   * Typical usage is:
20
   *  <code>
21
   *   $adsenseService = new Google_AdsenseService(...);
22
   *   $urlchannels = $adsenseService->urlchannels;
23
   *  </code>
24
   */
25
  class Google_UrlchannelsServiceResource extends Google_ServiceResource {
26
 
27
 
28
    /**
29
     * List all URL channels in the specified ad client for this AdSense account. (urlchannels.list)
30
     *
31
     * @param string $adClientId Ad client for which to list URL channels.
32
     * @param array $optParams Optional parameters.
33
     *
34
     * @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.
35
     * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
36
     * @return Google_UrlChannels
37
     */
38
    public function listUrlchannels($adClientId, $optParams = array()) {
39
      $params = array('adClientId' => $adClientId);
40
      $params = array_merge($params, $optParams);
41
      $data = $this->__call('list', array($params));
42
      if ($this->useObjects()) {
43
        return new Google_UrlChannels($data);
44
      } else {
45
        return $data;
46
      }
47
    }
48
  }
49
 
50
  /**
51
   * The "adunits" collection of methods.
52
   * Typical usage is:
53
   *  <code>
54
   *   $adsenseService = new Google_AdsenseService(...);
55
   *   $adunits = $adsenseService->adunits;
56
   *  </code>
57
   */
58
  class Google_AdunitsServiceResource extends Google_ServiceResource {
59
 
60
 
61
    /**
62
     * List all ad units in the specified ad client for this AdSense account. (adunits.list)
63
     *
64
     * @param string $adClientId Ad client for which to list ad units.
65
     * @param array $optParams Optional parameters.
66
     *
67
     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
68
     * @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.
69
     * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
70
     * @return Google_AdUnits
71
     */
72
    public function listAdunits($adClientId, $optParams = array()) {
73
      $params = array('adClientId' => $adClientId);
74
      $params = array_merge($params, $optParams);
75
      $data = $this->__call('list', array($params));
76
      if ($this->useObjects()) {
77
        return new Google_AdUnits($data);
78
      } else {
79
        return $data;
80
      }
81
    }
82
    /**
83
     * Gets the specified ad unit in the specified ad client. (adunits.get)
84
     *
85
     * @param string $adClientId Ad client for which to get the ad unit.
86
     * @param string $adUnitId Ad unit to retrieve.
87
     * @param array $optParams Optional parameters.
88
     * @return Google_AdUnit
89
     */
90
    public function get($adClientId, $adUnitId, $optParams = array()) {
91
      $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
92
      $params = array_merge($params, $optParams);
93
      $data = $this->__call('get', array($params));
94
      if ($this->useObjects()) {
95
        return new Google_AdUnit($data);
96
      } else {
97
        return $data;
98
      }
99
    }
100
  }
101
 
102
  /**
103
   * The "customchannels" collection of methods.
104
   * Typical usage is:
105
   *  <code>
106
   *   $adsenseService = new Google_AdsenseService(...);
107
   *   $customchannels = $adsenseService->customchannels;
108
   *  </code>
109
   */
110
  class Google_AdunitsCustomchannelsServiceResource extends Google_ServiceResource {
111
 
112
 
113
    /**
114
     * List all custom channels which the specified ad unit belongs to. (customchannels.list)
115
     *
116
     * @param string $adClientId Ad client which contains the ad unit.
117
     * @param string $adUnitId Ad unit for which to list custom channels.
118
     * @param array $optParams Optional parameters.
119
     *
120
     * @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.
121
     * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
122
     * @return Google_CustomChannels
123
     */
124
    public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
125
      $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
126
      $params = array_merge($params, $optParams);
127
      $data = $this->__call('list', array($params));
128
      if ($this->useObjects()) {
129
        return new Google_CustomChannels($data);
130
      } else {
131
        return $data;
132
      }
133
    }
134
  }
135
 
136
  /**
137
   * The "adclients" collection of methods.
138
   * Typical usage is:
139
   *  <code>
140
   *   $adsenseService = new Google_AdsenseService(...);
141
   *   $adclients = $adsenseService->adclients;
142
   *  </code>
143
   */
144
  class Google_AdclientsServiceResource extends Google_ServiceResource {
145
 
146
 
147
    /**
148
     * List all ad clients in this AdSense account. (adclients.list)
149
     *
150
     * @param array $optParams Optional parameters.
151
     *
152
     * @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.
153
     * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
154
     * @return Google_AdClients
155
     */
156
    public function listAdclients($optParams = array()) {
157
      $params = array();
158
      $params = array_merge($params, $optParams);
159
      $data = $this->__call('list', array($params));
160
      if ($this->useObjects()) {
161
        return new Google_AdClients($data);
162
      } else {
163
        return $data;
164
      }
165
    }
166
  }
167
 
168
  /**
169
   * The "reports" collection of methods.
170
   * Typical usage is:
171
   *  <code>
172
   *   $adsenseService = new Google_AdsenseService(...);
173
   *   $reports = $adsenseService->reports;
174
   *  </code>
175
   */
176
  class Google_ReportsServiceResource extends Google_ServiceResource {
177
 
178
 
179
    /**
180
     * Generate an AdSense report based on the report request sent in the query parameters. Returns the
181
     * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
182
     * (reports.generate)
183
     *
184
     * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
185
     * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
186
     * @param array $optParams Optional parameters.
187
     *
188
     * @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.
189
     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
190
     * @opt_param string metric Numeric columns to include in the report.
191
     * @opt_param int maxResults The maximum number of rows of report data to return.
192
     * @opt_param string filter Filters to be run on the report.
193
     * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
194
     * @opt_param int startIndex Index of the first row of report data to return.
195
     * @opt_param string dimension Dimensions to base the report on.
196
     * @opt_param string accountId Accounts upon which to report.
197
     * @return Google_AdsenseReportsGenerateResponse
198
     */
199
    public function generate($startDate, $endDate, $optParams = array()) {
200
      $params = array('startDate' => $startDate, 'endDate' => $endDate);
201
      $params = array_merge($params, $optParams);
202
      $data = $this->__call('generate', array($params));
203
      if ($this->useObjects()) {
204
        return new Google_AdsenseReportsGenerateResponse($data);
205
      } else {
206
        return $data;
207
      }
208
    }
209
  }
210
 
211
  /**
212
   * The "accounts" collection of methods.
213
   * Typical usage is:
214
   *  <code>
215
   *   $adsenseService = new Google_AdsenseService(...);
216
   *   $accounts = $adsenseService->accounts;
217
   *  </code>
218
   */
219
  class Google_AccountsServiceResource extends Google_ServiceResource {
220
 
221
 
222
    /**
223
     * List all accounts available to this AdSense account. (accounts.list)
224
     *
225
     * @param array $optParams Optional parameters.
226
     *
227
     * @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.
228
     * @opt_param int maxResults The maximum number of accounts to include in the response, used for paging.
229
     * @return Google_Accounts
230
     */
231
    public function listAccounts($optParams = array()) {
232
      $params = array();
233
      $params = array_merge($params, $optParams);
234
      $data = $this->__call('list', array($params));
235
      if ($this->useObjects()) {
236
        return new Google_Accounts($data);
237
      } else {
238
        return $data;
239
      }
240
    }
241
    /**
242
     * Get information about the selected AdSense account. (accounts.get)
243
     *
244
     * @param string $accountId Account to get information about.
245
     * @param array $optParams Optional parameters.
246
     *
247
     * @opt_param bool tree Whether the tree of sub accounts should be returned.
248
     * @return Google_Account
249
     */
250
    public function get($accountId, $optParams = array()) {
251
      $params = array('accountId' => $accountId);
252
      $params = array_merge($params, $optParams);
253
      $data = $this->__call('get', array($params));
254
      if ($this->useObjects()) {
255
        return new Google_Account($data);
256
      } else {
257
        return $data;
258
      }
259
    }
260
  }
261
 
262
  /**
263
   * The "urlchannels" collection of methods.
264
   * Typical usage is:
265
   *  <code>
266
   *   $adsenseService = new Google_AdsenseService(...);
267
   *   $urlchannels = $adsenseService->urlchannels;
268
   *  </code>
269
   */
270
  class Google_AccountsUrlchannelsServiceResource extends Google_ServiceResource {
271
 
272
 
273
    /**
274
     * List all URL channels in the specified ad client for the specified account. (urlchannels.list)
275
     *
276
     * @param string $accountId Account to which the ad client belongs.
277
     * @param string $adClientId Ad client for which to list URL channels.
278
     * @param array $optParams Optional parameters.
279
     *
280
     * @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.
281
     * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
282
     * @return Google_UrlChannels
283
     */
284
    public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) {
285
      $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
286
      $params = array_merge($params, $optParams);
287
      $data = $this->__call('list', array($params));
288
      if ($this->useObjects()) {
289
        return new Google_UrlChannels($data);
290
      } else {
291
        return $data;
292
      }
293
    }
294
  }
295
  /**
296
   * The "adunits" collection of methods.
297
   * Typical usage is:
298
   *  <code>
299
   *   $adsenseService = new Google_AdsenseService(...);
300
   *   $adunits = $adsenseService->adunits;
301
   *  </code>
302
   */
303
  class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
304
 
305
 
306
    /**
307
     * List all ad units in the specified ad client for the specified account. (adunits.list)
308
     *
309
     * @param string $accountId Account to which the ad client belongs.
310
     * @param string $adClientId Ad client for which to list ad units.
311
     * @param array $optParams Optional parameters.
312
     *
313
     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
314
     * @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.
315
     * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
316
     * @return Google_AdUnits
317
     */
318
    public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
319
      $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
320
      $params = array_merge($params, $optParams);
321
      $data = $this->__call('list', array($params));
322
      if ($this->useObjects()) {
323
        return new Google_AdUnits($data);
324
      } else {
325
        return $data;
326
      }
327
    }
328
    /**
329
     * Gets the specified ad unit in the specified ad client for the specified account. (adunits.get)
330
     *
331
     * @param string $accountId Account to which the ad client belongs.
332
     * @param string $adClientId Ad client for which to get the ad unit.
333
     * @param string $adUnitId Ad unit to retrieve.
334
     * @param array $optParams Optional parameters.
335
     * @return Google_AdUnit
336
     */
337
    public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
338
      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
339
      $params = array_merge($params, $optParams);
340
      $data = $this->__call('get', array($params));
341
      if ($this->useObjects()) {
342
        return new Google_AdUnit($data);
343
      } else {
344
        return $data;
345
      }
346
    }
347
  }
348
 
349
  /**
350
   * The "customchannels" collection of methods.
351
   * Typical usage is:
352
   *  <code>
353
   *   $adsenseService = new Google_AdsenseService(...);
354
   *   $customchannels = $adsenseService->customchannels;
355
   *  </code>
356
   */
357
  class Google_AccountsAdunitsCustomchannelsServiceResource extends Google_ServiceResource {
358
 
359
 
360
    /**
361
     * List all custom channels which the specified ad unit belongs to. (customchannels.list)
362
     *
363
     * @param string $accountId Account to which the ad client belongs.
364
     * @param string $adClientId Ad client which contains the ad unit.
365
     * @param string $adUnitId Ad unit for which to list custom channels.
366
     * @param array $optParams Optional parameters.
367
     *
368
     * @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.
369
     * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
370
     * @return Google_CustomChannels
371
     */
372
    public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) {
373
      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
374
      $params = array_merge($params, $optParams);
375
      $data = $this->__call('list', array($params));
376
      if ($this->useObjects()) {
377
        return new Google_CustomChannels($data);
378
      } else {
379
        return $data;
380
      }
381
    }
382
  }
383
  /**
384
   * The "adclients" collection of methods.
385
   * Typical usage is:
386
   *  <code>
387
   *   $adsenseService = new Google_AdsenseService(...);
388
   *   $adclients = $adsenseService->adclients;
389
   *  </code>
390
   */
391
  class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
392
 
393
 
394
    /**
395
     * List all ad clients in the specified account. (adclients.list)
396
     *
397
     * @param string $accountId Account for which to list ad clients.
398
     * @param array $optParams Optional parameters.
399
     *
400
     * @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.
401
     * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
402
     * @return Google_AdClients
403
     */
404
    public function listAccountsAdclients($accountId, $optParams = array()) {
405
      $params = array('accountId' => $accountId);
406
      $params = array_merge($params, $optParams);
407
      $data = $this->__call('list', array($params));
408
      if ($this->useObjects()) {
409
        return new Google_AdClients($data);
410
      } else {
411
        return $data;
412
      }
413
    }
414
  }
415
  /**
416
   * The "reports" collection of methods.
417
   * Typical usage is:
418
   *  <code>
419
   *   $adsenseService = new Google_AdsenseService(...);
420
   *   $reports = $adsenseService->reports;
421
   *  </code>
422
   */
423
  class Google_AccountsReportsServiceResource extends Google_ServiceResource {
424
 
425
 
426
    /**
427
     * Generate an AdSense report based on the report request sent in the query parameters. Returns the
428
     * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
429
     * (reports.generate)
430
     *
431
     * @param string $accountId Account upon which to report.
432
     * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
433
     * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
434
     * @param array $optParams Optional parameters.
435
     *
436
     * @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.
437
     * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
438
     * @opt_param string metric Numeric columns to include in the report.
439
     * @opt_param int maxResults The maximum number of rows of report data to return.
440
     * @opt_param string filter Filters to be run on the report.
441
     * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
442
     * @opt_param int startIndex Index of the first row of report data to return.
443
     * @opt_param string dimension Dimensions to base the report on.
444
     * @return Google_AdsenseReportsGenerateResponse
445
     */
446
    public function generate($accountId, $startDate, $endDate, $optParams = array()) {
447
      $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
448
      $params = array_merge($params, $optParams);
449
      $data = $this->__call('generate', array($params));
450
      if ($this->useObjects()) {
451
        return new Google_AdsenseReportsGenerateResponse($data);
452
      } else {
453
        return $data;
454
      }
455
    }
456
  }
457
  /**
458
   * The "customchannels" collection of methods.
459
   * Typical usage is:
460
   *  <code>
461
   *   $adsenseService = new Google_AdsenseService(...);
462
   *   $customchannels = $adsenseService->customchannels;
463
   *  </code>
464
   */
465
  class Google_AccountsCustomchannelsServiceResource extends Google_ServiceResource {
466
 
467
 
468
    /**
469
     * List all custom channels in the specified ad client for the specified account.
470
     * (customchannels.list)
471
     *
472
     * @param string $accountId Account to which the ad client belongs.
473
     * @param string $adClientId Ad client for which to list custom channels.
474
     * @param array $optParams Optional parameters.
475
     *
476
     * @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.
477
     * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
478
     * @return Google_CustomChannels
479
     */
480
    public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) {
481
      $params = array('accountId' => $accountId, '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
     * Get the specified custom channel from the specified ad client for the specified account.
492
     * (customchannels.get)
493
     *
494
     * @param string $accountId Account to which the ad client belongs.
495
     * @param string $adClientId Ad client which contains the custom channel.
496
     * @param string $customChannelId Custom channel to retrieve.
497
     * @param array $optParams Optional parameters.
498
     * @return Google_CustomChannel
499
     */
500
    public function get($accountId, $adClientId, $customChannelId, $optParams = array()) {
501
      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
502
      $params = array_merge($params, $optParams);
503
      $data = $this->__call('get', array($params));
504
      if ($this->useObjects()) {
505
        return new Google_CustomChannel($data);
506
      } else {
507
        return $data;
508
      }
509
    }
510
  }
511
 
512
  /**
513
   * The "adunits" collection of methods.
514
   * Typical usage is:
515
   *  <code>
516
   *   $adsenseService = new Google_AdsenseService(...);
517
   *   $adunits = $adsenseService->adunits;
518
   *  </code>
519
   */
520
  class Google_AccountsCustomchannelsAdunitsServiceResource extends Google_ServiceResource {
521
 
522
 
523
    /**
524
     * List all ad units in the specified custom channel. (adunits.list)
525
     *
526
     * @param string $accountId Account to which the ad client belongs.
527
     * @param string $adClientId Ad client which contains the custom channel.
528
     * @param string $customChannelId Custom channel for which to list ad units.
529
     * @param array $optParams Optional parameters.
530
     *
531
     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
532
     * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
533
     * @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.
534
     * @return Google_AdUnits
535
     */
536
    public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) {
537
      $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
538
      $params = array_merge($params, $optParams);
539
      $data = $this->__call('list', array($params));
540
      if ($this->useObjects()) {
541
        return new Google_AdUnits($data);
542
      } else {
543
        return $data;
544
      }
545
    }
546
  }
547
 
548
  /**
549
   * The "customchannels" collection of methods.
550
   * Typical usage is:
551
   *  <code>
552
   *   $adsenseService = new Google_AdsenseService(...);
553
   *   $customchannels = $adsenseService->customchannels;
554
   *  </code>
555
   */
556
  class Google_CustomchannelsServiceResource extends Google_ServiceResource {
557
 
558
 
559
    /**
560
     * List all custom channels in the specified ad client for this AdSense account.
561
     * (customchannels.list)
562
     *
563
     * @param string $adClientId Ad client for which to list custom channels.
564
     * @param array $optParams Optional parameters.
565
     *
566
     * @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.
567
     * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
568
     * @return Google_CustomChannels
569
     */
570
    public function listCustomchannels($adClientId, $optParams = array()) {
571
      $params = array('adClientId' => $adClientId);
572
      $params = array_merge($params, $optParams);
573
      $data = $this->__call('list', array($params));
574
      if ($this->useObjects()) {
575
        return new Google_CustomChannels($data);
576
      } else {
577
        return $data;
578
      }
579
    }
580
    /**
581
     * Get the specified custom channel from the specified ad client. (customchannels.get)
582
     *
583
     * @param string $adClientId Ad client which contains the custom channel.
584
     * @param string $customChannelId Custom channel to retrieve.
585
     * @param array $optParams Optional parameters.
586
     * @return Google_CustomChannel
587
     */
588
    public function get($adClientId, $customChannelId, $optParams = array()) {
589
      $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
590
      $params = array_merge($params, $optParams);
591
      $data = $this->__call('get', array($params));
592
      if ($this->useObjects()) {
593
        return new Google_CustomChannel($data);
594
      } else {
595
        return $data;
596
      }
597
    }
598
  }
599
 
600
  /**
601
   * The "adunits" collection of methods.
602
   * Typical usage is:
603
   *  <code>
604
   *   $adsenseService = new Google_AdsenseService(...);
605
   *   $adunits = $adsenseService->adunits;
606
   *  </code>
607
   */
608
  class Google_CustomchannelsAdunitsServiceResource extends Google_ServiceResource {
609
 
610
 
611
    /**
612
     * List all ad units in the specified custom channel. (adunits.list)
613
     *
614
     * @param string $adClientId Ad client which contains the custom channel.
615
     * @param string $customChannelId Custom channel for which to list ad units.
616
     * @param array $optParams Optional parameters.
617
     *
618
     * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
619
     * @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.
620
     * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
621
     * @return Google_AdUnits
622
     */
623
    public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
624
      $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
625
      $params = array_merge($params, $optParams);
626
      $data = $this->__call('list', array($params));
627
      if ($this->useObjects()) {
628
        return new Google_AdUnits($data);
629
      } else {
630
        return $data;
631
      }
632
    }
633
  }
634
 
635
/**
636
 * Service definition for Google_Adsense (v1.1).
637
 *
638
 * <p>
639
 * Gives AdSense publishers access to their inventory and the ability to generate reports
640
 * </p>
641
 *
642
 * <p>
643
 * For more information about this service, see the
644
 * <a href="https://developers.google.com/adsense/management/" target="_blank">API Documentation</a>
645
 * </p>
646
 *
647
 * @author Google, Inc.
648
 */
649
class Google_AdsenseService extends Google_Service {
650
  public $urlchannels;
651
  public $adunits;
652
  public $adunits_customchannels;
653
  public $adclients;
654
  public $reports;
655
  public $accounts;
656
  public $accounts_urlchannels;
657
  public $accounts_adunits;
658
  public $accounts_adunits_customchannels;
659
  public $accounts_adclients;
660
  public $accounts_reports;
661
  public $accounts_customchannels;
662
  public $accounts_customchannels_adunits;
663
  public $customchannels;
664
  public $customchannels_adunits;
665
  /**
666
   * Constructs the internal representation of the Adsense service.
667
   *
668
   * @param Google_Client $client
669
   */
670
  public function __construct(Google_Client $client) {
671
    $this->servicePath = 'adsense/v1.1/';
672
    $this->version = 'v1.1';
673
    $this->serviceName = 'adsense';
674
 
675
    $client->addService($this->serviceName, $this->version);
676
    $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.urlchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}}}', true));
677
    $this->adunits = new Google_AdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.adunits.list", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.adunits.get", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
678
    $this->adunits_customchannels = new Google_AdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "adUnitId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.adunits.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", "response": {"$ref": "CustomChannels"}}}}', true));
679
    $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "response": {"$ref": "AdClients"}, "httpMethod": "GET", "path": "adclients", "id": "adsense.adclients.list"}}}', true));
680
    $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "int32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "int32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"repeated": true, "type": "string", "location": "query"}}, "id": "adsense.reports.generate", "httpMethod": "GET", "supportsMediaDownload": true, "path": "reports", "response": {"$ref": "AdsenseReportsGenerateResponse"}}}}', true));
681
    $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "response": {"$ref": "Accounts"}, "httpMethod": "GET", "path": "accounts", "id": "adsense.accounts.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"tree": {"type": "boolean", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.get", "httpMethod": "GET", "path": "accounts/{accountId}", "response": {"$ref": "Account"}}}}', true));
682
    $this->accounts_urlchannels = new Google_AccountsUrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.urlchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}}}', true));
683
    $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
684
    $this->accounts_adunits_customchannels = new Google_AccountsAdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.customchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels", "response": {"$ref": "CustomChannels"}}}}', true));
685
    $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adclients.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients", "response": {"$ref": "AdClients"}}}}', true));
686
    $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "int32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "int32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.reports.generate", "httpMethod": "GET", "supportsMediaDownload": true, "path": "accounts/{accountId}/reports", "response": {"$ref": "AdsenseReportsGenerateResponse"}}}}', true));
687
    $this->accounts_customchannels = new Google_AccountsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
688
    $this->accounts_customchannels_adunits = new Google_AccountsCustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits", "response": {"$ref": "AdUnits"}}}}', true));
689
    $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.customchannels.get", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
690
    $this->customchannels_adunits = new Google_CustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.customchannels.adunits.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", "response": {"$ref": "AdUnits"}}}}', true));
691
 
692
  }
693
}
694
 
695
class Google_Account extends Google_Model {
696
  public $kind;
697
  public $id;
698
  protected $__subAccountsType = 'Google_Account';
699
  protected $__subAccountsDataType = 'array';
700
  public $subAccounts;
701
  public $name;
702
  public function setKind($kind) {
703
    $this->kind = $kind;
704
  }
705
  public function getKind() {
706
    return $this->kind;
707
  }
708
  public function setId($id) {
709
    $this->id = $id;
710
  }
711
  public function getId() {
712
    return $this->id;
713
  }
714
  public function setSubAccounts($subAccounts) {
715
    $this->assertIsArray($subAccounts, 'Google_Account', __METHOD__);
716
    $this->subAccounts = $subAccounts;
717
  }
718
  public function getSubAccounts() {
719
    return $this->subAccounts;
720
  }
721
  public function setName($name) {
722
    $this->name = $name;
723
  }
724
  public function getName() {
725
    return $this->name;
726
  }
727
}
728
 
729
class Google_Accounts extends Google_Model {
730
  public $nextPageToken;
731
  protected $__itemsType = 'Google_Account';
732
  protected $__itemsDataType = 'array';
733
  public $items;
734
  public $kind;
735
  public $etag;
736
  public function setNextPageToken($nextPageToken) {
737
    $this->nextPageToken = $nextPageToken;
738
  }
739
  public function getNextPageToken() {
740
    return $this->nextPageToken;
741
  }
742
  public function setItems($items) {
743
    $this->assertIsArray($items, 'Google_Account', __METHOD__);
744
    $this->items = $items;
745
  }
746
  public function getItems() {
747
    return $this->items;
748
  }
749
  public function setKind($kind) {
750
    $this->kind = $kind;
751
  }
752
  public function getKind() {
753
    return $this->kind;
754
  }
755
  public function setEtag($etag) {
756
    $this->etag = $etag;
757
  }
758
  public function getEtag() {
759
    return $this->etag;
760
  }
761
}
762
 
763
class Google_AdClient extends Google_Model {
764
  public $productCode;
765
  public $kind;
766
  public $id;
767
  public $supportsReporting;
768
  public function setProductCode($productCode) {
769
    $this->productCode = $productCode;
770
  }
771
  public function getProductCode() {
772
    return $this->productCode;
773
  }
774
  public function setKind($kind) {
775
    $this->kind = $kind;
776
  }
777
  public function getKind() {
778
    return $this->kind;
779
  }
780
  public function setId($id) {
781
    $this->id = $id;
782
  }
783
  public function getId() {
784
    return $this->id;
785
  }
786
  public function setSupportsReporting($supportsReporting) {
787
    $this->supportsReporting = $supportsReporting;
788
  }
789
  public function getSupportsReporting() {
790
    return $this->supportsReporting;
791
  }
792
}
793
 
794
class Google_AdClients extends Google_Model {
795
  public $nextPageToken;
796
  protected $__itemsType = 'Google_AdClient';
797
  protected $__itemsDataType = 'array';
798
  public $items;
799
  public $kind;
800
  public $etag;
801
  public function setNextPageToken($nextPageToken) {
802
    $this->nextPageToken = $nextPageToken;
803
  }
804
  public function getNextPageToken() {
805
    return $this->nextPageToken;
806
  }
807
  public function setItems($items) {
808
    $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
809
    $this->items = $items;
810
  }
811
  public function getItems() {
812
    return $this->items;
813
  }
814
  public function setKind($kind) {
815
    $this->kind = $kind;
816
  }
817
  public function getKind() {
818
    return $this->kind;
819
  }
820
  public function setEtag($etag) {
821
    $this->etag = $etag;
822
  }
823
  public function getEtag() {
824
    return $this->etag;
825
  }
826
}
827
 
828
class Google_AdUnit extends Google_Model {
829
  public $status;
830
  public $kind;
831
  public $code;
832
  public $id;
833
  public $name;
834
  public function setStatus($status) {
835
    $this->status = $status;
836
  }
837
  public function getStatus() {
838
    return $this->status;
839
  }
840
  public function setKind($kind) {
841
    $this->kind = $kind;
842
  }
843
  public function getKind() {
844
    return $this->kind;
845
  }
846
  public function setCode($code) {
847
    $this->code = $code;
848
  }
849
  public function getCode() {
850
    return $this->code;
851
  }
852
  public function setId($id) {
853
    $this->id = $id;
854
  }
855
  public function getId() {
856
    return $this->id;
857
  }
858
  public function setName($name) {
859
    $this->name = $name;
860
  }
861
  public function getName() {
862
    return $this->name;
863
  }
864
}
865
 
866
class Google_AdUnits extends Google_Model {
867
  public $nextPageToken;
868
  protected $__itemsType = 'Google_AdUnit';
869
  protected $__itemsDataType = 'array';
870
  public $items;
871
  public $kind;
872
  public $etag;
873
  public function setNextPageToken($nextPageToken) {
874
    $this->nextPageToken = $nextPageToken;
875
  }
876
  public function getNextPageToken() {
877
    return $this->nextPageToken;
878
  }
879
  public function setItems($items) {
880
    $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
881
    $this->items = $items;
882
  }
883
  public function getItems() {
884
    return $this->items;
885
  }
886
  public function setKind($kind) {
887
    $this->kind = $kind;
888
  }
889
  public function getKind() {
890
    return $this->kind;
891
  }
892
  public function setEtag($etag) {
893
    $this->etag = $etag;
894
  }
895
  public function getEtag() {
896
    return $this->etag;
897
  }
898
}
899
 
900
class Google_AdsenseReportsGenerateResponse extends Google_Model {
901
  public $kind;
902
  public $rows;
903
  public $warnings;
904
  public $totals;
905
  protected $__headersType = 'Google_AdsenseReportsGenerateResponseHeaders';
906
  protected $__headersDataType = 'array';
907
  public $headers;
908
  public $totalMatchedRows;
909
  public $averages;
910
  public function setKind($kind) {
911
    $this->kind = $kind;
912
  }
913
  public function getKind() {
914
    return $this->kind;
915
  }
916
  public function setRows($rows) {
917
    $this->rows = $rows;
918
  }
919
  public function getRows() {
920
    return $this->rows;
921
  }
922
  public function setWarnings($warnings) {
923
    $this->warnings = $warnings;
924
  }
925
  public function getWarnings() {
926
    return $this->warnings;
927
  }
928
  public function setTotals($totals) {
929
    $this->totals = $totals;
930
  }
931
  public function getTotals() {
932
    return $this->totals;
933
  }
934
  public function setHeaders($headers) {
935
    $this->assertIsArray($headers, 'Google_AdsenseReportsGenerateResponseHeaders', __METHOD__);
936
    $this->headers = $headers;
937
  }
938
  public function getHeaders() {
939
    return $this->headers;
940
  }
941
  public function setTotalMatchedRows($totalMatchedRows) {
942
    $this->totalMatchedRows = $totalMatchedRows;
943
  }
944
  public function getTotalMatchedRows() {
945
    return $this->totalMatchedRows;
946
  }
947
  public function setAverages($averages) {
948
    $this->averages = $averages;
949
  }
950
  public function getAverages() {
951
    return $this->averages;
952
  }
953
}
954
 
955
class Google_AdsenseReportsGenerateResponseHeaders extends Google_Model {
956
  public $currency;
957
  public $type;
958
  public $name;
959
  public function setCurrency($currency) {
960
    $this->currency = $currency;
961
  }
962
  public function getCurrency() {
963
    return $this->currency;
964
  }
965
  public function setType($type) {
966
    $this->type = $type;
967
  }
968
  public function getType() {
969
    return $this->type;
970
  }
971
  public function setName($name) {
972
    $this->name = $name;
973
  }
974
  public function getName() {
975
    return $this->name;
976
  }
977
}
978
 
979
class Google_CustomChannel extends Google_Model {
980
  public $kind;
981
  public $code;
982
  protected $__targetingInfoType = 'Google_CustomChannelTargetingInfo';
983
  protected $__targetingInfoDataType = '';
984
  public $targetingInfo;
985
  public $id;
986
  public $name;
987
  public function setKind($kind) {
988
    $this->kind = $kind;
989
  }
990
  public function getKind() {
991
    return $this->kind;
992
  }
993
  public function setCode($code) {
994
    $this->code = $code;
995
  }
996
  public function getCode() {
997
    return $this->code;
998
  }
999
  public function setTargetingInfo(Google_CustomChannelTargetingInfo $targetingInfo) {
1000
    $this->targetingInfo = $targetingInfo;
1001
  }
1002
  public function getTargetingInfo() {
1003
    return $this->targetingInfo;
1004
  }
1005
  public function setId($id) {
1006
    $this->id = $id;
1007
  }
1008
  public function getId() {
1009
    return $this->id;
1010
  }
1011
  public function setName($name) {
1012
    $this->name = $name;
1013
  }
1014
  public function getName() {
1015
    return $this->name;
1016
  }
1017
}
1018
 
1019
class Google_CustomChannelTargetingInfo extends Google_Model {
1020
  public $location;
1021
  public $adsAppearOn;
1022
  public $siteLanguage;
1023
  public $description;
1024
  public function setLocation($location) {
1025
    $this->location = $location;
1026
  }
1027
  public function getLocation() {
1028
    return $this->location;
1029
  }
1030
  public function setAdsAppearOn($adsAppearOn) {
1031
    $this->adsAppearOn = $adsAppearOn;
1032
  }
1033
  public function getAdsAppearOn() {
1034
    return $this->adsAppearOn;
1035
  }
1036
  public function setSiteLanguage($siteLanguage) {
1037
    $this->siteLanguage = $siteLanguage;
1038
  }
1039
  public function getSiteLanguage() {
1040
    return $this->siteLanguage;
1041
  }
1042
  public function setDescription($description) {
1043
    $this->description = $description;
1044
  }
1045
  public function getDescription() {
1046
    return $this->description;
1047
  }
1048
}
1049
 
1050
class Google_CustomChannels extends Google_Model {
1051
  public $nextPageToken;
1052
  protected $__itemsType = 'Google_CustomChannel';
1053
  protected $__itemsDataType = 'array';
1054
  public $items;
1055
  public $kind;
1056
  public $etag;
1057
  public function setNextPageToken($nextPageToken) {
1058
    $this->nextPageToken = $nextPageToken;
1059
  }
1060
  public function getNextPageToken() {
1061
    return $this->nextPageToken;
1062
  }
1063
  public function setItems($items) {
1064
    $this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
1065
    $this->items = $items;
1066
  }
1067
  public function getItems() {
1068
    return $this->items;
1069
  }
1070
  public function setKind($kind) {
1071
    $this->kind = $kind;
1072
  }
1073
  public function getKind() {
1074
    return $this->kind;
1075
  }
1076
  public function setEtag($etag) {
1077
    $this->etag = $etag;
1078
  }
1079
  public function getEtag() {
1080
    return $this->etag;
1081
  }
1082
}
1083
 
1084
class Google_UrlChannel extends Google_Model {
1085
  public $kind;
1086
  public $id;
1087
  public $urlPattern;
1088
  public function setKind($kind) {
1089
    $this->kind = $kind;
1090
  }
1091
  public function getKind() {
1092
    return $this->kind;
1093
  }
1094
  public function setId($id) {
1095
    $this->id = $id;
1096
  }
1097
  public function getId() {
1098
    return $this->id;
1099
  }
1100
  public function setUrlPattern($urlPattern) {
1101
    $this->urlPattern = $urlPattern;
1102
  }
1103
  public function getUrlPattern() {
1104
    return $this->urlPattern;
1105
  }
1106
}
1107
 
1108
class Google_UrlChannels extends Google_Model {
1109
  public $nextPageToken;
1110
  protected $__itemsType = 'Google_UrlChannel';
1111
  protected $__itemsDataType = 'array';
1112
  public $items;
1113
  public $kind;
1114
  public $etag;
1115
  public function setNextPageToken($nextPageToken) {
1116
    $this->nextPageToken = $nextPageToken;
1117
  }
1118
  public function getNextPageToken() {
1119
    return $this->nextPageToken;
1120
  }
1121
  public function setItems($items) {
1122
    $this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
1123
    $this->items = $items;
1124
  }
1125
  public function getItems() {
1126
    return $this->items;
1127
  }
1128
  public function setKind($kind) {
1129
    $this->kind = $kind;
1130
  }
1131
  public function getKind() {
1132
    return $this->kind;
1133
  }
1134
  public function setEtag($etag) {
1135
    $this->etag = $etag;
1136
  }
1137
  public function getEtag() {
1138
    return $this->etag;
1139
  }
1140
}