PluginProbe
Authorizer / 2.2
Authorizer v2.2
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / inc / google-api-php-client / src / Google / Service / AdSenseHost.php

AdSenseHost.php in Authorizer 2.2, at inc/google-api-php-client/src/Google/Service/AdSenseHost.php

2,282 lines 60.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Copyright 2010 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18 /**
19 * Service definition for AdSenseHost (v4.1).
20 *
21 * <p>
22 * Gives AdSense Hosts access to report generation, ad code generation, and publisher management capabilities.
23 * </p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://developers.google.com/adsense/host/" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32 class Google_Service_AdSenseHost extends Google_Service
33 {
34 /** View and manage your AdSense host data and associated accounts. */
35 const ADSENSEHOST = "https://www.googleapis.com/auth/adsensehost";
36
37 public $accounts;
38 public $accounts_adclients;
39 public $accounts_adunits;
40 public $accounts_reports;
41 public $adclients;
42 public $associationsessions;
43 public $customchannels;
44 public $reports;
45 public $urlchannels;
46
47
48 /**
49 * Constructs the internal representation of the AdSenseHost service.
50 *
51 * @param Google_Client $client
52 */
53 public function __construct(Google_Client $client)
54 {
55 parent::__construct($client);
56 $this->servicePath = 'adsensehost/v4.1/';
57 $this->version = 'v4.1';
58 $this->serviceName = 'adsensehost';
59
60 $this->accounts = new Google_Service_AdSenseHost_Accounts_Resource(
61 $this,
62 $this->serviceName,
63 'accounts',
64 array(
65 'methods' => array(
66 'get' => array(
67 'path' => 'accounts/{accountId}',
68 'httpMethod' => 'GET',
69 'parameters' => array(
70 'accountId' => array(
71 'location' => 'path',
72 'type' => 'string',
73 'required' => true,
74 ),
75 ),
76 ),'list' => array(
77 'path' => 'accounts',
78 'httpMethod' => 'GET',
79 'parameters' => array(
80 'filterAdClientId' => array(
81 'location' => 'query',
82 'type' => 'string',
83 'repeated' => true,
84 'required' => true,
85 ),
86 ),
87 ),
88 )
89 )
90 );
91 $this->accounts_adclients = new Google_Service_AdSenseHost_AccountsAdclients_Resource(
92 $this,
93 $this->serviceName,
94 'adclients',
95 array(
96 'methods' => array(
97 'get' => array(
98 'path' => 'accounts/{accountId}/adclients/{adClientId}',
99 'httpMethod' => 'GET',
100 'parameters' => array(
101 'accountId' => array(
102 'location' => 'path',
103 'type' => 'string',
104 'required' => true,
105 ),
106 'adClientId' => array(
107 'location' => 'path',
108 'type' => 'string',
109 'required' => true,
110 ),
111 ),
112 ),'list' => array(
113 'path' => 'accounts/{accountId}/adclients',
114 'httpMethod' => 'GET',
115 'parameters' => array(
116 'accountId' => array(
117 'location' => 'path',
118 'type' => 'string',
119 'required' => true,
120 ),
121 'pageToken' => array(
122 'location' => 'query',
123 'type' => 'string',
124 ),
125 'maxResults' => array(
126 'location' => 'query',
127 'type' => 'integer',
128 ),
129 ),
130 ),
131 )
132 )
133 );
134 $this->accounts_adunits = new Google_Service_AdSenseHost_AccountsAdunits_Resource(
135 $this,
136 $this->serviceName,
137 'adunits',
138 array(
139 'methods' => array(
140 'delete' => array(
141 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
142 'httpMethod' => 'DELETE',
143 'parameters' => array(
144 'accountId' => array(
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ),
149 'adClientId' => array(
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ),
154 'adUnitId' => array(
155 'location' => 'path',
156 'type' => 'string',
157 'required' => true,
158 ),
159 ),
160 ),'get' => array(
161 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
162 'httpMethod' => 'GET',
163 'parameters' => array(
164 'accountId' => array(
165 'location' => 'path',
166 'type' => 'string',
167 'required' => true,
168 ),
169 'adClientId' => array(
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ),
174 'adUnitId' => array(
175 'location' => 'path',
176 'type' => 'string',
177 'required' => true,
178 ),
179 ),
180 ),'getAdCode' => array(
181 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',
182 'httpMethod' => 'GET',
183 'parameters' => array(
184 'accountId' => array(
185 'location' => 'path',
186 'type' => 'string',
187 'required' => true,
188 ),
189 'adClientId' => array(
190 'location' => 'path',
191 'type' => 'string',
192 'required' => true,
193 ),
194 'adUnitId' => array(
195 'location' => 'path',
196 'type' => 'string',
197 'required' => true,
198 ),
199 'hostCustomChannelId' => array(
200 'location' => 'query',
201 'type' => 'string',
202 'repeated' => true,
203 ),
204 ),
205 ),'insert' => array(
206 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
207 'httpMethod' => 'POST',
208 'parameters' => array(
209 'accountId' => array(
210 'location' => 'path',
211 'type' => 'string',
212 'required' => true,
213 ),
214 'adClientId' => array(
215 'location' => 'path',
216 'type' => 'string',
217 'required' => true,
218 ),
219 ),
220 ),'list' => array(
221 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
222 'httpMethod' => 'GET',
223 'parameters' => array(
224 'accountId' => array(
225 'location' => 'path',
226 'type' => 'string',
227 'required' => true,
228 ),
229 'adClientId' => array(
230 'location' => 'path',
231 'type' => 'string',
232 'required' => true,
233 ),
234 'includeInactive' => array(
235 'location' => 'query',
236 'type' => 'boolean',
237 ),
238 'pageToken' => array(
239 'location' => 'query',
240 'type' => 'string',
241 ),
242 'maxResults' => array(
243 'location' => 'query',
244 'type' => 'integer',
245 ),
246 ),
247 ),'patch' => array(
248 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
249 'httpMethod' => 'PATCH',
250 'parameters' => array(
251 'accountId' => array(
252 'location' => 'path',
253 'type' => 'string',
254 'required' => true,
255 ),
256 'adClientId' => array(
257 'location' => 'path',
258 'type' => 'string',
259 'required' => true,
260 ),
261 'adUnitId' => array(
262 'location' => 'query',
263 'type' => 'string',
264 'required' => true,
265 ),
266 ),
267 ),'update' => array(
268 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
269 'httpMethod' => 'PUT',
270 'parameters' => array(
271 'accountId' => array(
272 'location' => 'path',
273 'type' => 'string',
274 'required' => true,
275 ),
276 'adClientId' => array(
277 'location' => 'path',
278 'type' => 'string',
279 'required' => true,
280 ),
281 ),
282 ),
283 )
284 )
285 );
286 $this->accounts_reports = new Google_Service_AdSenseHost_AccountsReports_Resource(
287 $this,
288 $this->serviceName,
289 'reports',
290 array(
291 'methods' => array(
292 'generate' => array(
293 'path' => 'accounts/{accountId}/reports',
294 'httpMethod' => 'GET',
295 'parameters' => array(
296 'accountId' => array(
297 'location' => 'path',
298 'type' => 'string',
299 'required' => true,
300 ),
301 'startDate' => array(
302 'location' => 'query',
303 'type' => 'string',
304 'required' => true,
305 ),
306 'endDate' => array(
307 'location' => 'query',
308 'type' => 'string',
309 'required' => true,
310 ),
311 'sort' => array(
312 'location' => 'query',
313 'type' => 'string',
314 'repeated' => true,
315 ),
316 'locale' => array(
317 'location' => 'query',
318 'type' => 'string',
319 ),
320 'metric' => array(
321 'location' => 'query',
322 'type' => 'string',
323 'repeated' => true,
324 ),
325 'maxResults' => array(
326 'location' => 'query',
327 'type' => 'integer',
328 ),
329 'filter' => array(
330 'location' => 'query',
331 'type' => 'string',
332 'repeated' => true,
333 ),
334 'startIndex' => array(
335 'location' => 'query',
336 'type' => 'integer',
337 ),
338 'dimension' => array(
339 'location' => 'query',
340 'type' => 'string',
341 'repeated' => true,
342 ),
343 ),
344 ),
345 )
346 )
347 );
348 $this->adclients = new Google_Service_AdSenseHost_Adclients_Resource(
349 $this,
350 $this->serviceName,
351 'adclients',
352 array(
353 'methods' => array(
354 'get' => array(
355 'path' => 'adclients/{adClientId}',
356 'httpMethod' => 'GET',
357 'parameters' => array(
358 'adClientId' => array(
359 'location' => 'path',
360 'type' => 'string',
361 'required' => true,
362 ),
363 ),
364 ),'list' => array(
365 'path' => 'adclients',
366 'httpMethod' => 'GET',
367 'parameters' => array(
368 'pageToken' => array(
369 'location' => 'query',
370 'type' => 'string',
371 ),
372 'maxResults' => array(
373 'location' => 'query',
374 'type' => 'integer',
375 ),
376 ),
377 ),
378 )
379 )
380 );
381 $this->associationsessions = new Google_Service_AdSenseHost_Associationsessions_Resource(
382 $this,
383 $this->serviceName,
384 'associationsessions',
385 array(
386 'methods' => array(
387 'start' => array(
388 'path' => 'associationsessions/start',
389 'httpMethod' => 'GET',
390 'parameters' => array(
391 'productCode' => array(
392 'location' => 'query',
393 'type' => 'string',
394 'repeated' => true,
395 'required' => true,
396 ),
397 'websiteUrl' => array(
398 'location' => 'query',
399 'type' => 'string',
400 'required' => true,
401 ),
402 'websiteLocale' => array(
403 'location' => 'query',
404 'type' => 'string',
405 ),
406 'userLocale' => array(
407 'location' => 'query',
408 'type' => 'string',
409 ),
410 ),
411 ),'verify' => array(
412 'path' => 'associationsessions/verify',
413 'httpMethod' => 'GET',
414 'parameters' => array(
415 'token' => array(
416 'location' => 'query',
417 'type' => 'string',
418 'required' => true,
419 ),
420 ),
421 ),
422 )
423 )
424 );
425 $this->customchannels = new Google_Service_AdSenseHost_Customchannels_Resource(
426 $this,
427 $this->serviceName,
428 'customchannels',
429 array(
430 'methods' => array(
431 'delete' => array(
432 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
433 'httpMethod' => 'DELETE',
434 'parameters' => array(
435 'adClientId' => array(
436 'location' => 'path',
437 'type' => 'string',
438 'required' => true,
439 ),
440 'customChannelId' => array(
441 'location' => 'path',
442 'type' => 'string',
443 'required' => true,
444 ),
445 ),
446 ),'get' => array(
447 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
448 'httpMethod' => 'GET',
449 'parameters' => array(
450 'adClientId' => array(
451 'location' => 'path',
452 'type' => 'string',
453 'required' => true,
454 ),
455 'customChannelId' => array(
456 'location' => 'path',
457 'type' => 'string',
458 'required' => true,
459 ),
460 ),
461 ),'insert' => array(
462 'path' => 'adclients/{adClientId}/customchannels',
463 'httpMethod' => 'POST',
464 'parameters' => array(
465 'adClientId' => array(
466 'location' => 'path',
467 'type' => 'string',
468 'required' => true,
469 ),
470 ),
471 ),'list' => array(
472 'path' => 'adclients/{adClientId}/customchannels',
473 'httpMethod' => 'GET',
474 'parameters' => array(
475 'adClientId' => array(
476 'location' => 'path',
477 'type' => 'string',
478 'required' => true,
479 ),
480 'pageToken' => array(
481 'location' => 'query',
482 'type' => 'string',
483 ),
484 'maxResults' => array(
485 'location' => 'query',
486 'type' => 'integer',
487 ),
488 ),
489 ),'patch' => array(
490 'path' => 'adclients/{adClientId}/customchannels',
491 'httpMethod' => 'PATCH',
492 'parameters' => array(
493 'adClientId' => array(
494 'location' => 'path',
495 'type' => 'string',
496 'required' => true,
497 ),
498 'customChannelId' => array(
499 'location' => 'query',
500 'type' => 'string',
501 'required' => true,
502 ),
503 ),
504 ),'update' => array(
505 'path' => 'adclients/{adClientId}/customchannels',
506 'httpMethod' => 'PUT',
507 'parameters' => array(
508 'adClientId' => array(
509 'location' => 'path',
510 'type' => 'string',
511 'required' => true,
512 ),
513 ),
514 ),
515 )
516 )
517 );
518 $this->reports = new Google_Service_AdSenseHost_Reports_Resource(
519 $this,
520 $this->serviceName,
521 'reports',
522 array(
523 'methods' => array(
524 'generate' => array(
525 'path' => 'reports',
526 'httpMethod' => 'GET',
527 'parameters' => array(
528 'startDate' => array(
529 'location' => 'query',
530 'type' => 'string',
531 'required' => true,
532 ),
533 'endDate' => array(
534 'location' => 'query',
535 'type' => 'string',
536 'required' => true,
537 ),
538 'sort' => array(
539 'location' => 'query',
540 'type' => 'string',
541 'repeated' => true,
542 ),
543 'locale' => array(
544 'location' => 'query',
545 'type' => 'string',
546 ),
547 'metric' => array(
548 'location' => 'query',
549 'type' => 'string',
550 'repeated' => true,
551 ),
552 'maxResults' => array(
553 'location' => 'query',
554 'type' => 'integer',
555 ),
556 'filter' => array(
557 'location' => 'query',
558 'type' => 'string',
559 'repeated' => true,
560 ),
561 'startIndex' => array(
562 'location' => 'query',
563 'type' => 'integer',
564 ),
565 'dimension' => array(
566 'location' => 'query',
567 'type' => 'string',
568 'repeated' => true,
569 ),
570 ),
571 ),
572 )
573 )
574 );
575 $this->urlchannels = new Google_Service_AdSenseHost_Urlchannels_Resource(
576 $this,
577 $this->serviceName,
578 'urlchannels',
579 array(
580 'methods' => array(
581 'delete' => array(
582 'path' => 'adclients/{adClientId}/urlchannels/{urlChannelId}',
583 'httpMethod' => 'DELETE',
584 'parameters' => array(
585 'adClientId' => array(
586 'location' => 'path',
587 'type' => 'string',
588 'required' => true,
589 ),
590 'urlChannelId' => array(
591 'location' => 'path',
592 'type' => 'string',
593 'required' => true,
594 ),
595 ),
596 ),'insert' => array(
597 'path' => 'adclients/{adClientId}/urlchannels',
598 'httpMethod' => 'POST',
599 'parameters' => array(
600 'adClientId' => array(
601 'location' => 'path',
602 'type' => 'string',
603 'required' => true,
604 ),
605 ),
606 ),'list' => array(
607 'path' => 'adclients/{adClientId}/urlchannels',
608 'httpMethod' => 'GET',
609 'parameters' => array(
610 'adClientId' => array(
611 'location' => 'path',
612 'type' => 'string',
613 'required' => true,
614 ),
615 'pageToken' => array(
616 'location' => 'query',
617 'type' => 'string',
618 ),
619 'maxResults' => array(
620 'location' => 'query',
621 'type' => 'integer',
622 ),
623 ),
624 ),
625 )
626 )
627 );
628 }
629 }
630
631
632 /**
633 * The "accounts" collection of methods.
634 * Typical usage is:
635 * <code>
636 * $adsensehostService = new Google_Service_AdSenseHost(...);
637 * $accounts = $adsensehostService->accounts;
638 * </code>
639 */
640 class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resource
641 {
642
643 /**
644 * Get information about the selected associated AdSense account. (accounts.get)
645 *
646 * @param string $accountId
647 * Account to get information about.
648 * @param array $optParams Optional parameters.
649 * @return Google_Service_AdSenseHost_Account
650 */
651 public function get($accountId, $optParams = array())
652 {
653 $params = array('accountId' => $accountId);
654 $params = array_merge($params, $optParams);
655 return $this->call('get', array($params), "Google_Service_AdSenseHost_Account");
656 }
657 /**
658 * List hosted accounts associated with this AdSense account by ad client id.
659 * (accounts.listAccounts)
660 *
661 * @param string $filterAdClientId
662 * Ad clients to list accounts for.
663 * @param array $optParams Optional parameters.
664 * @return Google_Service_AdSenseHost_Accounts
665 */
666 public function listAccounts($filterAdClientId, $optParams = array())
667 {
668 $params = array('filterAdClientId' => $filterAdClientId);
669 $params = array_merge($params, $optParams);
670 return $this->call('list', array($params), "Google_Service_AdSenseHost_Accounts");
671 }
672 }
673
674 /**
675 * The "adclients" collection of methods.
676 * Typical usage is:
677 * <code>
678 * $adsensehostService = new Google_Service_AdSenseHost(...);
679 * $adclients = $adsensehostService->adclients;
680 * </code>
681 */
682 class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Service_Resource
683 {
684
685 /**
686 * Get information about one of the ad clients in the specified publisher's
687 * AdSense account. (adclients.get)
688 *
689 * @param string $accountId
690 * Account which contains the ad client.
691 * @param string $adClientId
692 * Ad client to get.
693 * @param array $optParams Optional parameters.
694 * @return Google_Service_AdSenseHost_AdClient
695 */
696 public function get($accountId, $adClientId, $optParams = array())
697 {
698 $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
699 $params = array_merge($params, $optParams);
700 return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
701 }
702 /**
703 * List all hosted ad clients in the specified hosted account.
704 * (adclients.listAccountsAdclients)
705 *
706 * @param string $accountId
707 * Account for which to list ad clients.
708 * @param array $optParams Optional parameters.
709 *
710 * @opt_param string pageToken
711 * A continuation token, used to page through ad clients. To retrieve the next page, set this
712 * parameter to the value of "nextPageToken" from the previous response.
713 * @opt_param string maxResults
714 * The maximum number of ad clients to include in the response, used for paging.
715 * @return Google_Service_AdSenseHost_AdClients
716 */
717 public function listAccountsAdclients($accountId, $optParams = array())
718 {
719 $params = array('accountId' => $accountId);
720 $params = array_merge($params, $optParams);
721 return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
722 }
723 }
724 /**
725 * The "adunits" collection of methods.
726 * Typical usage is:
727 * <code>
728 * $adsensehostService = new Google_Service_AdSenseHost(...);
729 * $adunits = $adsensehostService->adunits;
730 * </code>
731 */
732 class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service_Resource
733 {
734
735 /**
736 * Delete the specified ad unit from the specified publisher AdSense account.
737 * (adunits.delete)
738 *
739 * @param string $accountId
740 * Account which contains the ad unit.
741 * @param string $adClientId
742 * Ad client for which to get ad unit.
743 * @param string $adUnitId
744 * Ad unit to delete.
745 * @param array $optParams Optional parameters.
746 * @return Google_Service_AdSenseHost_AdUnit
747 */
748 public function delete($accountId, $adClientId, $adUnitId, $optParams = array())
749 {
750 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
751 $params = array_merge($params, $optParams);
752 return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit");
753 }
754 /**
755 * Get the specified host ad unit in this AdSense account. (adunits.get)
756 *
757 * @param string $accountId
758 * Account which contains the ad unit.
759 * @param string $adClientId
760 * Ad client for which to get ad unit.
761 * @param string $adUnitId
762 * Ad unit to get.
763 * @param array $optParams Optional parameters.
764 * @return Google_Service_AdSenseHost_AdUnit
765 */
766 public function get($accountId, $adClientId, $adUnitId, $optParams = array())
767 {
768 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
769 $params = array_merge($params, $optParams);
770 return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit");
771 }
772 /**
773 * Get ad code for the specified ad unit, attaching the specified host custom
774 * channels. (adunits.getAdCode)
775 *
776 * @param string $accountId
777 * Account which contains the ad client.
778 * @param string $adClientId
779 * Ad client with contains the ad unit.
780 * @param string $adUnitId
781 * Ad unit to get the code for.
782 * @param array $optParams Optional parameters.
783 *
784 * @opt_param string hostCustomChannelId
785 * Host custom channel to attach to the ad code.
786 * @return Google_Service_AdSenseHost_AdCode
787 */
788 public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
789 {
790 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
791 $params = array_merge($params, $optParams);
792 return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode");
793 }
794 /**
795 * Insert the supplied ad unit into the specified publisher AdSense account.
796 * (adunits.insert)
797 *
798 * @param string $accountId
799 * Account which will contain the ad unit.
800 * @param string $adClientId
801 * Ad client into which to insert the ad unit.
802 * @param Google_AdUnit $postBody
803 * @param array $optParams Optional parameters.
804 * @return Google_Service_AdSenseHost_AdUnit
805 */
806 public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
807 {
808 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
809 $params = array_merge($params, $optParams);
810 return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit");
811 }
812 /**
813 * List all ad units in the specified publisher's AdSense account.
814 * (adunits.listAccountsAdunits)
815 *
816 * @param string $accountId
817 * Account which contains the ad client.
818 * @param string $adClientId
819 * Ad client for which to list ad units.
820 * @param array $optParams Optional parameters.
821 *
822 * @opt_param bool includeInactive
823 * Whether to include inactive ad units. Default: true.
824 * @opt_param string pageToken
825 * A continuation token, used to page through ad units. To retrieve the next page, set this
826 * parameter to the value of "nextPageToken" from the previous response.
827 * @opt_param string maxResults
828 * The maximum number of ad units to include in the response, used for paging.
829 * @return Google_Service_AdSenseHost_AdUnits
830 */
831 public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
832 {
833 $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
834 $params = array_merge($params, $optParams);
835 return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits");
836 }
837 /**
838 * Update the supplied ad unit in the specified publisher AdSense account. This
839 * method supports patch semantics. (adunits.patch)
840 *
841 * @param string $accountId
842 * Account which contains the ad client.
843 * @param string $adClientId
844 * Ad client which contains the ad unit.
845 * @param string $adUnitId
846 * Ad unit to get.
847 * @param Google_AdUnit $postBody
848 * @param array $optParams Optional parameters.
849 * @return Google_Service_AdSenseHost_AdUnit
850 */
851 public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
852 {
853 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
854 $params = array_merge($params, $optParams);
855 return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit");
856 }
857 /**
858 * Update the supplied ad unit in the specified publisher AdSense account.
859 * (adunits.update)
860 *
861 * @param string $accountId
862 * Account which contains the ad client.
863 * @param string $adClientId
864 * Ad client which contains the ad unit.
865 * @param Google_AdUnit $postBody
866 * @param array $optParams Optional parameters.
867 * @return Google_Service_AdSenseHost_AdUnit
868 */
869 public function update($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
870 {
871 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
872 $params = array_merge($params, $optParams);
873 return $this->call('update', array($params), "Google_Service_AdSenseHost_AdUnit");
874 }
875 }
876 /**
877 * The "reports" collection of methods.
878 * Typical usage is:
879 * <code>
880 * $adsensehostService = new Google_Service_AdSenseHost(...);
881 * $reports = $adsensehostService->reports;
882 * </code>
883 */
884 class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service_Resource
885 {
886
887 /**
888 * Generate an AdSense report based on the report request sent in the query
889 * parameters. Returns the result as JSON; to retrieve output in CSV format
890 * specify "alt=csv" as a query parameter. (reports.generate)
891 *
892 * @param string $accountId
893 * Hosted account upon which to report.
894 * @param string $startDate
895 * Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
896 * @param string $endDate
897 * End of the date range to report on in "YYYY-MM-DD" format, inclusive.
898 * @param array $optParams Optional parameters.
899 *
900 * @opt_param string sort
901 * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+"
902 * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted
903 * ascending.
904 * @opt_param string locale
905 * Optional locale to use for translating report output to a local language. Defaults to "en_US" if
906 * not specified.
907 * @opt_param string metric
908 * Numeric columns to include in the report.
909 * @opt_param string maxResults
910 * The maximum number of rows of report data to return.
911 * @opt_param string filter
912 * Filters to be run on the report.
913 * @opt_param string startIndex
914 * Index of the first row of report data to return.
915 * @opt_param string dimension
916 * Dimensions to base the report on.
917 * @return Google_Service_AdSenseHost_Report
918 */
919 public function generate($accountId, $startDate, $endDate, $optParams = array())
920 {
921 $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
922 $params = array_merge($params, $optParams);
923 return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
924 }
925 }
926
927 /**
928 * The "adclients" collection of methods.
929 * Typical usage is:
930 * <code>
931 * $adsensehostService = new Google_Service_AdSenseHost(...);
932 * $adclients = $adsensehostService->adclients;
933 * </code>
934 */
935 class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resource
936 {
937
938 /**
939 * Get information about one of the ad clients in the Host AdSense account.
940 * (adclients.get)
941 *
942 * @param string $adClientId
943 * Ad client to get.
944 * @param array $optParams Optional parameters.
945 * @return Google_Service_AdSenseHost_AdClient
946 */
947 public function get($adClientId, $optParams = array())
948 {
949 $params = array('adClientId' => $adClientId);
950 $params = array_merge($params, $optParams);
951 return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
952 }
953 /**
954 * List all host ad clients in this AdSense account. (adclients.listAdclients)
955 *
956 * @param array $optParams Optional parameters.
957 *
958 * @opt_param string pageToken
959 * A continuation token, used to page through ad clients. To retrieve the next page, set this
960 * parameter to the value of "nextPageToken" from the previous response.
961 * @opt_param string maxResults
962 * The maximum number of ad clients to include in the response, used for paging.
963 * @return Google_Service_AdSenseHost_AdClients
964 */
965 public function listAdclients($optParams = array())
966 {
967 $params = array();
968 $params = array_merge($params, $optParams);
969 return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
970 }
971 }
972
973 /**
974 * The "associationsessions" collection of methods.
975 * Typical usage is:
976 * <code>
977 * $adsensehostService = new Google_Service_AdSenseHost(...);
978 * $associationsessions = $adsensehostService->associationsessions;
979 * </code>
980 */
981 class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Service_Resource
982 {
983
984 /**
985 * Create an association session for initiating an association with an AdSense
986 * user. (associationsessions.start)
987 *
988 * @param string $productCode
989 * Products to associate with the user.
990 * @param string $websiteUrl
991 * The URL of the user's hosted website.
992 * @param array $optParams Optional parameters.
993 *
994 * @opt_param string websiteLocale
995 * The locale of the user's hosted website.
996 * @opt_param string userLocale
997 * The preferred locale of the user.
998 * @return Google_Service_AdSenseHost_AssociationSession
999 */
1000 public function start($productCode, $websiteUrl, $optParams = array())
1001 {
1002 $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
1003 $params = array_merge($params, $optParams);
1004 return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession");
1005 }
1006 /**
1007 * Verify an association session after the association callback returns from
1008 * AdSense signup. (associationsessions.verify)
1009 *
1010 * @param string $token
1011 * The token returned to the association callback URL.
1012 * @param array $optParams Optional parameters.
1013 * @return Google_Service_AdSenseHost_AssociationSession
1014 */
1015 public function verify($token, $optParams = array())
1016 {
1017 $params = array('token' => $token);
1018 $params = array_merge($params, $optParams);
1019 return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession");
1020 }
1021 }
1022
1023 /**
1024 * The "customchannels" collection of methods.
1025 * Typical usage is:
1026 * <code>
1027 * $adsensehostService = new Google_Service_AdSenseHost(...);
1028 * $customchannels = $adsensehostService->customchannels;
1029 * </code>
1030 */
1031 class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_Resource
1032 {
1033
1034 /**
1035 * Delete a specific custom channel from the host AdSense account.
1036 * (customchannels.delete)
1037 *
1038 * @param string $adClientId
1039 * Ad client from which to delete the custom channel.
1040 * @param string $customChannelId
1041 * Custom channel to delete.
1042 * @param array $optParams Optional parameters.
1043 * @return Google_Service_AdSenseHost_CustomChannel
1044 */
1045 public function delete($adClientId, $customChannelId, $optParams = array())
1046 {
1047 $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1048 $params = array_merge($params, $optParams);
1049 return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel");
1050 }
1051 /**
1052 * Get a specific custom channel from the host AdSense account.
1053 * (customchannels.get)
1054 *
1055 * @param string $adClientId
1056 * Ad client from which to get the custom channel.
1057 * @param string $customChannelId
1058 * Custom channel to get.
1059 * @param array $optParams Optional parameters.
1060 * @return Google_Service_AdSenseHost_CustomChannel
1061 */
1062 public function get($adClientId, $customChannelId, $optParams = array())
1063 {
1064 $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1065 $params = array_merge($params, $optParams);
1066 return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel");
1067 }
1068 /**
1069 * Add a new custom channel to the host AdSense account. (customchannels.insert)
1070 *
1071 * @param string $adClientId
1072 * Ad client to which the new custom channel will be added.
1073 * @param Google_CustomChannel $postBody
1074 * @param array $optParams Optional parameters.
1075 * @return Google_Service_AdSenseHost_CustomChannel
1076 */
1077 public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1078 {
1079 $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1080 $params = array_merge($params, $optParams);
1081 return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel");
1082 }
1083 /**
1084 * List all host custom channels in this AdSense account.
1085 * (customchannels.listCustomchannels)
1086 *
1087 * @param string $adClientId
1088 * Ad client for which to list custom channels.
1089 * @param array $optParams Optional parameters.
1090 *
1091 * @opt_param string pageToken
1092 * A continuation token, used to page through custom channels. To retrieve the next page, set this
1093 * parameter to the value of "nextPageToken" from the previous response.
1094 * @opt_param string maxResults
1095 * The maximum number of custom channels to include in the response, used for paging.
1096 * @return Google_Service_AdSenseHost_CustomChannels
1097 */
1098 public function listCustomchannels($adClientId, $optParams = array())
1099 {
1100 $params = array('adClientId' => $adClientId);
1101 $params = array_merge($params, $optParams);
1102 return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels");
1103 }
1104 /**
1105 * Update a custom channel in the host AdSense account. This method supports
1106 * patch semantics. (customchannels.patch)
1107 *
1108 * @param string $adClientId
1109 * Ad client in which the custom channel will be updated.
1110 * @param string $customChannelId
1111 * Custom channel to get.
1112 * @param Google_CustomChannel $postBody
1113 * @param array $optParams Optional parameters.
1114 * @return Google_Service_AdSenseHost_CustomChannel
1115 */
1116 public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1117 {
1118 $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
1119 $params = array_merge($params, $optParams);
1120 return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel");
1121 }
1122 /**
1123 * Update a custom channel in the host AdSense account. (customchannels.update)
1124 *
1125 * @param string $adClientId
1126 * Ad client in which the custom channel will be updated.
1127 * @param Google_CustomChannel $postBody
1128 * @param array $optParams Optional parameters.
1129 * @return Google_Service_AdSenseHost_CustomChannel
1130 */
1131 public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1132 {
1133 $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1134 $params = array_merge($params, $optParams);
1135 return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel");
1136 }
1137 }
1138
1139 /**
1140 * The "reports" collection of methods.
1141 * Typical usage is:
1142 * <code>
1143 * $adsensehostService = new Google_Service_AdSenseHost(...);
1144 * $reports = $adsensehostService->reports;
1145 * </code>
1146 */
1147 class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resource
1148 {
1149
1150 /**
1151 * Generate an AdSense report based on the report request sent in the query
1152 * parameters. Returns the result as JSON; to retrieve output in CSV format
1153 * specify "alt=csv" as a query parameter. (reports.generate)
1154 *
1155 * @param string $startDate
1156 * Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
1157 * @param string $endDate
1158 * End of the date range to report on in "YYYY-MM-DD" format, inclusive.
1159 * @param array $optParams Optional parameters.
1160 *
1161 * @opt_param string sort
1162 * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+"
1163 * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted
1164 * ascending.
1165 * @opt_param string locale
1166 * Optional locale to use for translating report output to a local language. Defaults to "en_US" if
1167 * not specified.
1168 * @opt_param string metric
1169 * Numeric columns to include in the report.
1170 * @opt_param string maxResults
1171 * The maximum number of rows of report data to return.
1172 * @opt_param string filter
1173 * Filters to be run on the report.
1174 * @opt_param string startIndex
1175 * Index of the first row of report data to return.
1176 * @opt_param string dimension
1177 * Dimensions to base the report on.
1178 * @return Google_Service_AdSenseHost_Report
1179 */
1180 public function generate($startDate, $endDate, $optParams = array())
1181 {
1182 $params = array('startDate' => $startDate, 'endDate' => $endDate);
1183 $params = array_merge($params, $optParams);
1184 return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
1185 }
1186 }
1187
1188 /**
1189 * The "urlchannels" collection of methods.
1190 * Typical usage is:
1191 * <code>
1192 * $adsensehostService = new Google_Service_AdSenseHost(...);
1193 * $urlchannels = $adsensehostService->urlchannels;
1194 * </code>
1195 */
1196 class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Resource
1197 {
1198
1199 /**
1200 * Delete a URL channel from the host AdSense account. (urlchannels.delete)
1201 *
1202 * @param string $adClientId
1203 * Ad client from which to delete the URL channel.
1204 * @param string $urlChannelId
1205 * URL channel to delete.
1206 * @param array $optParams Optional parameters.
1207 * @return Google_Service_AdSenseHost_UrlChannel
1208 */
1209 public function delete($adClientId, $urlChannelId, $optParams = array())
1210 {
1211 $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
1212 $params = array_merge($params, $optParams);
1213 return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel");
1214 }
1215 /**
1216 * Add a new URL channel to the host AdSense account. (urlchannels.insert)
1217 *
1218 * @param string $adClientId
1219 * Ad client to which the new URL channel will be added.
1220 * @param Google_UrlChannel $postBody
1221 * @param array $optParams Optional parameters.
1222 * @return Google_Service_AdSenseHost_UrlChannel
1223 */
1224 public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array())
1225 {
1226 $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1227 $params = array_merge($params, $optParams);
1228 return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel");
1229 }
1230 /**
1231 * List all host URL channels in the host AdSense account.
1232 * (urlchannels.listUrlchannels)
1233 *
1234 * @param string $adClientId
1235 * Ad client for which to list URL channels.
1236 * @param array $optParams Optional parameters.
1237 *
1238 * @opt_param string pageToken
1239 * A continuation token, used to page through URL channels. To retrieve the next page, set this
1240 * parameter to the value of "nextPageToken" from the previous response.
1241 * @opt_param string maxResults
1242 * The maximum number of URL channels to include in the response, used for paging.
1243 * @return Google_Service_AdSenseHost_UrlChannels
1244 */
1245 public function listUrlchannels($adClientId, $optParams = array())
1246 {
1247 $params = array('adClientId' => $adClientId);
1248 $params = array_merge($params, $optParams);
1249 return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels");
1250 }
1251 }
1252
1253
1254
1255
1256 class Google_Service_AdSenseHost_Account extends Google_Model
1257 {
1258 public $id;
1259 public $kind;
1260 public $name;
1261 public $status;
1262
1263 public function setId($id)
1264 {
1265 $this->id = $id;
1266 }
1267
1268 public function getId()
1269 {
1270 return $this->id;
1271 }
1272
1273 public function setKind($kind)
1274 {
1275 $this->kind = $kind;
1276 }
1277
1278 public function getKind()
1279 {
1280 return $this->kind;
1281 }
1282
1283 public function setName($name)
1284 {
1285 $this->name = $name;
1286 }
1287
1288 public function getName()
1289 {
1290 return $this->name;
1291 }
1292
1293 public function setStatus($status)
1294 {
1295 $this->status = $status;
1296 }
1297
1298 public function getStatus()
1299 {
1300 return $this->status;
1301 }
1302 }
1303
1304 class Google_Service_AdSenseHost_Accounts extends Google_Collection
1305 {
1306 public $etag;
1307 protected $itemsType = 'Google_Service_AdSenseHost_Account';
1308 protected $itemsDataType = 'array';
1309 public $kind;
1310
1311 public function setEtag($etag)
1312 {
1313 $this->etag = $etag;
1314 }
1315
1316 public function getEtag()
1317 {
1318 return $this->etag;
1319 }
1320
1321 public function setItems($items)
1322 {
1323 $this->items = $items;
1324 }
1325
1326 public function getItems()
1327 {
1328 return $this->items;
1329 }
1330
1331 public function setKind($kind)
1332 {
1333 $this->kind = $kind;
1334 }
1335
1336 public function getKind()
1337 {
1338 return $this->kind;
1339 }
1340 }
1341
1342 class Google_Service_AdSenseHost_AdClient extends Google_Model
1343 {
1344 public $arcOptIn;
1345 public $id;
1346 public $kind;
1347 public $productCode;
1348 public $supportsReporting;
1349
1350 public function setArcOptIn($arcOptIn)
1351 {
1352 $this->arcOptIn = $arcOptIn;
1353 }
1354
1355 public function getArcOptIn()
1356 {
1357 return $this->arcOptIn;
1358 }
1359
1360 public function setId($id)
1361 {
1362 $this->id = $id;
1363 }
1364
1365 public function getId()
1366 {
1367 return $this->id;
1368 }
1369
1370 public function setKind($kind)
1371 {
1372 $this->kind = $kind;
1373 }
1374
1375 public function getKind()
1376 {
1377 return $this->kind;
1378 }
1379
1380 public function setProductCode($productCode)
1381 {
1382 $this->productCode = $productCode;
1383 }
1384
1385 public function getProductCode()
1386 {
1387 return $this->productCode;
1388 }
1389
1390 public function setSupportsReporting($supportsReporting)
1391 {
1392 $this->supportsReporting = $supportsReporting;
1393 }
1394
1395 public function getSupportsReporting()
1396 {
1397 return $this->supportsReporting;
1398 }
1399 }
1400
1401 class Google_Service_AdSenseHost_AdClients extends Google_Collection
1402 {
1403 public $etag;
1404 protected $itemsType = 'Google_Service_AdSenseHost_AdClient';
1405 protected $itemsDataType = 'array';
1406 public $kind;
1407 public $nextPageToken;
1408
1409 public function setEtag($etag)
1410 {
1411 $this->etag = $etag;
1412 }
1413
1414 public function getEtag()
1415 {
1416 return $this->etag;
1417 }
1418
1419 public function setItems($items)
1420 {
1421 $this->items = $items;
1422 }
1423
1424 public function getItems()
1425 {
1426 return $this->items;
1427 }
1428
1429 public function setKind($kind)
1430 {
1431 $this->kind = $kind;
1432 }
1433
1434 public function getKind()
1435 {
1436 return $this->kind;
1437 }
1438
1439 public function setNextPageToken($nextPageToken)
1440 {
1441 $this->nextPageToken = $nextPageToken;
1442 }
1443
1444 public function getNextPageToken()
1445 {
1446 return $this->nextPageToken;
1447 }
1448 }
1449
1450 class Google_Service_AdSenseHost_AdCode extends Google_Model
1451 {
1452 public $adCode;
1453 public $kind;
1454
1455 public function setAdCode($adCode)
1456 {
1457 $this->adCode = $adCode;
1458 }
1459
1460 public function getAdCode()
1461 {
1462 return $this->adCode;
1463 }
1464
1465 public function setKind($kind)
1466 {
1467 $this->kind = $kind;
1468 }
1469
1470 public function getKind()
1471 {
1472 return $this->kind;
1473 }
1474 }
1475
1476 class Google_Service_AdSenseHost_AdStyle extends Google_Model
1477 {
1478 protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors';
1479 protected $colorsDataType = '';
1480 public $corners;
1481 protected $fontType = 'Google_Service_AdSenseHost_AdStyleFont';
1482 protected $fontDataType = '';
1483 public $kind;
1484
1485 public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors)
1486 {
1487 $this->colors = $colors;
1488 }
1489
1490 public function getColors()
1491 {
1492 return $this->colors;
1493 }
1494
1495 public function setCorners($corners)
1496 {
1497 $this->corners = $corners;
1498 }
1499
1500 public function getCorners()
1501 {
1502 return $this->corners;
1503 }
1504
1505 public function setFont(Google_Service_AdSenseHost_AdStyleFont $font)
1506 {
1507 $this->font = $font;
1508 }
1509
1510 public function getFont()
1511 {
1512 return $this->font;
1513 }
1514
1515 public function setKind($kind)
1516 {
1517 $this->kind = $kind;
1518 }
1519
1520 public function getKind()
1521 {
1522 return $this->kind;
1523 }
1524 }
1525
1526 class Google_Service_AdSenseHost_AdStyleColors extends Google_Model
1527 {
1528 public $background;
1529 public $border;
1530 public $text;
1531 public $title;
1532 public $url;
1533
1534 public function setBackground($background)
1535 {
1536 $this->background = $background;
1537 }
1538
1539 public function getBackground()
1540 {
1541 return $this->background;
1542 }
1543
1544 public function setBorder($border)
1545 {
1546 $this->border = $border;
1547 }
1548
1549 public function getBorder()
1550 {
1551 return $this->border;
1552 }
1553
1554 public function setText($text)
1555 {
1556 $this->text = $text;
1557 }
1558
1559 public function getText()
1560 {
1561 return $this->text;
1562 }
1563
1564 public function setTitle($title)
1565 {
1566 $this->title = $title;
1567 }
1568
1569 public function getTitle()
1570 {
1571 return $this->title;
1572 }
1573
1574 public function setUrl($url)
1575 {
1576 $this->url = $url;
1577 }
1578
1579 public function getUrl()
1580 {
1581 return $this->url;
1582 }
1583 }
1584
1585 class Google_Service_AdSenseHost_AdStyleFont extends Google_Model
1586 {
1587 public $family;
1588 public $size;
1589
1590 public function setFamily($family)
1591 {
1592 $this->family = $family;
1593 }
1594
1595 public function getFamily()
1596 {
1597 return $this->family;
1598 }
1599
1600 public function setSize($size)
1601 {
1602 $this->size = $size;
1603 }
1604
1605 public function getSize()
1606 {
1607 return $this->size;
1608 }
1609 }
1610
1611 class Google_Service_AdSenseHost_AdUnit extends Google_Model
1612 {
1613 public $code;
1614 protected $contentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettings';
1615 protected $contentAdsSettingsDataType = '';
1616 protected $customStyleType = 'Google_Service_AdSenseHost_AdStyle';
1617 protected $customStyleDataType = '';
1618 public $id;
1619 public $kind;
1620 protected $mobileContentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings';
1621 protected $mobileContentAdsSettingsDataType = '';
1622 public $name;
1623 public $status;
1624
1625 public function setCode($code)
1626 {
1627 $this->code = $code;
1628 }
1629
1630 public function getCode()
1631 {
1632 return $this->code;
1633 }
1634
1635 public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAdsSettings $contentAdsSettings)
1636 {
1637 $this->contentAdsSettings = $contentAdsSettings;
1638 }
1639
1640 public function getContentAdsSettings()
1641 {
1642 return $this->contentAdsSettings;
1643 }
1644
1645 public function setCustomStyle(Google_Service_AdSenseHost_AdStyle $customStyle)
1646 {
1647 $this->customStyle = $customStyle;
1648 }
1649
1650 public function getCustomStyle()
1651 {
1652 return $this->customStyle;
1653 }
1654
1655 public function setId($id)
1656 {
1657 $this->id = $id;
1658 }
1659
1660 public function getId()
1661 {
1662 return $this->id;
1663 }
1664
1665 public function setKind($kind)
1666 {
1667 $this->kind = $kind;
1668 }
1669
1670 public function getKind()
1671 {
1672 return $this->kind;
1673 }
1674
1675 public function setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
1676 {
1677 $this->mobileContentAdsSettings = $mobileContentAdsSettings;
1678 }
1679
1680 public function getMobileContentAdsSettings()
1681 {
1682 return $this->mobileContentAdsSettings;
1683 }
1684
1685 public function setName($name)
1686 {
1687 $this->name = $name;
1688 }
1689
1690 public function getName()
1691 {
1692 return $this->name;
1693 }
1694
1695 public function setStatus($status)
1696 {
1697 $this->status = $status;
1698 }
1699
1700 public function getStatus()
1701 {
1702 return $this->status;
1703 }
1704 }
1705
1706 class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model
1707 {
1708 protected $backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption';
1709 protected $backupOptionDataType = '';
1710 public $size;
1711 public $type;
1712
1713 public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption)
1714 {
1715 $this->backupOption = $backupOption;
1716 }
1717
1718 public function getBackupOption()
1719 {
1720 return $this->backupOption;
1721 }
1722
1723 public function setSize($size)
1724 {
1725 $this->size = $size;
1726 }
1727
1728 public function getSize()
1729 {
1730 return $this->size;
1731 }
1732
1733 public function setType($type)
1734 {
1735 $this->type = $type;
1736 }
1737
1738 public function getType()
1739 {
1740 return $this->type;
1741 }
1742 }
1743
1744 class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model
1745 {
1746 public $color;
1747 public $type;
1748 public $url;
1749
1750 public function setColor($color)
1751 {
1752 $this->color = $color;
1753 }
1754
1755 public function getColor()
1756 {
1757 return $this->color;
1758 }
1759
1760 public function setType($type)
1761 {
1762 $this->type = $type;
1763 }
1764
1765 public function getType()
1766 {
1767 return $this->type;
1768 }
1769
1770 public function setUrl($url)
1771 {
1772 $this->url = $url;
1773 }
1774
1775 public function getUrl()
1776 {
1777 return $this->url;
1778 }
1779 }
1780
1781 class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model
1782 {
1783 public $markupLanguage;
1784 public $scriptingLanguage;
1785 public $size;
1786 public $type;
1787
1788 public function setMarkupLanguage($markupLanguage)
1789 {
1790 $this->markupLanguage = $markupLanguage;
1791 }
1792
1793 public function getMarkupLanguage()
1794 {
1795 return $this->markupLanguage;
1796 }
1797
1798 public function setScriptingLanguage($scriptingLanguage)
1799 {
1800 $this->scriptingLanguage = $scriptingLanguage;
1801 }
1802
1803 public function getScriptingLanguage()
1804 {
1805 return $this->scriptingLanguage;
1806 }
1807
1808 public function setSize($size)
1809 {
1810 $this->size = $size;
1811 }
1812
1813 public function getSize()
1814 {
1815 return $this->size;
1816 }
1817
1818 public function setType($type)
1819 {
1820 $this->type = $type;
1821 }
1822
1823 public function getType()
1824 {
1825 return $this->type;
1826 }
1827 }
1828
1829 class Google_Service_AdSenseHost_AdUnits extends Google_Collection
1830 {
1831 public $etag;
1832 protected $itemsType = 'Google_Service_AdSenseHost_AdUnit';
1833 protected $itemsDataType = 'array';
1834 public $kind;
1835 public $nextPageToken;
1836
1837 public function setEtag($etag)
1838 {
1839 $this->etag = $etag;
1840 }
1841
1842 public function getEtag()
1843 {
1844 return $this->etag;
1845 }
1846
1847 public function setItems($items)
1848 {
1849 $this->items = $items;
1850 }
1851
1852 public function getItems()
1853 {
1854 return $this->items;
1855 }
1856
1857 public function setKind($kind)
1858 {
1859 $this->kind = $kind;
1860 }
1861
1862 public function getKind()
1863 {
1864 return $this->kind;
1865 }
1866
1867 public function setNextPageToken($nextPageToken)
1868 {
1869 $this->nextPageToken = $nextPageToken;
1870 }
1871
1872 public function getNextPageToken()
1873 {
1874 return $this->nextPageToken;
1875 }
1876 }
1877
1878 class Google_Service_AdSenseHost_AssociationSession extends Google_Collection
1879 {
1880 public $accountId;
1881 public $id;
1882 public $kind;
1883 public $productCodes;
1884 public $redirectUrl;
1885 public $status;
1886 public $userLocale;
1887 public $websiteLocale;
1888 public $websiteUrl;
1889
1890 public function setAccountId($accountId)
1891 {
1892 $this->accountId = $accountId;
1893 }
1894
1895 public function getAccountId()
1896 {
1897 return $this->accountId;
1898 }
1899
1900 public function setId($id)
1901 {
1902 $this->id = $id;
1903 }
1904
1905 public function getId()
1906 {
1907 return $this->id;
1908 }
1909
1910 public function setKind($kind)
1911 {
1912 $this->kind = $kind;
1913 }
1914
1915 public function getKind()
1916 {
1917 return $this->kind;
1918 }
1919
1920 public function setProductCodes($productCodes)
1921 {
1922 $this->productCodes = $productCodes;
1923 }
1924
1925 public function getProductCodes()
1926 {
1927 return $this->productCodes;
1928 }
1929
1930 public function setRedirectUrl($redirectUrl)
1931 {
1932 $this->redirectUrl = $redirectUrl;
1933 }
1934
1935 public function getRedirectUrl()
1936 {
1937 return $this->redirectUrl;
1938 }
1939
1940 public function setStatus($status)
1941 {
1942 $this->status = $status;
1943 }
1944
1945 public function getStatus()
1946 {
1947 return $this->status;
1948 }
1949
1950 public function setUserLocale($userLocale)
1951 {
1952 $this->userLocale = $userLocale;
1953 }
1954
1955 public function getUserLocale()
1956 {
1957 return $this->userLocale;
1958 }
1959
1960 public function setWebsiteLocale($websiteLocale)
1961 {
1962 $this->websiteLocale = $websiteLocale;
1963 }
1964
1965 public function getWebsiteLocale()
1966 {
1967 return $this->websiteLocale;
1968 }
1969
1970 public function setWebsiteUrl($websiteUrl)
1971 {
1972 $this->websiteUrl = $websiteUrl;
1973 }
1974
1975 public function getWebsiteUrl()
1976 {
1977 return $this->websiteUrl;
1978 }
1979 }
1980
1981 class Google_Service_AdSenseHost_CustomChannel extends Google_Model
1982 {
1983 public $code;
1984 public $id;
1985 public $kind;
1986 public $name;
1987
1988 public function setCode($code)
1989 {
1990 $this->code = $code;
1991 }
1992
1993 public function getCode()
1994 {
1995 return $this->code;
1996 }
1997
1998 public function setId($id)
1999 {
2000 $this->id = $id;
2001 }
2002
2003 public function getId()
2004 {
2005 return $this->id;
2006 }
2007
2008 public function setKind($kind)
2009 {
2010 $this->kind = $kind;
2011 }
2012
2013 public function getKind()
2014 {
2015 return $this->kind;
2016 }
2017
2018 public function setName($name)
2019 {
2020 $this->name = $name;
2021 }
2022
2023 public function getName()
2024 {
2025 return $this->name;
2026 }
2027 }
2028
2029 class Google_Service_AdSenseHost_CustomChannels extends Google_Collection
2030 {
2031 public $etag;
2032 protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel';
2033 protected $itemsDataType = 'array';
2034 public $kind;
2035 public $nextPageToken;
2036
2037 public function setEtag($etag)
2038 {
2039 $this->etag = $etag;
2040 }
2041
2042 public function getEtag()
2043 {
2044 return $this->etag;
2045 }
2046
2047 public function setItems($items)
2048 {
2049 $this->items = $items;
2050 }
2051
2052 public function getItems()
2053 {
2054 return $this->items;
2055 }
2056
2057 public function setKind($kind)
2058 {
2059 $this->kind = $kind;
2060 }
2061
2062 public function getKind()
2063 {
2064 return $this->kind;
2065 }
2066
2067 public function setNextPageToken($nextPageToken)
2068 {
2069 $this->nextPageToken = $nextPageToken;
2070 }
2071
2072 public function getNextPageToken()
2073 {
2074 return $this->nextPageToken;
2075 }
2076 }
2077
2078 class Google_Service_AdSenseHost_Report extends Google_Collection
2079 {
2080 public $averages;
2081 protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders';
2082 protected $headersDataType = 'array';
2083 public $kind;
2084 public $rows;
2085 public $totalMatchedRows;
2086 public $totals;
2087 public $warnings;
2088
2089 public function setAverages($averages)
2090 {
2091 $this->averages = $averages;
2092 }
2093
2094 public function getAverages()
2095 {
2096 return $this->averages;
2097 }
2098
2099 public function setHeaders($headers)
2100 {
2101 $this->headers = $headers;
2102 }
2103
2104 public function getHeaders()
2105 {
2106 return $this->headers;
2107 }
2108
2109 public function setKind($kind)
2110 {
2111 $this->kind = $kind;
2112 }
2113
2114 public function getKind()
2115 {
2116 return $this->kind;
2117 }
2118
2119 public function setRows($rows)
2120 {
2121 $this->rows = $rows;
2122 }
2123
2124 public function getRows()
2125 {
2126 return $this->rows;
2127 }
2128
2129 public function setTotalMatchedRows($totalMatchedRows)
2130 {
2131 $this->totalMatchedRows = $totalMatchedRows;
2132 }
2133
2134 public function getTotalMatchedRows()
2135 {
2136 return $this->totalMatchedRows;
2137 }
2138
2139 public function setTotals($totals)
2140 {
2141 $this->totals = $totals;
2142 }
2143
2144 public function getTotals()
2145 {
2146 return $this->totals;
2147 }
2148
2149 public function setWarnings($warnings)
2150 {
2151 $this->warnings = $warnings;
2152 }
2153
2154 public function getWarnings()
2155 {
2156 return $this->warnings;
2157 }
2158 }
2159
2160 class Google_Service_AdSenseHost_ReportHeaders extends Google_Model
2161 {
2162 public $currency;
2163 public $name;
2164 public $type;
2165
2166 public function setCurrency($currency)
2167 {
2168 $this->currency = $currency;
2169 }
2170
2171 public function getCurrency()
2172 {
2173 return $this->currency;
2174 }
2175
2176 public function setName($name)
2177 {
2178 $this->name = $name;
2179 }
2180
2181 public function getName()
2182 {
2183 return $this->name;
2184 }
2185
2186 public function setType($type)
2187 {
2188 $this->type = $type;
2189 }
2190
2191 public function getType()
2192 {
2193 return $this->type;
2194 }
2195 }
2196
2197 class Google_Service_AdSenseHost_UrlChannel extends Google_Model
2198 {
2199 public $id;
2200 public $kind;
2201 public $urlPattern;
2202
2203 public function setId($id)
2204 {
2205 $this->id = $id;
2206 }
2207
2208 public function getId()
2209 {
2210 return $this->id;
2211 }
2212
2213 public function setKind($kind)
2214 {
2215 $this->kind = $kind;
2216 }
2217
2218 public function getKind()
2219 {
2220 return $this->kind;
2221 }
2222
2223 public function setUrlPattern($urlPattern)
2224 {
2225 $this->urlPattern = $urlPattern;
2226 }
2227
2228 public function getUrlPattern()
2229 {
2230 return $this->urlPattern;
2231 }
2232 }
2233
2234 class Google_Service_AdSenseHost_UrlChannels extends Google_Collection
2235 {
2236 public $etag;
2237 protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel';
2238 protected $itemsDataType = 'array';
2239 public $kind;
2240 public $nextPageToken;
2241
2242 public function setEtag($etag)
2243 {
2244 $this->etag = $etag;
2245 }
2246
2247 public function getEtag()
2248 {
2249 return $this->etag;
2250 }
2251
2252 public function setItems($items)
2253 {
2254 $this->items = $items;
2255 }
2256
2257 public function getItems()
2258 {
2259 return $this->items;
2260 }
2261
2262 public function setKind($kind)
2263 {
2264 $this->kind = $kind;
2265 }
2266
2267 public function getKind()
2268 {
2269 return $this->kind;
2270 }
2271
2272 public function setNextPageToken($nextPageToken)
2273 {
2274 $this->nextPageToken = $nextPageToken;
2275 }
2276
2277 public function getNextPageToken()
2278 {
2279 return $this->nextPageToken;
2280 }
2281 }
2282