PluginProbe
Authorizer / 2.6.17
Authorizer v2.6.17
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 / vendor / google-api-php-client / src / Google / Service / AdSenseHost.php

AdSenseHost.php in Authorizer 2.6.17, at vendor/google-api-php-client/src/Google/Service/AdSenseHost.php

2,165 lines 60.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 * Service definition for AdSenseHost (v4.1).
18 *
19 * <p>
20 * Gives AdSense Hosts access to report generation, ad code generation, and
21 * publisher management capabilities.</p>
22 *
23 * <p>
24 * For more information about this service, see the API
25 * <a href="https://developers.google.com/adsense/host/" target="_blank">Documentation</a>
26 * </p>
27 *
28 * @author Google, Inc.
29 */
30 class Google_Service_AdSenseHost extends Google_Service
31 {
32 /** View and manage your AdSense host data and associated accounts. */
33 const ADSENSEHOST =
34 "https://www.googleapis.com/auth/adsensehost";
35
36 public $accounts;
37 public $accounts_adclients;
38 public $accounts_adunits;
39 public $accounts_reports;
40 public $adclients;
41 public $associationsessions;
42 public $customchannels;
43 public $reports;
44 public $urlchannels;
45
46
47 /**
48 * Constructs the internal representation of the AdSenseHost service.
49 *
50 * @param Google_Client $client
51 */
52 public function __construct(Google_Client $client)
53 {
54 parent::__construct($client);
55 $this->rootUrl = 'https://www.googleapis.com/';
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 'maxResults' => array(
122 'location' => 'query',
123 'type' => 'integer',
124 ),
125 'pageToken' => array(
126 'location' => 'query',
127 'type' => 'string',
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 'maxResults' => array(
239 'location' => 'query',
240 'type' => 'integer',
241 ),
242 'pageToken' => array(
243 'location' => 'query',
244 'type' => 'string',
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 'dimension' => array(
312 'location' => 'query',
313 'type' => 'string',
314 'repeated' => true,
315 ),
316 'filter' => array(
317 'location' => 'query',
318 'type' => 'string',
319 'repeated' => true,
320 ),
321 'locale' => array(
322 'location' => 'query',
323 'type' => 'string',
324 ),
325 'maxResults' => array(
326 'location' => 'query',
327 'type' => 'integer',
328 ),
329 'metric' => array(
330 'location' => 'query',
331 'type' => 'string',
332 'repeated' => true,
333 ),
334 'sort' => array(
335 'location' => 'query',
336 'type' => 'string',
337 'repeated' => true,
338 ),
339 'startIndex' => array(
340 'location' => 'query',
341 'type' => 'integer',
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 'maxResults' => array(
369 'location' => 'query',
370 'type' => 'integer',
371 ),
372 'pageToken' => array(
373 'location' => 'query',
374 'type' => 'string',
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 'userLocale' => array(
403 'location' => 'query',
404 'type' => 'string',
405 ),
406 'websiteLocale' => 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 'maxResults' => array(
481 'location' => 'query',
482 'type' => 'integer',
483 ),
484 'pageToken' => array(
485 'location' => 'query',
486 'type' => 'string',
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 'dimension' => array(
539 'location' => 'query',
540 'type' => 'string',
541 'repeated' => true,
542 ),
543 'filter' => array(
544 'location' => 'query',
545 'type' => 'string',
546 'repeated' => true,
547 ),
548 'locale' => array(
549 'location' => 'query',
550 'type' => 'string',
551 ),
552 'maxResults' => array(
553 'location' => 'query',
554 'type' => 'integer',
555 ),
556 'metric' => array(
557 'location' => 'query',
558 'type' => 'string',
559 'repeated' => true,
560 ),
561 'sort' => array(
562 'location' => 'query',
563 'type' => 'string',
564 'repeated' => true,
565 ),
566 'startIndex' => array(
567 'location' => 'query',
568 'type' => 'integer',
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 'maxResults' => array(
616 'location' => 'query',
617 'type' => 'integer',
618 ),
619 'pageToken' => array(
620 'location' => 'query',
621 'type' => 'string',
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 Account to get information about.
647 * @param array $optParams Optional parameters.
648 * @return Google_Service_AdSenseHost_Account
649 */
650 public function get($accountId, $optParams = array())
651 {
652 $params = array('accountId' => $accountId);
653 $params = array_merge($params, $optParams);
654 return $this->call('get', array($params), "Google_Service_AdSenseHost_Account");
655 }
656
657 /**
658 * List hosted accounts associated with this AdSense account by ad client id.
659 * (accounts.listAccounts)
660 *
661 * @param string $filterAdClientId Ad clients to list accounts for.
662 * @param array $optParams Optional parameters.
663 * @return Google_Service_AdSenseHost_Accounts
664 */
665 public function listAccounts($filterAdClientId, $optParams = array())
666 {
667 $params = array('filterAdClientId' => $filterAdClientId);
668 $params = array_merge($params, $optParams);
669 return $this->call('list', array($params), "Google_Service_AdSenseHost_Accounts");
670 }
671 }
672
673 /**
674 * The "adclients" collection of methods.
675 * Typical usage is:
676 * <code>
677 * $adsensehostService = new Google_Service_AdSenseHost(...);
678 * $adclients = $adsensehostService->adclients;
679 * </code>
680 */
681 class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Service_Resource
682 {
683
684 /**
685 * Get information about one of the ad clients in the specified publisher's
686 * AdSense account. (adclients.get)
687 *
688 * @param string $accountId Account which contains the ad client.
689 * @param string $adClientId Ad client to get.
690 * @param array $optParams Optional parameters.
691 * @return Google_Service_AdSenseHost_AdClient
692 */
693 public function get($accountId, $adClientId, $optParams = array())
694 {
695 $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
696 $params = array_merge($params, $optParams);
697 return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
698 }
699
700 /**
701 * List all hosted ad clients in the specified hosted account.
702 * (adclients.listAccountsAdclients)
703 *
704 * @param string $accountId Account for which to list ad clients.
705 * @param array $optParams Optional parameters.
706 *
707 * @opt_param string maxResults The maximum number of ad clients to include in
708 * the response, used for paging.
709 * @opt_param string pageToken A continuation token, used to page through ad
710 * clients. To retrieve the next page, set this parameter to the value of
711 * "nextPageToken" from the previous response.
712 * @return Google_Service_AdSenseHost_AdClients
713 */
714 public function listAccountsAdclients($accountId, $optParams = array())
715 {
716 $params = array('accountId' => $accountId);
717 $params = array_merge($params, $optParams);
718 return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
719 }
720 }
721 /**
722 * The "adunits" collection of methods.
723 * Typical usage is:
724 * <code>
725 * $adsensehostService = new Google_Service_AdSenseHost(...);
726 * $adunits = $adsensehostService->adunits;
727 * </code>
728 */
729 class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service_Resource
730 {
731
732 /**
733 * Delete the specified ad unit from the specified publisher AdSense account.
734 * (adunits.delete)
735 *
736 * @param string $accountId Account which contains the ad unit.
737 * @param string $adClientId Ad client for which to get ad unit.
738 * @param string $adUnitId Ad unit to delete.
739 * @param array $optParams Optional parameters.
740 * @return Google_Service_AdSenseHost_AdUnit
741 */
742 public function delete($accountId, $adClientId, $adUnitId, $optParams = array())
743 {
744 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
745 $params = array_merge($params, $optParams);
746 return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit");
747 }
748
749 /**
750 * Get the specified host ad unit in this AdSense account. (adunits.get)
751 *
752 * @param string $accountId Account which contains the ad unit.
753 * @param string $adClientId Ad client for which to get ad unit.
754 * @param string $adUnitId Ad unit to get.
755 * @param array $optParams Optional parameters.
756 * @return Google_Service_AdSenseHost_AdUnit
757 */
758 public function get($accountId, $adClientId, $adUnitId, $optParams = array())
759 {
760 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
761 $params = array_merge($params, $optParams);
762 return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit");
763 }
764
765 /**
766 * Get ad code for the specified ad unit, attaching the specified host custom
767 * channels. (adunits.getAdCode)
768 *
769 * @param string $accountId Account which contains the ad client.
770 * @param string $adClientId Ad client with contains the ad unit.
771 * @param string $adUnitId Ad unit to get the code for.
772 * @param array $optParams Optional parameters.
773 *
774 * @opt_param string hostCustomChannelId Host custom channel to attach to the ad
775 * code.
776 * @return Google_Service_AdSenseHost_AdCode
777 */
778 public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
779 {
780 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
781 $params = array_merge($params, $optParams);
782 return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode");
783 }
784
785 /**
786 * Insert the supplied ad unit into the specified publisher AdSense account.
787 * (adunits.insert)
788 *
789 * @param string $accountId Account which will contain the ad unit.
790 * @param string $adClientId Ad client into which to insert the ad unit.
791 * @param Google_AdUnit $postBody
792 * @param array $optParams Optional parameters.
793 * @return Google_Service_AdSenseHost_AdUnit
794 */
795 public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
796 {
797 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
798 $params = array_merge($params, $optParams);
799 return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit");
800 }
801
802 /**
803 * List all ad units in the specified publisher's AdSense account.
804 * (adunits.listAccountsAdunits)
805 *
806 * @param string $accountId Account which contains the ad client.
807 * @param string $adClientId Ad client for which to list ad units.
808 * @param array $optParams Optional parameters.
809 *
810 * @opt_param bool includeInactive Whether to include inactive ad units.
811 * Default: true.
812 * @opt_param string maxResults The maximum number of ad units to include in the
813 * response, used for paging.
814 * @opt_param string pageToken A continuation token, used to page through ad
815 * units. To retrieve the next page, set this parameter to the value of
816 * "nextPageToken" from the previous response.
817 * @return Google_Service_AdSenseHost_AdUnits
818 */
819 public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
820 {
821 $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
822 $params = array_merge($params, $optParams);
823 return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits");
824 }
825
826 /**
827 * Update the supplied ad unit in the specified publisher AdSense account. This
828 * method supports patch semantics. (adunits.patch)
829 *
830 * @param string $accountId Account which contains the ad client.
831 * @param string $adClientId Ad client which contains the ad unit.
832 * @param string $adUnitId Ad unit to get.
833 * @param Google_AdUnit $postBody
834 * @param array $optParams Optional parameters.
835 * @return Google_Service_AdSenseHost_AdUnit
836 */
837 public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
838 {
839 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
840 $params = array_merge($params, $optParams);
841 return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit");
842 }
843
844 /**
845 * Update the supplied ad unit in the specified publisher AdSense account.
846 * (adunits.update)
847 *
848 * @param string $accountId Account which contains the ad client.
849 * @param string $adClientId Ad client which contains the ad unit.
850 * @param Google_AdUnit $postBody
851 * @param array $optParams Optional parameters.
852 * @return Google_Service_AdSenseHost_AdUnit
853 */
854 public function update($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
855 {
856 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
857 $params = array_merge($params, $optParams);
858 return $this->call('update', array($params), "Google_Service_AdSenseHost_AdUnit");
859 }
860 }
861 /**
862 * The "reports" collection of methods.
863 * Typical usage is:
864 * <code>
865 * $adsensehostService = new Google_Service_AdSenseHost(...);
866 * $reports = $adsensehostService->reports;
867 * </code>
868 */
869 class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service_Resource
870 {
871
872 /**
873 * Generate an AdSense report based on the report request sent in the query
874 * parameters. Returns the result as JSON; to retrieve output in CSV format
875 * specify "alt=csv" as a query parameter. (reports.generate)
876 *
877 * @param string $accountId Hosted account upon which to report.
878 * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
879 * format, inclusive.
880 * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
881 * format, inclusive.
882 * @param array $optParams Optional parameters.
883 *
884 * @opt_param string dimension Dimensions to base the report on.
885 * @opt_param string filter Filters to be run on the report.
886 * @opt_param string locale Optional locale to use for translating report output
887 * to a local language. Defaults to "en_US" if not specified.
888 * @opt_param string maxResults The maximum number of rows of report data to
889 * return.
890 * @opt_param string metric Numeric columns to include in the report.
891 * @opt_param string sort The name of a dimension or metric to sort the
892 * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
893 * sort descending. If no prefix is specified, the column is sorted ascending.
894 * @opt_param string startIndex Index of the first row of report data to return.
895 * @return Google_Service_AdSenseHost_Report
896 */
897 public function generate($accountId, $startDate, $endDate, $optParams = array())
898 {
899 $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
900 $params = array_merge($params, $optParams);
901 return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
902 }
903 }
904
905 /**
906 * The "adclients" collection of methods.
907 * Typical usage is:
908 * <code>
909 * $adsensehostService = new Google_Service_AdSenseHost(...);
910 * $adclients = $adsensehostService->adclients;
911 * </code>
912 */
913 class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resource
914 {
915
916 /**
917 * Get information about one of the ad clients in the Host AdSense account.
918 * (adclients.get)
919 *
920 * @param string $adClientId Ad client to get.
921 * @param array $optParams Optional parameters.
922 * @return Google_Service_AdSenseHost_AdClient
923 */
924 public function get($adClientId, $optParams = array())
925 {
926 $params = array('adClientId' => $adClientId);
927 $params = array_merge($params, $optParams);
928 return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
929 }
930
931 /**
932 * List all host ad clients in this AdSense account. (adclients.listAdclients)
933 *
934 * @param array $optParams Optional parameters.
935 *
936 * @opt_param string maxResults The maximum number of ad clients to include in
937 * the response, used for paging.
938 * @opt_param string pageToken A continuation token, used to page through ad
939 * clients. To retrieve the next page, set this parameter to the value of
940 * "nextPageToken" from the previous response.
941 * @return Google_Service_AdSenseHost_AdClients
942 */
943 public function listAdclients($optParams = array())
944 {
945 $params = array();
946 $params = array_merge($params, $optParams);
947 return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
948 }
949 }
950
951 /**
952 * The "associationsessions" collection of methods.
953 * Typical usage is:
954 * <code>
955 * $adsensehostService = new Google_Service_AdSenseHost(...);
956 * $associationsessions = $adsensehostService->associationsessions;
957 * </code>
958 */
959 class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Service_Resource
960 {
961
962 /**
963 * Create an association session for initiating an association with an AdSense
964 * user. (associationsessions.start)
965 *
966 * @param string $productCode Products to associate with the user.
967 * @param string $websiteUrl The URL of the user's hosted website.
968 * @param array $optParams Optional parameters.
969 *
970 * @opt_param string userLocale The preferred locale of the user.
971 * @opt_param string websiteLocale The locale of the user's hosted website.
972 * @return Google_Service_AdSenseHost_AssociationSession
973 */
974 public function start($productCode, $websiteUrl, $optParams = array())
975 {
976 $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
977 $params = array_merge($params, $optParams);
978 return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession");
979 }
980
981 /**
982 * Verify an association session after the association callback returns from
983 * AdSense signup. (associationsessions.verify)
984 *
985 * @param string $token The token returned to the association callback URL.
986 * @param array $optParams Optional parameters.
987 * @return Google_Service_AdSenseHost_AssociationSession
988 */
989 public function verify($token, $optParams = array())
990 {
991 $params = array('token' => $token);
992 $params = array_merge($params, $optParams);
993 return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession");
994 }
995 }
996
997 /**
998 * The "customchannels" collection of methods.
999 * Typical usage is:
1000 * <code>
1001 * $adsensehostService = new Google_Service_AdSenseHost(...);
1002 * $customchannels = $adsensehostService->customchannels;
1003 * </code>
1004 */
1005 class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_Resource
1006 {
1007
1008 /**
1009 * Delete a specific custom channel from the host AdSense account.
1010 * (customchannels.delete)
1011 *
1012 * @param string $adClientId Ad client from which to delete the custom channel.
1013 * @param string $customChannelId Custom channel to delete.
1014 * @param array $optParams Optional parameters.
1015 * @return Google_Service_AdSenseHost_CustomChannel
1016 */
1017 public function delete($adClientId, $customChannelId, $optParams = array())
1018 {
1019 $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1020 $params = array_merge($params, $optParams);
1021 return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel");
1022 }
1023
1024 /**
1025 * Get a specific custom channel from the host AdSense account.
1026 * (customchannels.get)
1027 *
1028 * @param string $adClientId Ad client from which to get the custom channel.
1029 * @param string $customChannelId Custom channel to get.
1030 * @param array $optParams Optional parameters.
1031 * @return Google_Service_AdSenseHost_CustomChannel
1032 */
1033 public function get($adClientId, $customChannelId, $optParams = array())
1034 {
1035 $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1036 $params = array_merge($params, $optParams);
1037 return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel");
1038 }
1039
1040 /**
1041 * Add a new custom channel to the host AdSense account. (customchannels.insert)
1042 *
1043 * @param string $adClientId Ad client to which the new custom channel will be
1044 * added.
1045 * @param Google_CustomChannel $postBody
1046 * @param array $optParams Optional parameters.
1047 * @return Google_Service_AdSenseHost_CustomChannel
1048 */
1049 public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1050 {
1051 $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1052 $params = array_merge($params, $optParams);
1053 return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel");
1054 }
1055
1056 /**
1057 * List all host custom channels in this AdSense account.
1058 * (customchannels.listCustomchannels)
1059 *
1060 * @param string $adClientId Ad client for which to list custom channels.
1061 * @param array $optParams Optional parameters.
1062 *
1063 * @opt_param string maxResults The maximum number of custom channels to include
1064 * in the response, used for paging.
1065 * @opt_param string pageToken A continuation token, used to page through custom
1066 * channels. To retrieve the next page, set this parameter to the value of
1067 * "nextPageToken" from the previous response.
1068 * @return Google_Service_AdSenseHost_CustomChannels
1069 */
1070 public function listCustomchannels($adClientId, $optParams = array())
1071 {
1072 $params = array('adClientId' => $adClientId);
1073 $params = array_merge($params, $optParams);
1074 return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels");
1075 }
1076
1077 /**
1078 * Update a custom channel in the host AdSense account. This method supports
1079 * patch semantics. (customchannels.patch)
1080 *
1081 * @param string $adClientId Ad client in which the custom channel will be
1082 * updated.
1083 * @param string $customChannelId Custom channel to get.
1084 * @param Google_CustomChannel $postBody
1085 * @param array $optParams Optional parameters.
1086 * @return Google_Service_AdSenseHost_CustomChannel
1087 */
1088 public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1089 {
1090 $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
1091 $params = array_merge($params, $optParams);
1092 return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel");
1093 }
1094
1095 /**
1096 * Update a custom channel in the host AdSense account. (customchannels.update)
1097 *
1098 * @param string $adClientId Ad client in which the custom channel will be
1099 * updated.
1100 * @param Google_CustomChannel $postBody
1101 * @param array $optParams Optional parameters.
1102 * @return Google_Service_AdSenseHost_CustomChannel
1103 */
1104 public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1105 {
1106 $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1107 $params = array_merge($params, $optParams);
1108 return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel");
1109 }
1110 }
1111
1112 /**
1113 * The "reports" collection of methods.
1114 * Typical usage is:
1115 * <code>
1116 * $adsensehostService = new Google_Service_AdSenseHost(...);
1117 * $reports = $adsensehostService->reports;
1118 * </code>
1119 */
1120 class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resource
1121 {
1122
1123 /**
1124 * Generate an AdSense report based on the report request sent in the query
1125 * parameters. Returns the result as JSON; to retrieve output in CSV format
1126 * specify "alt=csv" as a query parameter. (reports.generate)
1127 *
1128 * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
1129 * format, inclusive.
1130 * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
1131 * format, inclusive.
1132 * @param array $optParams Optional parameters.
1133 *
1134 * @opt_param string dimension Dimensions to base the report on.
1135 * @opt_param string filter Filters to be run on the report.
1136 * @opt_param string locale Optional locale to use for translating report output
1137 * to a local language. Defaults to "en_US" if not specified.
1138 * @opt_param string maxResults The maximum number of rows of report data to
1139 * return.
1140 * @opt_param string metric Numeric columns to include in the report.
1141 * @opt_param string sort The name of a dimension or metric to sort the
1142 * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
1143 * sort descending. If no prefix is specified, the column is sorted ascending.
1144 * @opt_param string startIndex Index of the first row of report data to return.
1145 * @return Google_Service_AdSenseHost_Report
1146 */
1147 public function generate($startDate, $endDate, $optParams = array())
1148 {
1149 $params = array('startDate' => $startDate, 'endDate' => $endDate);
1150 $params = array_merge($params, $optParams);
1151 return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
1152 }
1153 }
1154
1155 /**
1156 * The "urlchannels" collection of methods.
1157 * Typical usage is:
1158 * <code>
1159 * $adsensehostService = new Google_Service_AdSenseHost(...);
1160 * $urlchannels = $adsensehostService->urlchannels;
1161 * </code>
1162 */
1163 class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Resource
1164 {
1165
1166 /**
1167 * Delete a URL channel from the host AdSense account. (urlchannels.delete)
1168 *
1169 * @param string $adClientId Ad client from which to delete the URL channel.
1170 * @param string $urlChannelId URL channel to delete.
1171 * @param array $optParams Optional parameters.
1172 * @return Google_Service_AdSenseHost_UrlChannel
1173 */
1174 public function delete($adClientId, $urlChannelId, $optParams = array())
1175 {
1176 $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
1177 $params = array_merge($params, $optParams);
1178 return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel");
1179 }
1180
1181 /**
1182 * Add a new URL channel to the host AdSense account. (urlchannels.insert)
1183 *
1184 * @param string $adClientId Ad client to which the new URL channel will be
1185 * added.
1186 * @param Google_UrlChannel $postBody
1187 * @param array $optParams Optional parameters.
1188 * @return Google_Service_AdSenseHost_UrlChannel
1189 */
1190 public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array())
1191 {
1192 $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1193 $params = array_merge($params, $optParams);
1194 return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel");
1195 }
1196
1197 /**
1198 * List all host URL channels in the host AdSense account.
1199 * (urlchannels.listUrlchannels)
1200 *
1201 * @param string $adClientId Ad client for which to list URL channels.
1202 * @param array $optParams Optional parameters.
1203 *
1204 * @opt_param string maxResults The maximum number of URL channels to include in
1205 * the response, used for paging.
1206 * @opt_param string pageToken A continuation token, used to page through URL
1207 * channels. To retrieve the next page, set this parameter to the value of
1208 * "nextPageToken" from the previous response.
1209 * @return Google_Service_AdSenseHost_UrlChannels
1210 */
1211 public function listUrlchannels($adClientId, $optParams = array())
1212 {
1213 $params = array('adClientId' => $adClientId);
1214 $params = array_merge($params, $optParams);
1215 return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels");
1216 }
1217 }
1218
1219
1220
1221
1222 class Google_Service_AdSenseHost_Account extends Google_Model
1223 {
1224 protected $internal_gapi_mappings = array(
1225 );
1226 public $id;
1227 public $kind;
1228 public $name;
1229 public $status;
1230
1231
1232 public function setId($id)
1233 {
1234 $this->id = $id;
1235 }
1236 public function getId()
1237 {
1238 return $this->id;
1239 }
1240 public function setKind($kind)
1241 {
1242 $this->kind = $kind;
1243 }
1244 public function getKind()
1245 {
1246 return $this->kind;
1247 }
1248 public function setName($name)
1249 {
1250 $this->name = $name;
1251 }
1252 public function getName()
1253 {
1254 return $this->name;
1255 }
1256 public function setStatus($status)
1257 {
1258 $this->status = $status;
1259 }
1260 public function getStatus()
1261 {
1262 return $this->status;
1263 }
1264 }
1265
1266 class Google_Service_AdSenseHost_Accounts extends Google_Collection
1267 {
1268 protected $collection_key = 'items';
1269 protected $internal_gapi_mappings = array(
1270 );
1271 public $etag;
1272 protected $itemsType = 'Google_Service_AdSenseHost_Account';
1273 protected $itemsDataType = 'array';
1274 public $kind;
1275
1276
1277 public function setEtag($etag)
1278 {
1279 $this->etag = $etag;
1280 }
1281 public function getEtag()
1282 {
1283 return $this->etag;
1284 }
1285 public function setItems($items)
1286 {
1287 $this->items = $items;
1288 }
1289 public function getItems()
1290 {
1291 return $this->items;
1292 }
1293 public function setKind($kind)
1294 {
1295 $this->kind = $kind;
1296 }
1297 public function getKind()
1298 {
1299 return $this->kind;
1300 }
1301 }
1302
1303 class Google_Service_AdSenseHost_AdClient extends Google_Model
1304 {
1305 protected $internal_gapi_mappings = array(
1306 );
1307 public $arcOptIn;
1308 public $id;
1309 public $kind;
1310 public $productCode;
1311 public $supportsReporting;
1312
1313
1314 public function setArcOptIn($arcOptIn)
1315 {
1316 $this->arcOptIn = $arcOptIn;
1317 }
1318 public function getArcOptIn()
1319 {
1320 return $this->arcOptIn;
1321 }
1322 public function setId($id)
1323 {
1324 $this->id = $id;
1325 }
1326 public function getId()
1327 {
1328 return $this->id;
1329 }
1330 public function setKind($kind)
1331 {
1332 $this->kind = $kind;
1333 }
1334 public function getKind()
1335 {
1336 return $this->kind;
1337 }
1338 public function setProductCode($productCode)
1339 {
1340 $this->productCode = $productCode;
1341 }
1342 public function getProductCode()
1343 {
1344 return $this->productCode;
1345 }
1346 public function setSupportsReporting($supportsReporting)
1347 {
1348 $this->supportsReporting = $supportsReporting;
1349 }
1350 public function getSupportsReporting()
1351 {
1352 return $this->supportsReporting;
1353 }
1354 }
1355
1356 class Google_Service_AdSenseHost_AdClients extends Google_Collection
1357 {
1358 protected $collection_key = 'items';
1359 protected $internal_gapi_mappings = array(
1360 );
1361 public $etag;
1362 protected $itemsType = 'Google_Service_AdSenseHost_AdClient';
1363 protected $itemsDataType = 'array';
1364 public $kind;
1365 public $nextPageToken;
1366
1367
1368 public function setEtag($etag)
1369 {
1370 $this->etag = $etag;
1371 }
1372 public function getEtag()
1373 {
1374 return $this->etag;
1375 }
1376 public function setItems($items)
1377 {
1378 $this->items = $items;
1379 }
1380 public function getItems()
1381 {
1382 return $this->items;
1383 }
1384 public function setKind($kind)
1385 {
1386 $this->kind = $kind;
1387 }
1388 public function getKind()
1389 {
1390 return $this->kind;
1391 }
1392 public function setNextPageToken($nextPageToken)
1393 {
1394 $this->nextPageToken = $nextPageToken;
1395 }
1396 public function getNextPageToken()
1397 {
1398 return $this->nextPageToken;
1399 }
1400 }
1401
1402 class Google_Service_AdSenseHost_AdCode extends Google_Model
1403 {
1404 protected $internal_gapi_mappings = array(
1405 );
1406 public $adCode;
1407 public $kind;
1408
1409
1410 public function setAdCode($adCode)
1411 {
1412 $this->adCode = $adCode;
1413 }
1414 public function getAdCode()
1415 {
1416 return $this->adCode;
1417 }
1418 public function setKind($kind)
1419 {
1420 $this->kind = $kind;
1421 }
1422 public function getKind()
1423 {
1424 return $this->kind;
1425 }
1426 }
1427
1428 class Google_Service_AdSenseHost_AdStyle extends Google_Model
1429 {
1430 protected $internal_gapi_mappings = array(
1431 );
1432 protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors';
1433 protected $colorsDataType = '';
1434 public $corners;
1435 protected $fontType = 'Google_Service_AdSenseHost_AdStyleFont';
1436 protected $fontDataType = '';
1437 public $kind;
1438
1439
1440 public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors)
1441 {
1442 $this->colors = $colors;
1443 }
1444 public function getColors()
1445 {
1446 return $this->colors;
1447 }
1448 public function setCorners($corners)
1449 {
1450 $this->corners = $corners;
1451 }
1452 public function getCorners()
1453 {
1454 return $this->corners;
1455 }
1456 public function setFont(Google_Service_AdSenseHost_AdStyleFont $font)
1457 {
1458 $this->font = $font;
1459 }
1460 public function getFont()
1461 {
1462 return $this->font;
1463 }
1464 public function setKind($kind)
1465 {
1466 $this->kind = $kind;
1467 }
1468 public function getKind()
1469 {
1470 return $this->kind;
1471 }
1472 }
1473
1474 class Google_Service_AdSenseHost_AdStyleColors extends Google_Model
1475 {
1476 protected $internal_gapi_mappings = array(
1477 );
1478 public $background;
1479 public $border;
1480 public $text;
1481 public $title;
1482 public $url;
1483
1484
1485 public function setBackground($background)
1486 {
1487 $this->background = $background;
1488 }
1489 public function getBackground()
1490 {
1491 return $this->background;
1492 }
1493 public function setBorder($border)
1494 {
1495 $this->border = $border;
1496 }
1497 public function getBorder()
1498 {
1499 return $this->border;
1500 }
1501 public function setText($text)
1502 {
1503 $this->text = $text;
1504 }
1505 public function getText()
1506 {
1507 return $this->text;
1508 }
1509 public function setTitle($title)
1510 {
1511 $this->title = $title;
1512 }
1513 public function getTitle()
1514 {
1515 return $this->title;
1516 }
1517 public function setUrl($url)
1518 {
1519 $this->url = $url;
1520 }
1521 public function getUrl()
1522 {
1523 return $this->url;
1524 }
1525 }
1526
1527 class Google_Service_AdSenseHost_AdStyleFont extends Google_Model
1528 {
1529 protected $internal_gapi_mappings = array(
1530 );
1531 public $family;
1532 public $size;
1533
1534
1535 public function setFamily($family)
1536 {
1537 $this->family = $family;
1538 }
1539 public function getFamily()
1540 {
1541 return $this->family;
1542 }
1543 public function setSize($size)
1544 {
1545 $this->size = $size;
1546 }
1547 public function getSize()
1548 {
1549 return $this->size;
1550 }
1551 }
1552
1553 class Google_Service_AdSenseHost_AdUnit extends Google_Model
1554 {
1555 protected $internal_gapi_mappings = array(
1556 );
1557 public $code;
1558 protected $contentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettings';
1559 protected $contentAdsSettingsDataType = '';
1560 protected $customStyleType = 'Google_Service_AdSenseHost_AdStyle';
1561 protected $customStyleDataType = '';
1562 public $id;
1563 public $kind;
1564 protected $mobileContentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings';
1565 protected $mobileContentAdsSettingsDataType = '';
1566 public $name;
1567 public $status;
1568
1569
1570 public function setCode($code)
1571 {
1572 $this->code = $code;
1573 }
1574 public function getCode()
1575 {
1576 return $this->code;
1577 }
1578 public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAdsSettings $contentAdsSettings)
1579 {
1580 $this->contentAdsSettings = $contentAdsSettings;
1581 }
1582 public function getContentAdsSettings()
1583 {
1584 return $this->contentAdsSettings;
1585 }
1586 public function setCustomStyle(Google_Service_AdSenseHost_AdStyle $customStyle)
1587 {
1588 $this->customStyle = $customStyle;
1589 }
1590 public function getCustomStyle()
1591 {
1592 return $this->customStyle;
1593 }
1594 public function setId($id)
1595 {
1596 $this->id = $id;
1597 }
1598 public function getId()
1599 {
1600 return $this->id;
1601 }
1602 public function setKind($kind)
1603 {
1604 $this->kind = $kind;
1605 }
1606 public function getKind()
1607 {
1608 return $this->kind;
1609 }
1610 public function setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
1611 {
1612 $this->mobileContentAdsSettings = $mobileContentAdsSettings;
1613 }
1614 public function getMobileContentAdsSettings()
1615 {
1616 return $this->mobileContentAdsSettings;
1617 }
1618 public function setName($name)
1619 {
1620 $this->name = $name;
1621 }
1622 public function getName()
1623 {
1624 return $this->name;
1625 }
1626 public function setStatus($status)
1627 {
1628 $this->status = $status;
1629 }
1630 public function getStatus()
1631 {
1632 return $this->status;
1633 }
1634 }
1635
1636 class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model
1637 {
1638 protected $internal_gapi_mappings = array(
1639 );
1640 protected $backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption';
1641 protected $backupOptionDataType = '';
1642 public $size;
1643 public $type;
1644
1645
1646 public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption)
1647 {
1648 $this->backupOption = $backupOption;
1649 }
1650 public function getBackupOption()
1651 {
1652 return $this->backupOption;
1653 }
1654 public function setSize($size)
1655 {
1656 $this->size = $size;
1657 }
1658 public function getSize()
1659 {
1660 return $this->size;
1661 }
1662 public function setType($type)
1663 {
1664 $this->type = $type;
1665 }
1666 public function getType()
1667 {
1668 return $this->type;
1669 }
1670 }
1671
1672 class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model
1673 {
1674 protected $internal_gapi_mappings = array(
1675 );
1676 public $color;
1677 public $type;
1678 public $url;
1679
1680
1681 public function setColor($color)
1682 {
1683 $this->color = $color;
1684 }
1685 public function getColor()
1686 {
1687 return $this->color;
1688 }
1689 public function setType($type)
1690 {
1691 $this->type = $type;
1692 }
1693 public function getType()
1694 {
1695 return $this->type;
1696 }
1697 public function setUrl($url)
1698 {
1699 $this->url = $url;
1700 }
1701 public function getUrl()
1702 {
1703 return $this->url;
1704 }
1705 }
1706
1707 class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model
1708 {
1709 protected $internal_gapi_mappings = array(
1710 );
1711 public $markupLanguage;
1712 public $scriptingLanguage;
1713 public $size;
1714 public $type;
1715
1716
1717 public function setMarkupLanguage($markupLanguage)
1718 {
1719 $this->markupLanguage = $markupLanguage;
1720 }
1721 public function getMarkupLanguage()
1722 {
1723 return $this->markupLanguage;
1724 }
1725 public function setScriptingLanguage($scriptingLanguage)
1726 {
1727 $this->scriptingLanguage = $scriptingLanguage;
1728 }
1729 public function getScriptingLanguage()
1730 {
1731 return $this->scriptingLanguage;
1732 }
1733 public function setSize($size)
1734 {
1735 $this->size = $size;
1736 }
1737 public function getSize()
1738 {
1739 return $this->size;
1740 }
1741 public function setType($type)
1742 {
1743 $this->type = $type;
1744 }
1745 public function getType()
1746 {
1747 return $this->type;
1748 }
1749 }
1750
1751 class Google_Service_AdSenseHost_AdUnits extends Google_Collection
1752 {
1753 protected $collection_key = 'items';
1754 protected $internal_gapi_mappings = array(
1755 );
1756 public $etag;
1757 protected $itemsType = 'Google_Service_AdSenseHost_AdUnit';
1758 protected $itemsDataType = 'array';
1759 public $kind;
1760 public $nextPageToken;
1761
1762
1763 public function setEtag($etag)
1764 {
1765 $this->etag = $etag;
1766 }
1767 public function getEtag()
1768 {
1769 return $this->etag;
1770 }
1771 public function setItems($items)
1772 {
1773 $this->items = $items;
1774 }
1775 public function getItems()
1776 {
1777 return $this->items;
1778 }
1779 public function setKind($kind)
1780 {
1781 $this->kind = $kind;
1782 }
1783 public function getKind()
1784 {
1785 return $this->kind;
1786 }
1787 public function setNextPageToken($nextPageToken)
1788 {
1789 $this->nextPageToken = $nextPageToken;
1790 }
1791 public function getNextPageToken()
1792 {
1793 return $this->nextPageToken;
1794 }
1795 }
1796
1797 class Google_Service_AdSenseHost_AssociationSession extends Google_Collection
1798 {
1799 protected $collection_key = 'productCodes';
1800 protected $internal_gapi_mappings = array(
1801 );
1802 public $accountId;
1803 public $id;
1804 public $kind;
1805 public $productCodes;
1806 public $redirectUrl;
1807 public $status;
1808 public $userLocale;
1809 public $websiteLocale;
1810 public $websiteUrl;
1811
1812
1813 public function setAccountId($accountId)
1814 {
1815 $this->accountId = $accountId;
1816 }
1817 public function getAccountId()
1818 {
1819 return $this->accountId;
1820 }
1821 public function setId($id)
1822 {
1823 $this->id = $id;
1824 }
1825 public function getId()
1826 {
1827 return $this->id;
1828 }
1829 public function setKind($kind)
1830 {
1831 $this->kind = $kind;
1832 }
1833 public function getKind()
1834 {
1835 return $this->kind;
1836 }
1837 public function setProductCodes($productCodes)
1838 {
1839 $this->productCodes = $productCodes;
1840 }
1841 public function getProductCodes()
1842 {
1843 return $this->productCodes;
1844 }
1845 public function setRedirectUrl($redirectUrl)
1846 {
1847 $this->redirectUrl = $redirectUrl;
1848 }
1849 public function getRedirectUrl()
1850 {
1851 return $this->redirectUrl;
1852 }
1853 public function setStatus($status)
1854 {
1855 $this->status = $status;
1856 }
1857 public function getStatus()
1858 {
1859 return $this->status;
1860 }
1861 public function setUserLocale($userLocale)
1862 {
1863 $this->userLocale = $userLocale;
1864 }
1865 public function getUserLocale()
1866 {
1867 return $this->userLocale;
1868 }
1869 public function setWebsiteLocale($websiteLocale)
1870 {
1871 $this->websiteLocale = $websiteLocale;
1872 }
1873 public function getWebsiteLocale()
1874 {
1875 return $this->websiteLocale;
1876 }
1877 public function setWebsiteUrl($websiteUrl)
1878 {
1879 $this->websiteUrl = $websiteUrl;
1880 }
1881 public function getWebsiteUrl()
1882 {
1883 return $this->websiteUrl;
1884 }
1885 }
1886
1887 class Google_Service_AdSenseHost_CustomChannel extends Google_Model
1888 {
1889 protected $internal_gapi_mappings = array(
1890 );
1891 public $code;
1892 public $id;
1893 public $kind;
1894 public $name;
1895
1896
1897 public function setCode($code)
1898 {
1899 $this->code = $code;
1900 }
1901 public function getCode()
1902 {
1903 return $this->code;
1904 }
1905 public function setId($id)
1906 {
1907 $this->id = $id;
1908 }
1909 public function getId()
1910 {
1911 return $this->id;
1912 }
1913 public function setKind($kind)
1914 {
1915 $this->kind = $kind;
1916 }
1917 public function getKind()
1918 {
1919 return $this->kind;
1920 }
1921 public function setName($name)
1922 {
1923 $this->name = $name;
1924 }
1925 public function getName()
1926 {
1927 return $this->name;
1928 }
1929 }
1930
1931 class Google_Service_AdSenseHost_CustomChannels extends Google_Collection
1932 {
1933 protected $collection_key = 'items';
1934 protected $internal_gapi_mappings = array(
1935 );
1936 public $etag;
1937 protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel';
1938 protected $itemsDataType = 'array';
1939 public $kind;
1940 public $nextPageToken;
1941
1942
1943 public function setEtag($etag)
1944 {
1945 $this->etag = $etag;
1946 }
1947 public function getEtag()
1948 {
1949 return $this->etag;
1950 }
1951 public function setItems($items)
1952 {
1953 $this->items = $items;
1954 }
1955 public function getItems()
1956 {
1957 return $this->items;
1958 }
1959 public function setKind($kind)
1960 {
1961 $this->kind = $kind;
1962 }
1963 public function getKind()
1964 {
1965 return $this->kind;
1966 }
1967 public function setNextPageToken($nextPageToken)
1968 {
1969 $this->nextPageToken = $nextPageToken;
1970 }
1971 public function getNextPageToken()
1972 {
1973 return $this->nextPageToken;
1974 }
1975 }
1976
1977 class Google_Service_AdSenseHost_Report extends Google_Collection
1978 {
1979 protected $collection_key = 'warnings';
1980 protected $internal_gapi_mappings = array(
1981 );
1982 public $averages;
1983 protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders';
1984 protected $headersDataType = 'array';
1985 public $kind;
1986 public $rows;
1987 public $totalMatchedRows;
1988 public $totals;
1989 public $warnings;
1990
1991
1992 public function setAverages($averages)
1993 {
1994 $this->averages = $averages;
1995 }
1996 public function getAverages()
1997 {
1998 return $this->averages;
1999 }
2000 public function setHeaders($headers)
2001 {
2002 $this->headers = $headers;
2003 }
2004 public function getHeaders()
2005 {
2006 return $this->headers;
2007 }
2008 public function setKind($kind)
2009 {
2010 $this->kind = $kind;
2011 }
2012 public function getKind()
2013 {
2014 return $this->kind;
2015 }
2016 public function setRows($rows)
2017 {
2018 $this->rows = $rows;
2019 }
2020 public function getRows()
2021 {
2022 return $this->rows;
2023 }
2024 public function setTotalMatchedRows($totalMatchedRows)
2025 {
2026 $this->totalMatchedRows = $totalMatchedRows;
2027 }
2028 public function getTotalMatchedRows()
2029 {
2030 return $this->totalMatchedRows;
2031 }
2032 public function setTotals($totals)
2033 {
2034 $this->totals = $totals;
2035 }
2036 public function getTotals()
2037 {
2038 return $this->totals;
2039 }
2040 public function setWarnings($warnings)
2041 {
2042 $this->warnings = $warnings;
2043 }
2044 public function getWarnings()
2045 {
2046 return $this->warnings;
2047 }
2048 }
2049
2050 class Google_Service_AdSenseHost_ReportHeaders extends Google_Model
2051 {
2052 protected $internal_gapi_mappings = array(
2053 );
2054 public $currency;
2055 public $name;
2056 public $type;
2057
2058
2059 public function setCurrency($currency)
2060 {
2061 $this->currency = $currency;
2062 }
2063 public function getCurrency()
2064 {
2065 return $this->currency;
2066 }
2067 public function setName($name)
2068 {
2069 $this->name = $name;
2070 }
2071 public function getName()
2072 {
2073 return $this->name;
2074 }
2075 public function setType($type)
2076 {
2077 $this->type = $type;
2078 }
2079 public function getType()
2080 {
2081 return $this->type;
2082 }
2083 }
2084
2085 class Google_Service_AdSenseHost_UrlChannel extends Google_Model
2086 {
2087 protected $internal_gapi_mappings = array(
2088 );
2089 public $id;
2090 public $kind;
2091 public $urlPattern;
2092
2093
2094 public function setId($id)
2095 {
2096 $this->id = $id;
2097 }
2098 public function getId()
2099 {
2100 return $this->id;
2101 }
2102 public function setKind($kind)
2103 {
2104 $this->kind = $kind;
2105 }
2106 public function getKind()
2107 {
2108 return $this->kind;
2109 }
2110 public function setUrlPattern($urlPattern)
2111 {
2112 $this->urlPattern = $urlPattern;
2113 }
2114 public function getUrlPattern()
2115 {
2116 return $this->urlPattern;
2117 }
2118 }
2119
2120 class Google_Service_AdSenseHost_UrlChannels extends Google_Collection
2121 {
2122 protected $collection_key = 'items';
2123 protected $internal_gapi_mappings = array(
2124 );
2125 public $etag;
2126 protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel';
2127 protected $itemsDataType = 'array';
2128 public $kind;
2129 public $nextPageToken;
2130
2131
2132 public function setEtag($etag)
2133 {
2134 $this->etag = $etag;
2135 }
2136 public function getEtag()
2137 {
2138 return $this->etag;
2139 }
2140 public function setItems($items)
2141 {
2142 $this->items = $items;
2143 }
2144 public function getItems()
2145 {
2146 return $this->items;
2147 }
2148 public function setKind($kind)
2149 {
2150 $this->kind = $kind;
2151 }
2152 public function getKind()
2153 {
2154 return $this->kind;
2155 }
2156 public function setNextPageToken($nextPageToken)
2157 {
2158 $this->nextPageToken = $nextPageToken;
2159 }
2160 public function getNextPageToken()
2161 {
2162 return $this->nextPageToken;
2163 }
2164 }
2165