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