PluginProbe
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) / 1.0.2
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) v1.0.2
9.1.2 9.1.1 9.1.0 9.0.2 9.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 All 153 releases
wp-analytify / lib / Google / Service / AdSense.php

AdSense.php in Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) 1.0.2, at lib/Google/Service/AdSense.php

3,771 lines 100.7 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 AdSense (v1.4).
20 *
21 * <p>
22 * Gives AdSense publishers access to their inventory and the ability to generate reports
23 * </p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://developers.google.com/adsense/management/" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32 class Analytify_Google_Service_AdSense extends Analytify_Google_Service
33 {
34 /** View and manage your AdSense data. */
35 const ADSENSE = "https://www.googleapis.com/auth/adsense";
36 /** View your AdSense data. */
37 const ADSENSE_READONLY = "https://www.googleapis.com/auth/adsense.readonly";
38
39 public $accounts;
40 public $accounts_adclients;
41 public $accounts_adunits;
42 public $accounts_adunits_customchannels;
43 public $accounts_alerts;
44 public $accounts_customchannels;
45 public $accounts_customchannels_adunits;
46 public $accounts_payments;
47 public $accounts_reports;
48 public $accounts_reports_saved;
49 public $accounts_savedadstyles;
50 public $accounts_urlchannels;
51 public $adclients;
52 public $adunits;
53 public $adunits_customchannels;
54 public $alerts;
55 public $customchannels;
56 public $customchannels_adunits;
57 public $metadata_dimensions;
58 public $metadata_metrics;
59 public $payments;
60 public $reports;
61 public $reports_saved;
62 public $savedadstyles;
63 public $urlchannels;
64
65
66 /**
67 * Constructs the internal representation of the AdSense service.
68 *
69 * @param Analytify_Google_Client $client
70 */
71 public function __construct(Analytify_Google_Client $client)
72 {
73 parent::__construct($client);
74 $this->servicePath = 'adsense/v1.4/';
75 $this->version = 'v1.4';
76 $this->serviceName = 'adsense';
77
78 $this->accounts = new Analytify_Google_Service_AdSense_Accounts_Resource(
79 $this,
80 $this->serviceName,
81 'accounts',
82 array(
83 'methods' => array(
84 'get' => array(
85 'path' => 'accounts/{accountId}',
86 'httpMethod' => 'GET',
87 'parameters' => array(
88 'accountId' => array(
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ),
93 'tree' => array(
94 'location' => 'query',
95 'type' => 'boolean',
96 ),
97 ),
98 ),'list' => array(
99 'path' => 'accounts',
100 'httpMethod' => 'GET',
101 'parameters' => array(
102 'pageToken' => array(
103 'location' => 'query',
104 'type' => 'string',
105 ),
106 'maxResults' => array(
107 'location' => 'query',
108 'type' => 'integer',
109 ),
110 ),
111 ),
112 )
113 )
114 );
115 $this->accounts_adclients = new Analytify_Google_Service_AdSense_AccountsAdclients_Resource(
116 $this,
117 $this->serviceName,
118 'adclients',
119 array(
120 'methods' => array(
121 'list' => array(
122 'path' => 'accounts/{accountId}/adclients',
123 'httpMethod' => 'GET',
124 'parameters' => array(
125 'accountId' => array(
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ),
130 'pageToken' => array(
131 'location' => 'query',
132 'type' => 'string',
133 ),
134 'maxResults' => array(
135 'location' => 'query',
136 'type' => 'integer',
137 ),
138 ),
139 ),
140 )
141 )
142 );
143 $this->accounts_adunits = new Analytify_Google_Service_AdSense_AccountsAdunits_Resource(
144 $this,
145 $this->serviceName,
146 'adunits',
147 array(
148 'methods' => array(
149 'get' => array(
150 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
151 'httpMethod' => 'GET',
152 'parameters' => array(
153 'accountId' => array(
154 'location' => 'path',
155 'type' => 'string',
156 'required' => true,
157 ),
158 'adClientId' => array(
159 'location' => 'path',
160 'type' => 'string',
161 'required' => true,
162 ),
163 'adUnitId' => array(
164 'location' => 'path',
165 'type' => 'string',
166 'required' => true,
167 ),
168 ),
169 ),'getAdCode' => array(
170 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',
171 'httpMethod' => 'GET',
172 'parameters' => array(
173 'accountId' => array(
174 'location' => 'path',
175 'type' => 'string',
176 'required' => true,
177 ),
178 'adClientId' => array(
179 'location' => 'path',
180 'type' => 'string',
181 'required' => true,
182 ),
183 'adUnitId' => array(
184 'location' => 'path',
185 'type' => 'string',
186 'required' => true,
187 ),
188 ),
189 ),'list' => array(
190 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
191 'httpMethod' => 'GET',
192 'parameters' => array(
193 'accountId' => array(
194 'location' => 'path',
195 'type' => 'string',
196 'required' => true,
197 ),
198 'adClientId' => array(
199 'location' => 'path',
200 'type' => 'string',
201 'required' => true,
202 ),
203 'includeInactive' => array(
204 'location' => 'query',
205 'type' => 'boolean',
206 ),
207 'pageToken' => array(
208 'location' => 'query',
209 'type' => 'string',
210 ),
211 'maxResults' => array(
212 'location' => 'query',
213 'type' => 'integer',
214 ),
215 ),
216 ),
217 )
218 )
219 );
220 $this->accounts_adunits_customchannels = new Analytify_Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource(
221 $this,
222 $this->serviceName,
223 'customchannels',
224 array(
225 'methods' => array(
226 'list' => array(
227 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels',
228 'httpMethod' => 'GET',
229 'parameters' => array(
230 'accountId' => array(
231 'location' => 'path',
232 'type' => 'string',
233 'required' => true,
234 ),
235 'adClientId' => array(
236 'location' => 'path',
237 'type' => 'string',
238 'required' => true,
239 ),
240 'adUnitId' => array(
241 'location' => 'path',
242 'type' => 'string',
243 'required' => true,
244 ),
245 'pageToken' => array(
246 'location' => 'query',
247 'type' => 'string',
248 ),
249 'maxResults' => array(
250 'location' => 'query',
251 'type' => 'integer',
252 ),
253 ),
254 ),
255 )
256 )
257 );
258 $this->accounts_alerts = new Analytify_Google_Service_AdSense_AccountsAlerts_Resource(
259 $this,
260 $this->serviceName,
261 'alerts',
262 array(
263 'methods' => array(
264 'delete' => array(
265 'path' => 'accounts/{accountId}/alerts/{alertId}',
266 'httpMethod' => 'DELETE',
267 'parameters' => array(
268 'accountId' => array(
269 'location' => 'path',
270 'type' => 'string',
271 'required' => true,
272 ),
273 'alertId' => array(
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ),
278 ),
279 ),'list' => array(
280 'path' => 'accounts/{accountId}/alerts',
281 'httpMethod' => 'GET',
282 'parameters' => array(
283 'accountId' => array(
284 'location' => 'path',
285 'type' => 'string',
286 'required' => true,
287 ),
288 'locale' => array(
289 'location' => 'query',
290 'type' => 'string',
291 ),
292 ),
293 ),
294 )
295 )
296 );
297 $this->accounts_customchannels = new Analytify_Google_Service_AdSense_AccountsCustomchannels_Resource(
298 $this,
299 $this->serviceName,
300 'customchannels',
301 array(
302 'methods' => array(
303 'get' => array(
304 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}',
305 'httpMethod' => 'GET',
306 'parameters' => array(
307 'accountId' => array(
308 'location' => 'path',
309 'type' => 'string',
310 'required' => true,
311 ),
312 'adClientId' => array(
313 'location' => 'path',
314 'type' => 'string',
315 'required' => true,
316 ),
317 'customChannelId' => array(
318 'location' => 'path',
319 'type' => 'string',
320 'required' => true,
321 ),
322 ),
323 ),'list' => array(
324 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels',
325 'httpMethod' => 'GET',
326 'parameters' => array(
327 'accountId' => array(
328 'location' => 'path',
329 'type' => 'string',
330 'required' => true,
331 ),
332 'adClientId' => array(
333 'location' => 'path',
334 'type' => 'string',
335 'required' => true,
336 ),
337 'pageToken' => array(
338 'location' => 'query',
339 'type' => 'string',
340 ),
341 'maxResults' => array(
342 'location' => 'query',
343 'type' => 'integer',
344 ),
345 ),
346 ),
347 )
348 )
349 );
350 $this->accounts_customchannels_adunits = new Analytify_Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource(
351 $this,
352 $this->serviceName,
353 'adunits',
354 array(
355 'methods' => array(
356 'list' => array(
357 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits',
358 'httpMethod' => 'GET',
359 'parameters' => array(
360 'accountId' => array(
361 'location' => 'path',
362 'type' => 'string',
363 'required' => true,
364 ),
365 'adClientId' => array(
366 'location' => 'path',
367 'type' => 'string',
368 'required' => true,
369 ),
370 'customChannelId' => array(
371 'location' => 'path',
372 'type' => 'string',
373 'required' => true,
374 ),
375 'includeInactive' => array(
376 'location' => 'query',
377 'type' => 'boolean',
378 ),
379 'maxResults' => array(
380 'location' => 'query',
381 'type' => 'integer',
382 ),
383 'pageToken' => array(
384 'location' => 'query',
385 'type' => 'string',
386 ),
387 ),
388 ),
389 )
390 )
391 );
392 $this->accounts_payments = new Analytify_Google_Service_AdSense_AccountsPayments_Resource(
393 $this,
394 $this->serviceName,
395 'payments',
396 array(
397 'methods' => array(
398 'list' => array(
399 'path' => 'accounts/{accountId}/payments',
400 'httpMethod' => 'GET',
401 'parameters' => array(
402 'accountId' => array(
403 'location' => 'path',
404 'type' => 'string',
405 'required' => true,
406 ),
407 ),
408 ),
409 )
410 )
411 );
412 $this->accounts_reports = new Analytify_Google_Service_AdSense_AccountsReports_Resource(
413 $this,
414 $this->serviceName,
415 'reports',
416 array(
417 'methods' => array(
418 'generate' => array(
419 'path' => 'accounts/{accountId}/reports',
420 'httpMethod' => 'GET',
421 'parameters' => array(
422 'accountId' => array(
423 'location' => 'path',
424 'type' => 'string',
425 'required' => true,
426 ),
427 'startDate' => array(
428 'location' => 'query',
429 'type' => 'string',
430 'required' => true,
431 ),
432 'endDate' => array(
433 'location' => 'query',
434 'type' => 'string',
435 'required' => true,
436 ),
437 'sort' => array(
438 'location' => 'query',
439 'type' => 'string',
440 'repeated' => true,
441 ),
442 'locale' => array(
443 'location' => 'query',
444 'type' => 'string',
445 ),
446 'metric' => array(
447 'location' => 'query',
448 'type' => 'string',
449 'repeated' => true,
450 ),
451 'maxResults' => array(
452 'location' => 'query',
453 'type' => 'integer',
454 ),
455 'filter' => array(
456 'location' => 'query',
457 'type' => 'string',
458 'repeated' => true,
459 ),
460 'currency' => array(
461 'location' => 'query',
462 'type' => 'string',
463 ),
464 'startIndex' => array(
465 'location' => 'query',
466 'type' => 'integer',
467 ),
468 'useTimezoneReporting' => array(
469 'location' => 'query',
470 'type' => 'boolean',
471 ),
472 'dimension' => array(
473 'location' => 'query',
474 'type' => 'string',
475 'repeated' => true,
476 ),
477 ),
478 ),
479 )
480 )
481 );
482 $this->accounts_reports_saved = new Analytify_Google_Service_AdSense_AccountsReportsSaved_Resource(
483 $this,
484 $this->serviceName,
485 'saved',
486 array(
487 'methods' => array(
488 'generate' => array(
489 'path' => 'accounts/{accountId}/reports/{savedReportId}',
490 'httpMethod' => 'GET',
491 'parameters' => array(
492 'accountId' => array(
493 'location' => 'path',
494 'type' => 'string',
495 'required' => true,
496 ),
497 'savedReportId' => array(
498 'location' => 'path',
499 'type' => 'string',
500 'required' => true,
501 ),
502 'locale' => array(
503 'location' => 'query',
504 'type' => 'string',
505 ),
506 'startIndex' => array(
507 'location' => 'query',
508 'type' => 'integer',
509 ),
510 'maxResults' => array(
511 'location' => 'query',
512 'type' => 'integer',
513 ),
514 ),
515 ),'list' => array(
516 'path' => 'accounts/{accountId}/reports/saved',
517 'httpMethod' => 'GET',
518 'parameters' => array(
519 'accountId' => array(
520 'location' => 'path',
521 'type' => 'string',
522 'required' => true,
523 ),
524 'pageToken' => array(
525 'location' => 'query',
526 'type' => 'string',
527 ),
528 'maxResults' => array(
529 'location' => 'query',
530 'type' => 'integer',
531 ),
532 ),
533 ),
534 )
535 )
536 );
537 $this->accounts_savedadstyles = new Analytify_Google_Service_AdSense_AccountsSavedadstyles_Resource(
538 $this,
539 $this->serviceName,
540 'savedadstyles',
541 array(
542 'methods' => array(
543 'get' => array(
544 'path' => 'accounts/{accountId}/savedadstyles/{savedAdStyleId}',
545 'httpMethod' => 'GET',
546 'parameters' => array(
547 'accountId' => array(
548 'location' => 'path',
549 'type' => 'string',
550 'required' => true,
551 ),
552 'savedAdStyleId' => array(
553 'location' => 'path',
554 'type' => 'string',
555 'required' => true,
556 ),
557 ),
558 ),'list' => array(
559 'path' => 'accounts/{accountId}/savedadstyles',
560 'httpMethod' => 'GET',
561 'parameters' => array(
562 'accountId' => array(
563 'location' => 'path',
564 'type' => 'string',
565 'required' => true,
566 ),
567 'pageToken' => array(
568 'location' => 'query',
569 'type' => 'string',
570 ),
571 'maxResults' => array(
572 'location' => 'query',
573 'type' => 'integer',
574 ),
575 ),
576 ),
577 )
578 )
579 );
580 $this->accounts_urlchannels = new Analytify_Google_Service_AdSense_AccountsUrlchannels_Resource(
581 $this,
582 $this->serviceName,
583 'urlchannels',
584 array(
585 'methods' => array(
586 'list' => array(
587 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels',
588 'httpMethod' => 'GET',
589 'parameters' => array(
590 'accountId' => array(
591 'location' => 'path',
592 'type' => 'string',
593 'required' => true,
594 ),
595 'adClientId' => array(
596 'location' => 'path',
597 'type' => 'string',
598 'required' => true,
599 ),
600 'pageToken' => array(
601 'location' => 'query',
602 'type' => 'string',
603 ),
604 'maxResults' => array(
605 'location' => 'query',
606 'type' => 'integer',
607 ),
608 ),
609 ),
610 )
611 )
612 );
613 $this->adclients = new Analytify_Google_Service_AdSense_Adclients_Resource(
614 $this,
615 $this->serviceName,
616 'adclients',
617 array(
618 'methods' => array(
619 'list' => array(
620 'path' => 'adclients',
621 'httpMethod' => 'GET',
622 'parameters' => array(
623 'pageToken' => array(
624 'location' => 'query',
625 'type' => 'string',
626 ),
627 'maxResults' => array(
628 'location' => 'query',
629 'type' => 'integer',
630 ),
631 ),
632 ),
633 )
634 )
635 );
636 $this->adunits = new Analytify_Google_Service_AdSense_Adunits_Resource(
637 $this,
638 $this->serviceName,
639 'adunits',
640 array(
641 'methods' => array(
642 'get' => array(
643 'path' => 'adclients/{adClientId}/adunits/{adUnitId}',
644 'httpMethod' => 'GET',
645 'parameters' => array(
646 'adClientId' => array(
647 'location' => 'path',
648 'type' => 'string',
649 'required' => true,
650 ),
651 'adUnitId' => array(
652 'location' => 'path',
653 'type' => 'string',
654 'required' => true,
655 ),
656 ),
657 ),'getAdCode' => array(
658 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/adcode',
659 'httpMethod' => 'GET',
660 'parameters' => array(
661 'adClientId' => array(
662 'location' => 'path',
663 'type' => 'string',
664 'required' => true,
665 ),
666 'adUnitId' => array(
667 'location' => 'path',
668 'type' => 'string',
669 'required' => true,
670 ),
671 ),
672 ),'list' => array(
673 'path' => 'adclients/{adClientId}/adunits',
674 'httpMethod' => 'GET',
675 'parameters' => array(
676 'adClientId' => array(
677 'location' => 'path',
678 'type' => 'string',
679 'required' => true,
680 ),
681 'includeInactive' => array(
682 'location' => 'query',
683 'type' => 'boolean',
684 ),
685 'pageToken' => array(
686 'location' => 'query',
687 'type' => 'string',
688 ),
689 'maxResults' => array(
690 'location' => 'query',
691 'type' => 'integer',
692 ),
693 ),
694 ),
695 )
696 )
697 );
698 $this->adunits_customchannels = new Analytify_Google_Service_AdSense_AdunitsCustomchannels_Resource(
699 $this,
700 $this->serviceName,
701 'customchannels',
702 array(
703 'methods' => array(
704 'list' => array(
705 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels',
706 'httpMethod' => 'GET',
707 'parameters' => array(
708 'adClientId' => array(
709 'location' => 'path',
710 'type' => 'string',
711 'required' => true,
712 ),
713 'adUnitId' => array(
714 'location' => 'path',
715 'type' => 'string',
716 'required' => true,
717 ),
718 'pageToken' => array(
719 'location' => 'query',
720 'type' => 'string',
721 ),
722 'maxResults' => array(
723 'location' => 'query',
724 'type' => 'integer',
725 ),
726 ),
727 ),
728 )
729 )
730 );
731 $this->alerts = new Analytify_Google_Service_AdSense_Alerts_Resource(
732 $this,
733 $this->serviceName,
734 'alerts',
735 array(
736 'methods' => array(
737 'delete' => array(
738 'path' => 'alerts/{alertId}',
739 'httpMethod' => 'DELETE',
740 'parameters' => array(
741 'alertId' => array(
742 'location' => 'path',
743 'type' => 'string',
744 'required' => true,
745 ),
746 ),
747 ),'list' => array(
748 'path' => 'alerts',
749 'httpMethod' => 'GET',
750 'parameters' => array(
751 'locale' => array(
752 'location' => 'query',
753 'type' => 'string',
754 ),
755 ),
756 ),
757 )
758 )
759 );
760 $this->customchannels = new Analytify_Google_Service_AdSense_Customchannels_Resource(
761 $this,
762 $this->serviceName,
763 'customchannels',
764 array(
765 'methods' => array(
766 'get' => array(
767 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
768 'httpMethod' => 'GET',
769 'parameters' => array(
770 'adClientId' => array(
771 'location' => 'path',
772 'type' => 'string',
773 'required' => true,
774 ),
775 'customChannelId' => array(
776 'location' => 'path',
777 'type' => 'string',
778 'required' => true,
779 ),
780 ),
781 ),'list' => array(
782 'path' => 'adclients/{adClientId}/customchannels',
783 'httpMethod' => 'GET',
784 'parameters' => array(
785 'adClientId' => array(
786 'location' => 'path',
787 'type' => 'string',
788 'required' => true,
789 ),
790 'pageToken' => array(
791 'location' => 'query',
792 'type' => 'string',
793 ),
794 'maxResults' => array(
795 'location' => 'query',
796 'type' => 'integer',
797 ),
798 ),
799 ),
800 )
801 )
802 );
803 $this->customchannels_adunits = new Analytify_Google_Service_AdSense_CustomchannelsAdunits_Resource(
804 $this,
805 $this->serviceName,
806 'adunits',
807 array(
808 'methods' => array(
809 'list' => array(
810 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits',
811 'httpMethod' => 'GET',
812 'parameters' => array(
813 'adClientId' => array(
814 'location' => 'path',
815 'type' => 'string',
816 'required' => true,
817 ),
818 'customChannelId' => array(
819 'location' => 'path',
820 'type' => 'string',
821 'required' => true,
822 ),
823 'includeInactive' => array(
824 'location' => 'query',
825 'type' => 'boolean',
826 ),
827 'pageToken' => array(
828 'location' => 'query',
829 'type' => 'string',
830 ),
831 'maxResults' => array(
832 'location' => 'query',
833 'type' => 'integer',
834 ),
835 ),
836 ),
837 )
838 )
839 );
840 $this->metadata_dimensions = new Analytify_Google_Service_AdSense_MetadataDimensions_Resource(
841 $this,
842 $this->serviceName,
843 'dimensions',
844 array(
845 'methods' => array(
846 'list' => array(
847 'path' => 'metadata/dimensions',
848 'httpMethod' => 'GET',
849 'parameters' => array(),
850 ),
851 )
852 )
853 );
854 $this->metadata_metrics = new Analytify_Google_Service_AdSense_MetadataMetrics_Resource(
855 $this,
856 $this->serviceName,
857 'metrics',
858 array(
859 'methods' => array(
860 'list' => array(
861 'path' => 'metadata/metrics',
862 'httpMethod' => 'GET',
863 'parameters' => array(),
864 ),
865 )
866 )
867 );
868 $this->payments = new Analytify_Google_Service_AdSense_Payments_Resource(
869 $this,
870 $this->serviceName,
871 'payments',
872 array(
873 'methods' => array(
874 'list' => array(
875 'path' => 'payments',
876 'httpMethod' => 'GET',
877 'parameters' => array(),
878 ),
879 )
880 )
881 );
882 $this->reports = new Analytify_Google_Service_AdSense_Reports_Resource(
883 $this,
884 $this->serviceName,
885 'reports',
886 array(
887 'methods' => array(
888 'generate' => array(
889 'path' => 'reports',
890 'httpMethod' => 'GET',
891 'parameters' => array(
892 'startDate' => array(
893 'location' => 'query',
894 'type' => 'string',
895 'required' => true,
896 ),
897 'endDate' => array(
898 'location' => 'query',
899 'type' => 'string',
900 'required' => true,
901 ),
902 'sort' => array(
903 'location' => 'query',
904 'type' => 'string',
905 'repeated' => true,
906 ),
907 'locale' => array(
908 'location' => 'query',
909 'type' => 'string',
910 ),
911 'metric' => array(
912 'location' => 'query',
913 'type' => 'string',
914 'repeated' => true,
915 ),
916 'maxResults' => array(
917 'location' => 'query',
918 'type' => 'integer',
919 ),
920 'filter' => array(
921 'location' => 'query',
922 'type' => 'string',
923 'repeated' => true,
924 ),
925 'currency' => array(
926 'location' => 'query',
927 'type' => 'string',
928 ),
929 'startIndex' => array(
930 'location' => 'query',
931 'type' => 'integer',
932 ),
933 'useTimezoneReporting' => array(
934 'location' => 'query',
935 'type' => 'boolean',
936 ),
937 'dimension' => array(
938 'location' => 'query',
939 'type' => 'string',
940 'repeated' => true,
941 ),
942 'accountId' => array(
943 'location' => 'query',
944 'type' => 'string',
945 'repeated' => true,
946 ),
947 ),
948 ),
949 )
950 )
951 );
952 $this->reports_saved = new Analytify_Google_Service_AdSense_ReportsSaved_Resource(
953 $this,
954 $this->serviceName,
955 'saved',
956 array(
957 'methods' => array(
958 'generate' => array(
959 'path' => 'reports/{savedReportId}',
960 'httpMethod' => 'GET',
961 'parameters' => array(
962 'savedReportId' => array(
963 'location' => 'path',
964 'type' => 'string',
965 'required' => true,
966 ),
967 'locale' => array(
968 'location' => 'query',
969 'type' => 'string',
970 ),
971 'startIndex' => array(
972 'location' => 'query',
973 'type' => 'integer',
974 ),
975 'maxResults' => array(
976 'location' => 'query',
977 'type' => 'integer',
978 ),
979 ),
980 ),'list' => array(
981 'path' => 'reports/saved',
982 'httpMethod' => 'GET',
983 'parameters' => array(
984 'pageToken' => array(
985 'location' => 'query',
986 'type' => 'string',
987 ),
988 'maxResults' => array(
989 'location' => 'query',
990 'type' => 'integer',
991 ),
992 ),
993 ),
994 )
995 )
996 );
997 $this->savedadstyles = new Analytify_Google_Service_AdSense_Savedadstyles_Resource(
998 $this,
999 $this->serviceName,
1000 'savedadstyles',
1001 array(
1002 'methods' => array(
1003 'get' => array(
1004 'path' => 'savedadstyles/{savedAdStyleId}',
1005 'httpMethod' => 'GET',
1006 'parameters' => array(
1007 'savedAdStyleId' => array(
1008 'location' => 'path',
1009 'type' => 'string',
1010 'required' => true,
1011 ),
1012 ),
1013 ),'list' => array(
1014 'path' => 'savedadstyles',
1015 'httpMethod' => 'GET',
1016 'parameters' => array(
1017 'pageToken' => array(
1018 'location' => 'query',
1019 'type' => 'string',
1020 ),
1021 'maxResults' => array(
1022 'location' => 'query',
1023 'type' => 'integer',
1024 ),
1025 ),
1026 ),
1027 )
1028 )
1029 );
1030 $this->urlchannels = new Analytify_Google_Service_AdSense_Urlchannels_Resource(
1031 $this,
1032 $this->serviceName,
1033 'urlchannels',
1034 array(
1035 'methods' => array(
1036 'list' => array(
1037 'path' => 'adclients/{adClientId}/urlchannels',
1038 'httpMethod' => 'GET',
1039 'parameters' => array(
1040 'adClientId' => array(
1041 'location' => 'path',
1042 'type' => 'string',
1043 'required' => true,
1044 ),
1045 'pageToken' => array(
1046 'location' => 'query',
1047 'type' => 'string',
1048 ),
1049 'maxResults' => array(
1050 'location' => 'query',
1051 'type' => 'integer',
1052 ),
1053 ),
1054 ),
1055 )
1056 )
1057 );
1058 }
1059 }
1060
1061
1062 /**
1063 * The "accounts" collection of methods.
1064 * Typical usage is:
1065 * <code>
1066 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1067 * $accounts = $adsenseService->accounts;
1068 * </code>
1069 */
1070 class Analytify_Google_Service_AdSense_Accounts_Resource extends Analytify_Google_Service_Resource
1071 {
1072
1073 /**
1074 * Get information about the selected AdSense account. (accounts.get)
1075 *
1076 * @param string $accountId
1077 * Account to get information about.
1078 * @param array $optParams Optional parameters.
1079 *
1080 * @opt_param bool tree
1081 * Whether the tree of sub accounts should be returned.
1082 * @return Analytify_Google_Service_AdSense_Account
1083 */
1084 public function get($accountId, $optParams = array())
1085 {
1086 $params = array('accountId' => $accountId);
1087 $params = array_merge($params, $optParams);
1088 return $this->call('get', array($params), "Analytify_Google_Service_AdSense_Account");
1089 }
1090 /**
1091 * List all accounts available to this AdSense account. (accounts.listAccounts)
1092 *
1093 * @param array $optParams Optional parameters.
1094 *
1095 * @opt_param string pageToken
1096 * A continuation token, used to page through accounts. To retrieve the next page, set this
1097 * parameter to the value of "nextPageToken" from the previous response.
1098 * @opt_param int maxResults
1099 * The maximum number of accounts to include in the response, used for paging.
1100 * @return Analytify_Google_Service_AdSense_Accounts
1101 */
1102 public function listAccounts($optParams = array())
1103 {
1104 $params = array();
1105 $params = array_merge($params, $optParams);
1106 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_Accounts");
1107 }
1108 }
1109
1110 /**
1111 * The "adclients" collection of methods.
1112 * Typical usage is:
1113 * <code>
1114 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1115 * $adclients = $adsenseService->adclients;
1116 * </code>
1117 */
1118 class Analytify_Google_Service_AdSense_AccountsAdclients_Resource extends Analytify_Google_Service_Resource
1119 {
1120
1121 /**
1122 * List all ad clients in the specified account.
1123 * (adclients.listAccountsAdclients)
1124 *
1125 * @param string $accountId
1126 * Account for which to list ad clients.
1127 * @param array $optParams Optional parameters.
1128 *
1129 * @opt_param string pageToken
1130 * A continuation token, used to page through ad clients. To retrieve the next page, set this
1131 * parameter to the value of "nextPageToken" from the previous response.
1132 * @opt_param int maxResults
1133 * The maximum number of ad clients to include in the response, used for paging.
1134 * @return Analytify_Google_Service_AdSense_AdClients
1135 */
1136 public function listAccountsAdclients($accountId, $optParams = array())
1137 {
1138 $params = array('accountId' => $accountId);
1139 $params = array_merge($params, $optParams);
1140 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_AdClients");
1141 }
1142 }
1143 /**
1144 * The "adunits" collection of methods.
1145 * Typical usage is:
1146 * <code>
1147 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1148 * $adunits = $adsenseService->adunits;
1149 * </code>
1150 */
1151 class Analytify_Google_Service_AdSense_AccountsAdunits_Resource extends Analytify_Google_Service_Resource
1152 {
1153
1154 /**
1155 * Gets the specified ad unit in the specified ad client for the specified
1156 * account. (adunits.get)
1157 *
1158 * @param string $accountId
1159 * Account to which the ad client belongs.
1160 * @param string $adClientId
1161 * Ad client for which to get the ad unit.
1162 * @param string $adUnitId
1163 * Ad unit to retrieve.
1164 * @param array $optParams Optional parameters.
1165 * @return Analytify_Google_Service_AdSense_AdUnit
1166 */
1167 public function get($accountId, $adClientId, $adUnitId, $optParams = array())
1168 {
1169 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1170 $params = array_merge($params, $optParams);
1171 return $this->call('get', array($params), "Analytify_Google_Service_AdSense_AdUnit");
1172 }
1173 /**
1174 * Get ad code for the specified ad unit. (adunits.getAdCode)
1175 *
1176 * @param string $accountId
1177 * Account which contains the ad client.
1178 * @param string $adClientId
1179 * Ad client with contains the ad unit.
1180 * @param string $adUnitId
1181 * Ad unit to get the code for.
1182 * @param array $optParams Optional parameters.
1183 * @return Analytify_Google_Service_AdSense_AdCode
1184 */
1185 public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
1186 {
1187 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1188 $params = array_merge($params, $optParams);
1189 return $this->call('getAdCode', array($params), "Analytify_Google_Service_AdSense_AdCode");
1190 }
1191 /**
1192 * List all ad units in the specified ad client for the specified account.
1193 * (adunits.listAccountsAdunits)
1194 *
1195 * @param string $accountId
1196 * Account to which the ad client belongs.
1197 * @param string $adClientId
1198 * Ad client for which to list ad units.
1199 * @param array $optParams Optional parameters.
1200 *
1201 * @opt_param bool includeInactive
1202 * Whether to include inactive ad units. Default: true.
1203 * @opt_param string pageToken
1204 * A continuation token, used to page through ad units. To retrieve the next page, set this
1205 * parameter to the value of "nextPageToken" from the previous response.
1206 * @opt_param int maxResults
1207 * The maximum number of ad units to include in the response, used for paging.
1208 * @return Analytify_Google_Service_AdSense_AdUnits
1209 */
1210 public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
1211 {
1212 $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
1213 $params = array_merge($params, $optParams);
1214 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_AdUnits");
1215 }
1216 }
1217
1218 /**
1219 * The "customchannels" collection of methods.
1220 * Typical usage is:
1221 * <code>
1222 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1223 * $customchannels = $adsenseService->customchannels;
1224 * </code>
1225 */
1226 class Analytify_Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Analytify_Google_Service_Resource
1227 {
1228
1229 /**
1230 * List all custom channels which the specified ad unit belongs to.
1231 * (customchannels.listAccountsAdunitsCustomchannels)
1232 *
1233 * @param string $accountId
1234 * Account to which the ad client belongs.
1235 * @param string $adClientId
1236 * Ad client which contains the ad unit.
1237 * @param string $adUnitId
1238 * Ad unit for which to list custom channels.
1239 * @param array $optParams Optional parameters.
1240 *
1241 * @opt_param string pageToken
1242 * A continuation token, used to page through custom channels. To retrieve the next page, set this
1243 * parameter to the value of "nextPageToken" from the previous response.
1244 * @opt_param int maxResults
1245 * The maximum number of custom channels to include in the response, used for paging.
1246 * @return Analytify_Google_Service_AdSense_CustomChannels
1247 */
1248 public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array())
1249 {
1250 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1251 $params = array_merge($params, $optParams);
1252 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_CustomChannels");
1253 }
1254 }
1255 /**
1256 * The "alerts" collection of methods.
1257 * Typical usage is:
1258 * <code>
1259 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1260 * $alerts = $adsenseService->alerts;
1261 * </code>
1262 */
1263 class Analytify_Google_Service_AdSense_AccountsAlerts_Resource extends Analytify_Google_Service_Resource
1264 {
1265
1266 /**
1267 * Dismiss (delete) the specified alert from the specified publisher AdSense
1268 * account. (alerts.delete)
1269 *
1270 * @param string $accountId
1271 * Account which contains the ad unit.
1272 * @param string $alertId
1273 * Alert to delete.
1274 * @param array $optParams Optional parameters.
1275 */
1276 public function delete($accountId, $alertId, $optParams = array())
1277 {
1278 $params = array('accountId' => $accountId, 'alertId' => $alertId);
1279 $params = array_merge($params, $optParams);
1280 return $this->call('delete', array($params));
1281 }
1282 /**
1283 * List the alerts for the specified AdSense account.
1284 * (alerts.listAccountsAlerts)
1285 *
1286 * @param string $accountId
1287 * Account for which to retrieve the alerts.
1288 * @param array $optParams Optional parameters.
1289 *
1290 * @opt_param string locale
1291 * The locale to use for translating alert messages. The account locale will be used if this is not
1292 * supplied. The AdSense default (English) will be used if the supplied locale is invalid or
1293 * unsupported.
1294 * @return Analytify_Google_Service_AdSense_Alerts
1295 */
1296 public function listAccountsAlerts($accountId, $optParams = array())
1297 {
1298 $params = array('accountId' => $accountId);
1299 $params = array_merge($params, $optParams);
1300 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_Alerts");
1301 }
1302 }
1303 /**
1304 * The "customchannels" collection of methods.
1305 * Typical usage is:
1306 * <code>
1307 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1308 * $customchannels = $adsenseService->customchannels;
1309 * </code>
1310 */
1311 class Analytify_Google_Service_AdSense_AccountsCustomchannels_Resource extends Analytify_Google_Service_Resource
1312 {
1313
1314 /**
1315 * Get the specified custom channel from the specified ad client for the
1316 * specified account. (customchannels.get)
1317 *
1318 * @param string $accountId
1319 * Account to which the ad client belongs.
1320 * @param string $adClientId
1321 * Ad client which contains the custom channel.
1322 * @param string $customChannelId
1323 * Custom channel to retrieve.
1324 * @param array $optParams Optional parameters.
1325 * @return Analytify_Google_Service_AdSense_CustomChannel
1326 */
1327 public function get($accountId, $adClientId, $customChannelId, $optParams = array())
1328 {
1329 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1330 $params = array_merge($params, $optParams);
1331 return $this->call('get', array($params), "Analytify_Google_Service_AdSense_CustomChannel");
1332 }
1333 /**
1334 * List all custom channels in the specified ad client for the specified
1335 * account. (customchannels.listAccountsCustomchannels)
1336 *
1337 * @param string $accountId
1338 * Account to which the ad client belongs.
1339 * @param string $adClientId
1340 * Ad client for which to list custom channels.
1341 * @param array $optParams Optional parameters.
1342 *
1343 * @opt_param string pageToken
1344 * A continuation token, used to page through custom channels. To retrieve the next page, set this
1345 * parameter to the value of "nextPageToken" from the previous response.
1346 * @opt_param int maxResults
1347 * The maximum number of custom channels to include in the response, used for paging.
1348 * @return Analytify_Google_Service_AdSense_CustomChannels
1349 */
1350 public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array())
1351 {
1352 $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
1353 $params = array_merge($params, $optParams);
1354 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_CustomChannels");
1355 }
1356 }
1357
1358 /**
1359 * The "adunits" collection of methods.
1360 * Typical usage is:
1361 * <code>
1362 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1363 * $adunits = $adsenseService->adunits;
1364 * </code>
1365 */
1366 class Analytify_Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Analytify_Google_Service_Resource
1367 {
1368
1369 /**
1370 * List all ad units in the specified custom channel.
1371 * (adunits.listAccountsCustomchannelsAdunits)
1372 *
1373 * @param string $accountId
1374 * Account to which the ad client belongs.
1375 * @param string $adClientId
1376 * Ad client which contains the custom channel.
1377 * @param string $customChannelId
1378 * Custom channel for which to list ad units.
1379 * @param array $optParams Optional parameters.
1380 *
1381 * @opt_param bool includeInactive
1382 * Whether to include inactive ad units. Default: true.
1383 * @opt_param int maxResults
1384 * The maximum number of ad units to include in the response, used for paging.
1385 * @opt_param string pageToken
1386 * A continuation token, used to page through ad units. To retrieve the next page, set this
1387 * parameter to the value of "nextPageToken" from the previous response.
1388 * @return Analytify_Google_Service_AdSense_AdUnits
1389 */
1390 public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array())
1391 {
1392 $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1393 $params = array_merge($params, $optParams);
1394 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_AdUnits");
1395 }
1396 }
1397 /**
1398 * The "payments" collection of methods.
1399 * Typical usage is:
1400 * <code>
1401 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1402 * $payments = $adsenseService->payments;
1403 * </code>
1404 */
1405 class Analytify_Google_Service_AdSense_AccountsPayments_Resource extends Analytify_Google_Service_Resource
1406 {
1407
1408 /**
1409 * List the payments for the specified AdSense account.
1410 * (payments.listAccountsPayments)
1411 *
1412 * @param string $accountId
1413 * Account for which to retrieve the payments.
1414 * @param array $optParams Optional parameters.
1415 * @return Analytify_Google_Service_AdSense_Payments
1416 */
1417 public function listAccountsPayments($accountId, $optParams = array())
1418 {
1419 $params = array('accountId' => $accountId);
1420 $params = array_merge($params, $optParams);
1421 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_Payments");
1422 }
1423 }
1424 /**
1425 * The "reports" collection of methods.
1426 * Typical usage is:
1427 * <code>
1428 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1429 * $reports = $adsenseService->reports;
1430 * </code>
1431 */
1432 class Analytify_Google_Service_AdSense_AccountsReports_Resource extends Analytify_Google_Service_Resource
1433 {
1434
1435 /**
1436 * Generate an AdSense report based on the report request sent in the query
1437 * parameters. Returns the result as JSON; to retrieve output in CSV format
1438 * specify "alt=csv" as a query parameter. (reports.generate)
1439 *
1440 * @param string $accountId
1441 * Account upon which to report.
1442 * @param string $startDate
1443 * Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
1444 * @param string $endDate
1445 * End of the date range to report on in "YYYY-MM-DD" format, inclusive.
1446 * @param array $optParams Optional parameters.
1447 *
1448 * @opt_param string sort
1449 * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+"
1450 * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted
1451 * ascending.
1452 * @opt_param string locale
1453 * Optional locale to use for translating report output to a local language. Defaults to "en_US" if
1454 * not specified.
1455 * @opt_param string metric
1456 * Numeric columns to include in the report.
1457 * @opt_param int maxResults
1458 * The maximum number of rows of report data to return.
1459 * @opt_param string filter
1460 * Filters to be run on the report.
1461 * @opt_param string currency
1462 * Optional currency to use when reporting on monetary metrics. Defaults to the account's currency
1463 * if not set.
1464 * @opt_param int startIndex
1465 * Index of the first row of report data to return.
1466 * @opt_param bool useTimezoneReporting
1467 * Whether the report should be generated in the AdSense account's local timezone. If false default
1468 * PST/PDT timezone will be used.
1469 * @opt_param string dimension
1470 * Dimensions to base the report on.
1471 * @return Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponse
1472 */
1473 public function generate($accountId, $startDate, $endDate, $optParams = array())
1474 {
1475 $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
1476 $params = array_merge($params, $optParams);
1477 return $this->call('generate', array($params), "Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponse");
1478 }
1479 }
1480
1481 /**
1482 * The "saved" collection of methods.
1483 * Typical usage is:
1484 * <code>
1485 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1486 * $saved = $adsenseService->saved;
1487 * </code>
1488 */
1489 class Analytify_Google_Service_AdSense_AccountsReportsSaved_Resource extends Analytify_Google_Service_Resource
1490 {
1491
1492 /**
1493 * Generate an AdSense report based on the saved report ID sent in the query
1494 * parameters. (saved.generate)
1495 *
1496 * @param string $accountId
1497 * Account to which the saved reports belong.
1498 * @param string $savedReportId
1499 * The saved report to retrieve.
1500 * @param array $optParams Optional parameters.
1501 *
1502 * @opt_param string locale
1503 * Optional locale to use for translating report output to a local language. Defaults to "en_US" if
1504 * not specified.
1505 * @opt_param int startIndex
1506 * Index of the first row of report data to return.
1507 * @opt_param int maxResults
1508 * The maximum number of rows of report data to return.
1509 * @return Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponse
1510 */
1511 public function generate($accountId, $savedReportId, $optParams = array())
1512 {
1513 $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
1514 $params = array_merge($params, $optParams);
1515 return $this->call('generate', array($params), "Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponse");
1516 }
1517 /**
1518 * List all saved reports in the specified AdSense account.
1519 * (saved.listAccountsReportsSaved)
1520 *
1521 * @param string $accountId
1522 * Account to which the saved reports belong.
1523 * @param array $optParams Optional parameters.
1524 *
1525 * @opt_param string pageToken
1526 * A continuation token, used to page through saved reports. To retrieve the next page, set this
1527 * parameter to the value of "nextPageToken" from the previous response.
1528 * @opt_param int maxResults
1529 * The maximum number of saved reports to include in the response, used for paging.
1530 * @return Analytify_Google_Service_AdSense_SavedReports
1531 */
1532 public function listAccountsReportsSaved($accountId, $optParams = array())
1533 {
1534 $params = array('accountId' => $accountId);
1535 $params = array_merge($params, $optParams);
1536 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_SavedReports");
1537 }
1538 }
1539 /**
1540 * The "savedadstyles" collection of methods.
1541 * Typical usage is:
1542 * <code>
1543 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1544 * $savedadstyles = $adsenseService->savedadstyles;
1545 * </code>
1546 */
1547 class Analytify_Google_Service_AdSense_AccountsSavedadstyles_Resource extends Analytify_Google_Service_Resource
1548 {
1549
1550 /**
1551 * List a specific saved ad style for the specified account. (savedadstyles.get)
1552 *
1553 * @param string $accountId
1554 * Account for which to get the saved ad style.
1555 * @param string $savedAdStyleId
1556 * Saved ad style to retrieve.
1557 * @param array $optParams Optional parameters.
1558 * @return Analytify_Google_Service_AdSense_SavedAdStyle
1559 */
1560 public function get($accountId, $savedAdStyleId, $optParams = array())
1561 {
1562 $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId);
1563 $params = array_merge($params, $optParams);
1564 return $this->call('get', array($params), "Analytify_Google_Service_AdSense_SavedAdStyle");
1565 }
1566 /**
1567 * List all saved ad styles in the specified account.
1568 * (savedadstyles.listAccountsSavedadstyles)
1569 *
1570 * @param string $accountId
1571 * Account for which to list saved ad styles.
1572 * @param array $optParams Optional parameters.
1573 *
1574 * @opt_param string pageToken
1575 * A continuation token, used to page through saved ad styles. To retrieve the next page, set this
1576 * parameter to the value of "nextPageToken" from the previous response.
1577 * @opt_param int maxResults
1578 * The maximum number of saved ad styles to include in the response, used for paging.
1579 * @return Analytify_Google_Service_AdSense_SavedAdStyles
1580 */
1581 public function listAccountsSavedadstyles($accountId, $optParams = array())
1582 {
1583 $params = array('accountId' => $accountId);
1584 $params = array_merge($params, $optParams);
1585 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_SavedAdStyles");
1586 }
1587 }
1588 /**
1589 * The "urlchannels" collection of methods.
1590 * Typical usage is:
1591 * <code>
1592 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1593 * $urlchannels = $adsenseService->urlchannels;
1594 * </code>
1595 */
1596 class Analytify_Google_Service_AdSense_AccountsUrlchannels_Resource extends Analytify_Google_Service_Resource
1597 {
1598
1599 /**
1600 * List all URL channels in the specified ad client for the specified account.
1601 * (urlchannels.listAccountsUrlchannels)
1602 *
1603 * @param string $accountId
1604 * Account to which the ad client belongs.
1605 * @param string $adClientId
1606 * Ad client for which to list URL channels.
1607 * @param array $optParams Optional parameters.
1608 *
1609 * @opt_param string pageToken
1610 * A continuation token, used to page through URL channels. To retrieve the next page, set this
1611 * parameter to the value of "nextPageToken" from the previous response.
1612 * @opt_param int maxResults
1613 * The maximum number of URL channels to include in the response, used for paging.
1614 * @return Analytify_Google_Service_AdSense_UrlChannels
1615 */
1616 public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array())
1617 {
1618 $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
1619 $params = array_merge($params, $optParams);
1620 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_UrlChannels");
1621 }
1622 }
1623
1624 /**
1625 * The "adclients" collection of methods.
1626 * Typical usage is:
1627 * <code>
1628 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1629 * $adclients = $adsenseService->adclients;
1630 * </code>
1631 */
1632 class Analytify_Google_Service_AdSense_Adclients_Resource extends Analytify_Google_Service_Resource
1633 {
1634
1635 /**
1636 * List all ad clients in this AdSense account. (adclients.listAdclients)
1637 *
1638 * @param array $optParams Optional parameters.
1639 *
1640 * @opt_param string pageToken
1641 * A continuation token, used to page through ad clients. To retrieve the next page, set this
1642 * parameter to the value of "nextPageToken" from the previous response.
1643 * @opt_param int maxResults
1644 * The maximum number of ad clients to include in the response, used for paging.
1645 * @return Analytify_Google_Service_AdSense_AdClients
1646 */
1647 public function listAdclients($optParams = array())
1648 {
1649 $params = array();
1650 $params = array_merge($params, $optParams);
1651 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_AdClients");
1652 }
1653 }
1654
1655 /**
1656 * The "adunits" collection of methods.
1657 * Typical usage is:
1658 * <code>
1659 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1660 * $adunits = $adsenseService->adunits;
1661 * </code>
1662 */
1663 class Analytify_Google_Service_AdSense_Adunits_Resource extends Analytify_Google_Service_Resource
1664 {
1665
1666 /**
1667 * Gets the specified ad unit in the specified ad client. (adunits.get)
1668 *
1669 * @param string $adClientId
1670 * Ad client for which to get the ad unit.
1671 * @param string $adUnitId
1672 * Ad unit to retrieve.
1673 * @param array $optParams Optional parameters.
1674 * @return Analytify_Google_Service_AdSense_AdUnit
1675 */
1676 public function get($adClientId, $adUnitId, $optParams = array())
1677 {
1678 $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1679 $params = array_merge($params, $optParams);
1680 return $this->call('get', array($params), "Analytify_Google_Service_AdSense_AdUnit");
1681 }
1682 /**
1683 * Get ad code for the specified ad unit. (adunits.getAdCode)
1684 *
1685 * @param string $adClientId
1686 * Ad client with contains the ad unit.
1687 * @param string $adUnitId
1688 * Ad unit to get the code for.
1689 * @param array $optParams Optional parameters.
1690 * @return Analytify_Google_Service_AdSense_AdCode
1691 */
1692 public function getAdCode($adClientId, $adUnitId, $optParams = array())
1693 {
1694 $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1695 $params = array_merge($params, $optParams);
1696 return $this->call('getAdCode', array($params), "Analytify_Google_Service_AdSense_AdCode");
1697 }
1698 /**
1699 * List all ad units in the specified ad client for this AdSense account.
1700 * (adunits.listAdunits)
1701 *
1702 * @param string $adClientId
1703 * Ad client for which to list ad units.
1704 * @param array $optParams Optional parameters.
1705 *
1706 * @opt_param bool includeInactive
1707 * Whether to include inactive ad units. Default: true.
1708 * @opt_param string pageToken
1709 * A continuation token, used to page through ad units. To retrieve the next page, set this
1710 * parameter to the value of "nextPageToken" from the previous response.
1711 * @opt_param int maxResults
1712 * The maximum number of ad units to include in the response, used for paging.
1713 * @return Analytify_Google_Service_AdSense_AdUnits
1714 */
1715 public function listAdunits($adClientId, $optParams = array())
1716 {
1717 $params = array('adClientId' => $adClientId);
1718 $params = array_merge($params, $optParams);
1719 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_AdUnits");
1720 }
1721 }
1722
1723 /**
1724 * The "customchannels" collection of methods.
1725 * Typical usage is:
1726 * <code>
1727 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1728 * $customchannels = $adsenseService->customchannels;
1729 * </code>
1730 */
1731 class Analytify_Google_Service_AdSense_AdunitsCustomchannels_Resource extends Analytify_Google_Service_Resource
1732 {
1733
1734 /**
1735 * List all custom channels which the specified ad unit belongs to.
1736 * (customchannels.listAdunitsCustomchannels)
1737 *
1738 * @param string $adClientId
1739 * Ad client which contains the ad unit.
1740 * @param string $adUnitId
1741 * Ad unit for which to list custom channels.
1742 * @param array $optParams Optional parameters.
1743 *
1744 * @opt_param string pageToken
1745 * A continuation token, used to page through custom channels. To retrieve the next page, set this
1746 * parameter to the value of "nextPageToken" from the previous response.
1747 * @opt_param int maxResults
1748 * The maximum number of custom channels to include in the response, used for paging.
1749 * @return Analytify_Google_Service_AdSense_CustomChannels
1750 */
1751 public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array())
1752 {
1753 $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1754 $params = array_merge($params, $optParams);
1755 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_CustomChannels");
1756 }
1757 }
1758
1759 /**
1760 * The "alerts" collection of methods.
1761 * Typical usage is:
1762 * <code>
1763 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1764 * $alerts = $adsenseService->alerts;
1765 * </code>
1766 */
1767 class Analytify_Google_Service_AdSense_Alerts_Resource extends Analytify_Google_Service_Resource
1768 {
1769
1770 /**
1771 * Dismiss (delete) the specified alert from the publisher's AdSense account.
1772 * (alerts.delete)
1773 *
1774 * @param string $alertId
1775 * Alert to delete.
1776 * @param array $optParams Optional parameters.
1777 */
1778 public function delete($alertId, $optParams = array())
1779 {
1780 $params = array('alertId' => $alertId);
1781 $params = array_merge($params, $optParams);
1782 return $this->call('delete', array($params));
1783 }
1784 /**
1785 * List the alerts for this AdSense account. (alerts.listAlerts)
1786 *
1787 * @param array $optParams Optional parameters.
1788 *
1789 * @opt_param string locale
1790 * The locale to use for translating alert messages. The account locale will be used if this is not
1791 * supplied. The AdSense default (English) will be used if the supplied locale is invalid or
1792 * unsupported.
1793 * @return Analytify_Google_Service_AdSense_Alerts
1794 */
1795 public function listAlerts($optParams = array())
1796 {
1797 $params = array();
1798 $params = array_merge($params, $optParams);
1799 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_Alerts");
1800 }
1801 }
1802
1803 /**
1804 * The "customchannels" collection of methods.
1805 * Typical usage is:
1806 * <code>
1807 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1808 * $customchannels = $adsenseService->customchannels;
1809 * </code>
1810 */
1811 class Analytify_Google_Service_AdSense_Customchannels_Resource extends Analytify_Google_Service_Resource
1812 {
1813
1814 /**
1815 * Get the specified custom channel from the specified ad client.
1816 * (customchannels.get)
1817 *
1818 * @param string $adClientId
1819 * Ad client which contains the custom channel.
1820 * @param string $customChannelId
1821 * Custom channel to retrieve.
1822 * @param array $optParams Optional parameters.
1823 * @return Analytify_Google_Service_AdSense_CustomChannel
1824 */
1825 public function get($adClientId, $customChannelId, $optParams = array())
1826 {
1827 $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1828 $params = array_merge($params, $optParams);
1829 return $this->call('get', array($params), "Analytify_Google_Service_AdSense_CustomChannel");
1830 }
1831 /**
1832 * List all custom channels in the specified ad client for this AdSense account.
1833 * (customchannels.listCustomchannels)
1834 *
1835 * @param string $adClientId
1836 * Ad client for which to list custom channels.
1837 * @param array $optParams Optional parameters.
1838 *
1839 * @opt_param string pageToken
1840 * A continuation token, used to page through custom channels. To retrieve the next page, set this
1841 * parameter to the value of "nextPageToken" from the previous response.
1842 * @opt_param int maxResults
1843 * The maximum number of custom channels to include in the response, used for paging.
1844 * @return Analytify_Google_Service_AdSense_CustomChannels
1845 */
1846 public function listCustomchannels($adClientId, $optParams = array())
1847 {
1848 $params = array('adClientId' => $adClientId);
1849 $params = array_merge($params, $optParams);
1850 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_CustomChannels");
1851 }
1852 }
1853
1854 /**
1855 * The "adunits" collection of methods.
1856 * Typical usage is:
1857 * <code>
1858 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1859 * $adunits = $adsenseService->adunits;
1860 * </code>
1861 */
1862 class Analytify_Google_Service_AdSense_CustomchannelsAdunits_Resource extends Analytify_Google_Service_Resource
1863 {
1864
1865 /**
1866 * List all ad units in the specified custom channel.
1867 * (adunits.listCustomchannelsAdunits)
1868 *
1869 * @param string $adClientId
1870 * Ad client which contains the custom channel.
1871 * @param string $customChannelId
1872 * Custom channel for which to list ad units.
1873 * @param array $optParams Optional parameters.
1874 *
1875 * @opt_param bool includeInactive
1876 * Whether to include inactive ad units. Default: true.
1877 * @opt_param string pageToken
1878 * A continuation token, used to page through ad units. To retrieve the next page, set this
1879 * parameter to the value of "nextPageToken" from the previous response.
1880 * @opt_param int maxResults
1881 * The maximum number of ad units to include in the response, used for paging.
1882 * @return Analytify_Google_Service_AdSense_AdUnits
1883 */
1884 public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array())
1885 {
1886 $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1887 $params = array_merge($params, $optParams);
1888 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_AdUnits");
1889 }
1890 }
1891
1892 /**
1893 * The "metadata" collection of methods.
1894 * Typical usage is:
1895 * <code>
1896 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1897 * $metadata = $adsenseService->metadata;
1898 * </code>
1899 */
1900 class Analytify_Google_Service_AdSense_Metadata_Resource extends Analytify_Google_Service_Resource
1901 {
1902
1903 }
1904
1905 /**
1906 * The "dimensions" collection of methods.
1907 * Typical usage is:
1908 * <code>
1909 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1910 * $dimensions = $adsenseService->dimensions;
1911 * </code>
1912 */
1913 class Analytify_Google_Service_AdSense_MetadataDimensions_Resource extends Analytify_Google_Service_Resource
1914 {
1915
1916 /**
1917 * List the metadata for the dimensions available to this AdSense account.
1918 * (dimensions.listMetadataDimensions)
1919 *
1920 * @param array $optParams Optional parameters.
1921 * @return Analytify_Google_Service_AdSense_Metadata
1922 */
1923 public function listMetadataDimensions($optParams = array())
1924 {
1925 $params = array();
1926 $params = array_merge($params, $optParams);
1927 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_Metadata");
1928 }
1929 }
1930 /**
1931 * The "metrics" collection of methods.
1932 * Typical usage is:
1933 * <code>
1934 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1935 * $metrics = $adsenseService->metrics;
1936 * </code>
1937 */
1938 class Analytify_Google_Service_AdSense_MetadataMetrics_Resource extends Analytify_Google_Service_Resource
1939 {
1940
1941 /**
1942 * List the metadata for the metrics available to this AdSense account.
1943 * (metrics.listMetadataMetrics)
1944 *
1945 * @param array $optParams Optional parameters.
1946 * @return Analytify_Google_Service_AdSense_Metadata
1947 */
1948 public function listMetadataMetrics($optParams = array())
1949 {
1950 $params = array();
1951 $params = array_merge($params, $optParams);
1952 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_Metadata");
1953 }
1954 }
1955
1956 /**
1957 * The "payments" collection of methods.
1958 * Typical usage is:
1959 * <code>
1960 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1961 * $payments = $adsenseService->payments;
1962 * </code>
1963 */
1964 class Analytify_Google_Service_AdSense_Payments_Resource extends Analytify_Google_Service_Resource
1965 {
1966
1967 /**
1968 * List the payments for this AdSense account. (payments.listPayments)
1969 *
1970 * @param array $optParams Optional parameters.
1971 * @return Analytify_Google_Service_AdSense_Payments
1972 */
1973 public function listPayments($optParams = array())
1974 {
1975 $params = array();
1976 $params = array_merge($params, $optParams);
1977 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_Payments");
1978 }
1979 }
1980
1981 /**
1982 * The "reports" collection of methods.
1983 * Typical usage is:
1984 * <code>
1985 * $adsenseService = new Analytify_Google_Service_AdSense(...);
1986 * $reports = $adsenseService->reports;
1987 * </code>
1988 */
1989 class Analytify_Google_Service_AdSense_Reports_Resource extends Analytify_Google_Service_Resource
1990 {
1991
1992 /**
1993 * Generate an AdSense report based on the report request sent in the query
1994 * parameters. Returns the result as JSON; to retrieve output in CSV format
1995 * specify "alt=csv" as a query parameter. (reports.generate)
1996 *
1997 * @param string $startDate
1998 * Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
1999 * @param string $endDate
2000 * End of the date range to report on in "YYYY-MM-DD" format, inclusive.
2001 * @param array $optParams Optional parameters.
2002 *
2003 * @opt_param string sort
2004 * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+"
2005 * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted
2006 * ascending.
2007 * @opt_param string locale
2008 * Optional locale to use for translating report output to a local language. Defaults to "en_US" if
2009 * not specified.
2010 * @opt_param string metric
2011 * Numeric columns to include in the report.
2012 * @opt_param int maxResults
2013 * The maximum number of rows of report data to return.
2014 * @opt_param string filter
2015 * Filters to be run on the report.
2016 * @opt_param string currency
2017 * Optional currency to use when reporting on monetary metrics. Defaults to the account's currency
2018 * if not set.
2019 * @opt_param int startIndex
2020 * Index of the first row of report data to return.
2021 * @opt_param bool useTimezoneReporting
2022 * Whether the report should be generated in the AdSense account's local timezone. If false default
2023 * PST/PDT timezone will be used.
2024 * @opt_param string dimension
2025 * Dimensions to base the report on.
2026 * @opt_param string accountId
2027 * Accounts upon which to report.
2028 * @return Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponse
2029 */
2030 public function generate($startDate, $endDate, $optParams = array())
2031 {
2032 $params = array('startDate' => $startDate, 'endDate' => $endDate);
2033 $params = array_merge($params, $optParams);
2034 return $this->call('generate', array($params), "Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponse");
2035 }
2036 }
2037
2038 /**
2039 * The "saved" collection of methods.
2040 * Typical usage is:
2041 * <code>
2042 * $adsenseService = new Analytify_Google_Service_AdSense(...);
2043 * $saved = $adsenseService->saved;
2044 * </code>
2045 */
2046 class Analytify_Google_Service_AdSense_ReportsSaved_Resource extends Analytify_Google_Service_Resource
2047 {
2048
2049 /**
2050 * Generate an AdSense report based on the saved report ID sent in the query
2051 * parameters. (saved.generate)
2052 *
2053 * @param string $savedReportId
2054 * The saved report to retrieve.
2055 * @param array $optParams Optional parameters.
2056 *
2057 * @opt_param string locale
2058 * Optional locale to use for translating report output to a local language. Defaults to "en_US" if
2059 * not specified.
2060 * @opt_param int startIndex
2061 * Index of the first row of report data to return.
2062 * @opt_param int maxResults
2063 * The maximum number of rows of report data to return.
2064 * @return Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponse
2065 */
2066 public function generate($savedReportId, $optParams = array())
2067 {
2068 $params = array('savedReportId' => $savedReportId);
2069 $params = array_merge($params, $optParams);
2070 return $this->call('generate', array($params), "Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponse");
2071 }
2072 /**
2073 * List all saved reports in this AdSense account. (saved.listReportsSaved)
2074 *
2075 * @param array $optParams Optional parameters.
2076 *
2077 * @opt_param string pageToken
2078 * A continuation token, used to page through saved reports. To retrieve the next page, set this
2079 * parameter to the value of "nextPageToken" from the previous response.
2080 * @opt_param int maxResults
2081 * The maximum number of saved reports to include in the response, used for paging.
2082 * @return Analytify_Google_Service_AdSense_SavedReports
2083 */
2084 public function listReportsSaved($optParams = array())
2085 {
2086 $params = array();
2087 $params = array_merge($params, $optParams);
2088 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_SavedReports");
2089 }
2090 }
2091
2092 /**
2093 * The "savedadstyles" collection of methods.
2094 * Typical usage is:
2095 * <code>
2096 * $adsenseService = new Analytify_Google_Service_AdSense(...);
2097 * $savedadstyles = $adsenseService->savedadstyles;
2098 * </code>
2099 */
2100 class Analytify_Google_Service_AdSense_Savedadstyles_Resource extends Analytify_Google_Service_Resource
2101 {
2102
2103 /**
2104 * Get a specific saved ad style from the user's account. (savedadstyles.get)
2105 *
2106 * @param string $savedAdStyleId
2107 * Saved ad style to retrieve.
2108 * @param array $optParams Optional parameters.
2109 * @return Analytify_Google_Service_AdSense_SavedAdStyle
2110 */
2111 public function get($savedAdStyleId, $optParams = array())
2112 {
2113 $params = array('savedAdStyleId' => $savedAdStyleId);
2114 $params = array_merge($params, $optParams);
2115 return $this->call('get', array($params), "Analytify_Google_Service_AdSense_SavedAdStyle");
2116 }
2117 /**
2118 * List all saved ad styles in the user's account.
2119 * (savedadstyles.listSavedadstyles)
2120 *
2121 * @param array $optParams Optional parameters.
2122 *
2123 * @opt_param string pageToken
2124 * A continuation token, used to page through saved ad styles. To retrieve the next page, set this
2125 * parameter to the value of "nextPageToken" from the previous response.
2126 * @opt_param int maxResults
2127 * The maximum number of saved ad styles to include in the response, used for paging.
2128 * @return Analytify_Google_Service_AdSense_SavedAdStyles
2129 */
2130 public function listSavedadstyles($optParams = array())
2131 {
2132 $params = array();
2133 $params = array_merge($params, $optParams);
2134 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_SavedAdStyles");
2135 }
2136 }
2137
2138 /**
2139 * The "urlchannels" collection of methods.
2140 * Typical usage is:
2141 * <code>
2142 * $adsenseService = new Analytify_Google_Service_AdSense(...);
2143 * $urlchannels = $adsenseService->urlchannels;
2144 * </code>
2145 */
2146 class Analytify_Google_Service_AdSense_Urlchannels_Resource extends Analytify_Google_Service_Resource
2147 {
2148
2149 /**
2150 * List all URL channels in the specified ad client for this AdSense account.
2151 * (urlchannels.listUrlchannels)
2152 *
2153 * @param string $adClientId
2154 * Ad client for which to list URL channels.
2155 * @param array $optParams Optional parameters.
2156 *
2157 * @opt_param string pageToken
2158 * A continuation token, used to page through URL channels. To retrieve the next page, set this
2159 * parameter to the value of "nextPageToken" from the previous response.
2160 * @opt_param int maxResults
2161 * The maximum number of URL channels to include in the response, used for paging.
2162 * @return Analytify_Google_Service_AdSense_UrlChannels
2163 */
2164 public function listUrlchannels($adClientId, $optParams = array())
2165 {
2166 $params = array('adClientId' => $adClientId);
2167 $params = array_merge($params, $optParams);
2168 return $this->call('list', array($params), "Analytify_Google_Service_AdSense_UrlChannels");
2169 }
2170 }
2171
2172
2173
2174
2175 class Analytify_Google_Service_AdSense_Account extends Analytify_Google_Collection
2176 {
2177 public $id;
2178 public $kind;
2179 public $name;
2180 public $premium;
2181 protected $subAccountsType = 'Analytify_Google_Service_AdSense_Account';
2182 protected $subAccountsDataType = 'array';
2183 public $timezone;
2184
2185 public function setId($id)
2186 {
2187 $this->id = $id;
2188 }
2189
2190 public function getId()
2191 {
2192 return $this->id;
2193 }
2194
2195 public function setKind($kind)
2196 {
2197 $this->kind = $kind;
2198 }
2199
2200 public function getKind()
2201 {
2202 return $this->kind;
2203 }
2204
2205 public function setName($name)
2206 {
2207 $this->name = $name;
2208 }
2209
2210 public function getName()
2211 {
2212 return $this->name;
2213 }
2214
2215 public function setPremium($premium)
2216 {
2217 $this->premium = $premium;
2218 }
2219
2220 public function getPremium()
2221 {
2222 return $this->premium;
2223 }
2224
2225 public function setSubAccounts($subAccounts)
2226 {
2227 $this->subAccounts = $subAccounts;
2228 }
2229
2230 public function getSubAccounts()
2231 {
2232 return $this->subAccounts;
2233 }
2234
2235 public function setTimezone($timezone)
2236 {
2237 $this->timezone = $timezone;
2238 }
2239
2240 public function getTimezone()
2241 {
2242 return $this->timezone;
2243 }
2244 }
2245
2246 class Analytify_Google_Service_AdSense_Accounts extends Analytify_Google_Collection
2247 {
2248 public $etag;
2249 protected $itemsType = 'Analytify_Google_Service_AdSense_Account';
2250 protected $itemsDataType = 'array';
2251 public $kind;
2252 public $nextPageToken;
2253
2254 public function setEtag($etag)
2255 {
2256 $this->etag = $etag;
2257 }
2258
2259 public function getEtag()
2260 {
2261 return $this->etag;
2262 }
2263
2264 public function setItems($items)
2265 {
2266 $this->items = $items;
2267 }
2268
2269 public function getItems()
2270 {
2271 return $this->items;
2272 }
2273
2274 public function setKind($kind)
2275 {
2276 $this->kind = $kind;
2277 }
2278
2279 public function getKind()
2280 {
2281 return $this->kind;
2282 }
2283
2284 public function setNextPageToken($nextPageToken)
2285 {
2286 $this->nextPageToken = $nextPageToken;
2287 }
2288
2289 public function getNextPageToken()
2290 {
2291 return $this->nextPageToken;
2292 }
2293 }
2294
2295 class Analytify_Google_Service_AdSense_AdClient extends Analytify_Google_Model
2296 {
2297 public $arcOptIn;
2298 public $arcReviewMode;
2299 public $id;
2300 public $kind;
2301 public $productCode;
2302 public $supportsReporting;
2303
2304 public function setArcOptIn($arcOptIn)
2305 {
2306 $this->arcOptIn = $arcOptIn;
2307 }
2308
2309 public function getArcOptIn()
2310 {
2311 return $this->arcOptIn;
2312 }
2313
2314 public function setArcReviewMode($arcReviewMode)
2315 {
2316 $this->arcReviewMode = $arcReviewMode;
2317 }
2318
2319 public function getArcReviewMode()
2320 {
2321 return $this->arcReviewMode;
2322 }
2323
2324 public function setId($id)
2325 {
2326 $this->id = $id;
2327 }
2328
2329 public function getId()
2330 {
2331 return $this->id;
2332 }
2333
2334 public function setKind($kind)
2335 {
2336 $this->kind = $kind;
2337 }
2338
2339 public function getKind()
2340 {
2341 return $this->kind;
2342 }
2343
2344 public function setProductCode($productCode)
2345 {
2346 $this->productCode = $productCode;
2347 }
2348
2349 public function getProductCode()
2350 {
2351 return $this->productCode;
2352 }
2353
2354 public function setSupportsReporting($supportsReporting)
2355 {
2356 $this->supportsReporting = $supportsReporting;
2357 }
2358
2359 public function getSupportsReporting()
2360 {
2361 return $this->supportsReporting;
2362 }
2363 }
2364
2365 class Analytify_Google_Service_AdSense_AdClients extends Analytify_Google_Collection
2366 {
2367 public $etag;
2368 protected $itemsType = 'Analytify_Google_Service_AdSense_AdClient';
2369 protected $itemsDataType = 'array';
2370 public $kind;
2371 public $nextPageToken;
2372
2373 public function setEtag($etag)
2374 {
2375 $this->etag = $etag;
2376 }
2377
2378 public function getEtag()
2379 {
2380 return $this->etag;
2381 }
2382
2383 public function setItems($items)
2384 {
2385 $this->items = $items;
2386 }
2387
2388 public function getItems()
2389 {
2390 return $this->items;
2391 }
2392
2393 public function setKind($kind)
2394 {
2395 $this->kind = $kind;
2396 }
2397
2398 public function getKind()
2399 {
2400 return $this->kind;
2401 }
2402
2403 public function setNextPageToken($nextPageToken)
2404 {
2405 $this->nextPageToken = $nextPageToken;
2406 }
2407
2408 public function getNextPageToken()
2409 {
2410 return $this->nextPageToken;
2411 }
2412 }
2413
2414 class Analytify_Google_Service_AdSense_AdCode extends Analytify_Google_Model
2415 {
2416 public $adCode;
2417 public $kind;
2418
2419 public function setAdCode($adCode)
2420 {
2421 $this->adCode = $adCode;
2422 }
2423
2424 public function getAdCode()
2425 {
2426 return $this->adCode;
2427 }
2428
2429 public function setKind($kind)
2430 {
2431 $this->kind = $kind;
2432 }
2433
2434 public function getKind()
2435 {
2436 return $this->kind;
2437 }
2438 }
2439
2440 class Analytify_Google_Service_AdSense_AdStyle extends Analytify_Google_Model
2441 {
2442 protected $colorsType = 'Analytify_Google_Service_AdSense_AdStyleColors';
2443 protected $colorsDataType = '';
2444 public $corners;
2445 protected $fontType = 'Analytify_Google_Service_AdSense_AdStyleFont';
2446 protected $fontDataType = '';
2447 public $kind;
2448
2449 public function setColors(Analytify_Google_Service_AdSense_AdStyleColors $colors)
2450 {
2451 $this->colors = $colors;
2452 }
2453
2454 public function getColors()
2455 {
2456 return $this->colors;
2457 }
2458
2459 public function setCorners($corners)
2460 {
2461 $this->corners = $corners;
2462 }
2463
2464 public function getCorners()
2465 {
2466 return $this->corners;
2467 }
2468
2469 public function setFont(Analytify_Google_Service_AdSense_AdStyleFont $font)
2470 {
2471 $this->font = $font;
2472 }
2473
2474 public function getFont()
2475 {
2476 return $this->font;
2477 }
2478
2479 public function setKind($kind)
2480 {
2481 $this->kind = $kind;
2482 }
2483
2484 public function getKind()
2485 {
2486 return $this->kind;
2487 }
2488 }
2489
2490 class Analytify_Google_Service_AdSense_AdStyleColors extends Analytify_Google_Model
2491 {
2492 public $background;
2493 public $border;
2494 public $text;
2495 public $title;
2496 public $url;
2497
2498 public function setBackground($background)
2499 {
2500 $this->background = $background;
2501 }
2502
2503 public function getBackground()
2504 {
2505 return $this->background;
2506 }
2507
2508 public function setBorder($border)
2509 {
2510 $this->border = $border;
2511 }
2512
2513 public function getBorder()
2514 {
2515 return $this->border;
2516 }
2517
2518 public function setText($text)
2519 {
2520 $this->text = $text;
2521 }
2522
2523 public function getText()
2524 {
2525 return $this->text;
2526 }
2527
2528 public function setTitle($title)
2529 {
2530 $this->title = $title;
2531 }
2532
2533 public function getTitle()
2534 {
2535 return $this->title;
2536 }
2537
2538 public function setUrl($url)
2539 {
2540 $this->url = $url;
2541 }
2542
2543 public function getUrl()
2544 {
2545 return $this->url;
2546 }
2547 }
2548
2549 class Analytify_Google_Service_AdSense_AdStyleFont extends Analytify_Google_Model
2550 {
2551 public $family;
2552 public $size;
2553
2554 public function setFamily($family)
2555 {
2556 $this->family = $family;
2557 }
2558
2559 public function getFamily()
2560 {
2561 return $this->family;
2562 }
2563
2564 public function setSize($size)
2565 {
2566 $this->size = $size;
2567 }
2568
2569 public function getSize()
2570 {
2571 return $this->size;
2572 }
2573 }
2574
2575 class Analytify_Google_Service_AdSense_AdUnit extends Analytify_Google_Model
2576 {
2577 public $code;
2578 protected $contentAdsSettingsType = 'Analytify_Google_Service_AdSense_AdUnitContentAdsSettings';
2579 protected $contentAdsSettingsDataType = '';
2580 protected $customStyleType = 'Analytify_Google_Service_AdSense_AdStyle';
2581 protected $customStyleDataType = '';
2582 protected $feedAdsSettingsType = 'Analytify_Google_Service_AdSense_AdUnitFeedAdsSettings';
2583 protected $feedAdsSettingsDataType = '';
2584 public $id;
2585 public $kind;
2586 protected $mobileContentAdsSettingsType = 'Analytify_Google_Service_AdSense_AdUnitMobileContentAdsSettings';
2587 protected $mobileContentAdsSettingsDataType = '';
2588 public $name;
2589 public $savedStyleId;
2590 public $status;
2591
2592 public function setCode($code)
2593 {
2594 $this->code = $code;
2595 }
2596
2597 public function getCode()
2598 {
2599 return $this->code;
2600 }
2601
2602 public function setContentAdsSettings(Analytify_Google_Service_AdSense_AdUnitContentAdsSettings $contentAdsSettings)
2603 {
2604 $this->contentAdsSettings = $contentAdsSettings;
2605 }
2606
2607 public function getContentAdsSettings()
2608 {
2609 return $this->contentAdsSettings;
2610 }
2611
2612 public function setCustomStyle(Analytify_Google_Service_AdSense_AdStyle $customStyle)
2613 {
2614 $this->customStyle = $customStyle;
2615 }
2616
2617 public function getCustomStyle()
2618 {
2619 return $this->customStyle;
2620 }
2621
2622 public function setFeedAdsSettings(Analytify_Google_Service_AdSense_AdUnitFeedAdsSettings $feedAdsSettings)
2623 {
2624 $this->feedAdsSettings = $feedAdsSettings;
2625 }
2626
2627 public function getFeedAdsSettings()
2628 {
2629 return $this->feedAdsSettings;
2630 }
2631
2632 public function setId($id)
2633 {
2634 $this->id = $id;
2635 }
2636
2637 public function getId()
2638 {
2639 return $this->id;
2640 }
2641
2642 public function setKind($kind)
2643 {
2644 $this->kind = $kind;
2645 }
2646
2647 public function getKind()
2648 {
2649 return $this->kind;
2650 }
2651
2652 public function setMobileContentAdsSettings(Analytify_Google_Service_AdSense_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
2653 {
2654 $this->mobileContentAdsSettings = $mobileContentAdsSettings;
2655 }
2656
2657 public function getMobileContentAdsSettings()
2658 {
2659 return $this->mobileContentAdsSettings;
2660 }
2661
2662 public function setName($name)
2663 {
2664 $this->name = $name;
2665 }
2666
2667 public function getName()
2668 {
2669 return $this->name;
2670 }
2671
2672 public function setSavedStyleId($savedStyleId)
2673 {
2674 $this->savedStyleId = $savedStyleId;
2675 }
2676
2677 public function getSavedStyleId()
2678 {
2679 return $this->savedStyleId;
2680 }
2681
2682 public function setStatus($status)
2683 {
2684 $this->status = $status;
2685 }
2686
2687 public function getStatus()
2688 {
2689 return $this->status;
2690 }
2691 }
2692
2693 class Analytify_Google_Service_AdSense_AdUnitContentAdsSettings extends Analytify_Google_Model
2694 {
2695 protected $backupOptionType = 'Analytify_Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption';
2696 protected $backupOptionDataType = '';
2697 public $size;
2698 public $type;
2699
2700 public function setBackupOption(Analytify_Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption $backupOption)
2701 {
2702 $this->backupOption = $backupOption;
2703 }
2704
2705 public function getBackupOption()
2706 {
2707 return $this->backupOption;
2708 }
2709
2710 public function setSize($size)
2711 {
2712 $this->size = $size;
2713 }
2714
2715 public function getSize()
2716 {
2717 return $this->size;
2718 }
2719
2720 public function setType($type)
2721 {
2722 $this->type = $type;
2723 }
2724
2725 public function getType()
2726 {
2727 return $this->type;
2728 }
2729 }
2730
2731 class Analytify_Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Analytify_Google_Model
2732 {
2733 public $color;
2734 public $type;
2735 public $url;
2736
2737 public function setColor($color)
2738 {
2739 $this->color = $color;
2740 }
2741
2742 public function getColor()
2743 {
2744 return $this->color;
2745 }
2746
2747 public function setType($type)
2748 {
2749 $this->type = $type;
2750 }
2751
2752 public function getType()
2753 {
2754 return $this->type;
2755 }
2756
2757 public function setUrl($url)
2758 {
2759 $this->url = $url;
2760 }
2761
2762 public function getUrl()
2763 {
2764 return $this->url;
2765 }
2766 }
2767
2768 class Analytify_Google_Service_AdSense_AdUnitFeedAdsSettings extends Analytify_Google_Model
2769 {
2770 public $adPosition;
2771 public $frequency;
2772 public $minimumWordCount;
2773 public $type;
2774
2775 public function setAdPosition($adPosition)
2776 {
2777 $this->adPosition = $adPosition;
2778 }
2779
2780 public function getAdPosition()
2781 {
2782 return $this->adPosition;
2783 }
2784
2785 public function setFrequency($frequency)
2786 {
2787 $this->frequency = $frequency;
2788 }
2789
2790 public function getFrequency()
2791 {
2792 return $this->frequency;
2793 }
2794
2795 public function setMinimumWordCount($minimumWordCount)
2796 {
2797 $this->minimumWordCount = $minimumWordCount;
2798 }
2799
2800 public function getMinimumWordCount()
2801 {
2802 return $this->minimumWordCount;
2803 }
2804
2805 public function setType($type)
2806 {
2807 $this->type = $type;
2808 }
2809
2810 public function getType()
2811 {
2812 return $this->type;
2813 }
2814 }
2815
2816 class Analytify_Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Analytify_Google_Model
2817 {
2818 public $markupLanguage;
2819 public $scriptingLanguage;
2820 public $size;
2821 public $type;
2822
2823 public function setMarkupLanguage($markupLanguage)
2824 {
2825 $this->markupLanguage = $markupLanguage;
2826 }
2827
2828 public function getMarkupLanguage()
2829 {
2830 return $this->markupLanguage;
2831 }
2832
2833 public function setScriptingLanguage($scriptingLanguage)
2834 {
2835 $this->scriptingLanguage = $scriptingLanguage;
2836 }
2837
2838 public function getScriptingLanguage()
2839 {
2840 return $this->scriptingLanguage;
2841 }
2842
2843 public function setSize($size)
2844 {
2845 $this->size = $size;
2846 }
2847
2848 public function getSize()
2849 {
2850 return $this->size;
2851 }
2852
2853 public function setType($type)
2854 {
2855 $this->type = $type;
2856 }
2857
2858 public function getType()
2859 {
2860 return $this->type;
2861 }
2862 }
2863
2864 class Analytify_Google_Service_AdSense_AdUnits extends Analytify_Google_Collection
2865 {
2866 public $etag;
2867 protected $itemsType = 'Analytify_Google_Service_AdSense_AdUnit';
2868 protected $itemsDataType = 'array';
2869 public $kind;
2870 public $nextPageToken;
2871
2872 public function setEtag($etag)
2873 {
2874 $this->etag = $etag;
2875 }
2876
2877 public function getEtag()
2878 {
2879 return $this->etag;
2880 }
2881
2882 public function setItems($items)
2883 {
2884 $this->items = $items;
2885 }
2886
2887 public function getItems()
2888 {
2889 return $this->items;
2890 }
2891
2892 public function setKind($kind)
2893 {
2894 $this->kind = $kind;
2895 }
2896
2897 public function getKind()
2898 {
2899 return $this->kind;
2900 }
2901
2902 public function setNextPageToken($nextPageToken)
2903 {
2904 $this->nextPageToken = $nextPageToken;
2905 }
2906
2907 public function getNextPageToken()
2908 {
2909 return $this->nextPageToken;
2910 }
2911 }
2912
2913 class Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponse extends Analytify_Google_Collection
2914 {
2915 public $averages;
2916 public $endDate;
2917 protected $headersType = 'Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders';
2918 protected $headersDataType = 'array';
2919 public $kind;
2920 public $rows;
2921 public $startDate;
2922 public $totalMatchedRows;
2923 public $totals;
2924 public $warnings;
2925
2926 public function setAverages($averages)
2927 {
2928 $this->averages = $averages;
2929 }
2930
2931 public function getAverages()
2932 {
2933 return $this->averages;
2934 }
2935
2936 public function setEndDate($endDate)
2937 {
2938 $this->endDate = $endDate;
2939 }
2940
2941 public function getEndDate()
2942 {
2943 return $this->endDate;
2944 }
2945
2946 public function setHeaders($headers)
2947 {
2948 $this->headers = $headers;
2949 }
2950
2951 public function getHeaders()
2952 {
2953 return $this->headers;
2954 }
2955
2956 public function setKind($kind)
2957 {
2958 $this->kind = $kind;
2959 }
2960
2961 public function getKind()
2962 {
2963 return $this->kind;
2964 }
2965
2966 public function setRows($rows)
2967 {
2968 $this->rows = $rows;
2969 }
2970
2971 public function getRows()
2972 {
2973 return $this->rows;
2974 }
2975
2976 public function setStartDate($startDate)
2977 {
2978 $this->startDate = $startDate;
2979 }
2980
2981 public function getStartDate()
2982 {
2983 return $this->startDate;
2984 }
2985
2986 public function setTotalMatchedRows($totalMatchedRows)
2987 {
2988 $this->totalMatchedRows = $totalMatchedRows;
2989 }
2990
2991 public function getTotalMatchedRows()
2992 {
2993 return $this->totalMatchedRows;
2994 }
2995
2996 public function setTotals($totals)
2997 {
2998 $this->totals = $totals;
2999 }
3000
3001 public function getTotals()
3002 {
3003 return $this->totals;
3004 }
3005
3006 public function setWarnings($warnings)
3007 {
3008 $this->warnings = $warnings;
3009 }
3010
3011 public function getWarnings()
3012 {
3013 return $this->warnings;
3014 }
3015 }
3016
3017 class Analytify_Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Analytify_Google_Model
3018 {
3019 public $currency;
3020 public $name;
3021 public $type;
3022
3023 public function setCurrency($currency)
3024 {
3025 $this->currency = $currency;
3026 }
3027
3028 public function getCurrency()
3029 {
3030 return $this->currency;
3031 }
3032
3033 public function setName($name)
3034 {
3035 $this->name = $name;
3036 }
3037
3038 public function getName()
3039 {
3040 return $this->name;
3041 }
3042
3043 public function setType($type)
3044 {
3045 $this->type = $type;
3046 }
3047
3048 public function getType()
3049 {
3050 return $this->type;
3051 }
3052 }
3053
3054 class Analytify_Google_Service_AdSense_Alert extends Analytify_Google_Model
3055 {
3056 public $id;
3057 public $isDismissible;
3058 public $kind;
3059 public $message;
3060 public $severity;
3061 public $type;
3062
3063 public function setId($id)
3064 {
3065 $this->id = $id;
3066 }
3067
3068 public function getId()
3069 {
3070 return $this->id;
3071 }
3072
3073 public function setIsDismissible($isDismissible)
3074 {
3075 $this->isDismissible = $isDismissible;
3076 }
3077
3078 public function getIsDismissible()
3079 {
3080 return $this->isDismissible;
3081 }
3082
3083 public function setKind($kind)
3084 {
3085 $this->kind = $kind;
3086 }
3087
3088 public function getKind()
3089 {
3090 return $this->kind;
3091 }
3092
3093 public function setMessage($message)
3094 {
3095 $this->message = $message;
3096 }
3097
3098 public function getMessage()
3099 {
3100 return $this->message;
3101 }
3102
3103 public function setSeverity($severity)
3104 {
3105 $this->severity = $severity;
3106 }
3107
3108 public function getSeverity()
3109 {
3110 return $this->severity;
3111 }
3112
3113 public function setType($type)
3114 {
3115 $this->type = $type;
3116 }
3117
3118 public function getType()
3119 {
3120 return $this->type;
3121 }
3122 }
3123
3124 class Analytify_Google_Service_AdSense_Alerts extends Analytify_Google_Collection
3125 {
3126 protected $itemsType = 'Analytify_Google_Service_AdSense_Alert';
3127 protected $itemsDataType = 'array';
3128 public $kind;
3129
3130 public function setItems($items)
3131 {
3132 $this->items = $items;
3133 }
3134
3135 public function getItems()
3136 {
3137 return $this->items;
3138 }
3139
3140 public function setKind($kind)
3141 {
3142 $this->kind = $kind;
3143 }
3144
3145 public function getKind()
3146 {
3147 return $this->kind;
3148 }
3149 }
3150
3151 class Analytify_Google_Service_AdSense_CustomChannel extends Analytify_Google_Model
3152 {
3153 public $code;
3154 public $id;
3155 public $kind;
3156 public $name;
3157 protected $targetingInfoType = 'Analytify_Google_Service_AdSense_CustomChannelTargetingInfo';
3158 protected $targetingInfoDataType = '';
3159
3160 public function setCode($code)
3161 {
3162 $this->code = $code;
3163 }
3164
3165 public function getCode()
3166 {
3167 return $this->code;
3168 }
3169
3170 public function setId($id)
3171 {
3172 $this->id = $id;
3173 }
3174
3175 public function getId()
3176 {
3177 return $this->id;
3178 }
3179
3180 public function setKind($kind)
3181 {
3182 $this->kind = $kind;
3183 }
3184
3185 public function getKind()
3186 {
3187 return $this->kind;
3188 }
3189
3190 public function setName($name)
3191 {
3192 $this->name = $name;
3193 }
3194
3195 public function getName()
3196 {
3197 return $this->name;
3198 }
3199
3200 public function setTargetingInfo(Analytify_Google_Service_AdSense_CustomChannelTargetingInfo $targetingInfo)
3201 {
3202 $this->targetingInfo = $targetingInfo;
3203 }
3204
3205 public function getTargetingInfo()
3206 {
3207 return $this->targetingInfo;
3208 }
3209 }
3210
3211 class Analytify_Google_Service_AdSense_CustomChannelTargetingInfo extends Analytify_Google_Model
3212 {
3213 public $adsAppearOn;
3214 public $description;
3215 public $location;
3216 public $siteLanguage;
3217
3218 public function setAdsAppearOn($adsAppearOn)
3219 {
3220 $this->adsAppearOn = $adsAppearOn;
3221 }
3222
3223 public function getAdsAppearOn()
3224 {
3225 return $this->adsAppearOn;
3226 }
3227
3228 public function setDescription($description)
3229 {
3230 $this->description = $description;
3231 }
3232
3233 public function getDescription()
3234 {
3235 return $this->description;
3236 }
3237
3238 public function setLocation($location)
3239 {
3240 $this->location = $location;
3241 }
3242
3243 public function getLocation()
3244 {
3245 return $this->location;
3246 }
3247
3248 public function setSiteLanguage($siteLanguage)
3249 {
3250 $this->siteLanguage = $siteLanguage;
3251 }
3252
3253 public function getSiteLanguage()
3254 {
3255 return $this->siteLanguage;
3256 }
3257 }
3258
3259 class Analytify_Google_Service_AdSense_CustomChannels extends Analytify_Google_Collection
3260 {
3261 public $etag;
3262 protected $itemsType = 'Analytify_Google_Service_AdSense_CustomChannel';
3263 protected $itemsDataType = 'array';
3264 public $kind;
3265 public $nextPageToken;
3266
3267 public function setEtag($etag)
3268 {
3269 $this->etag = $etag;
3270 }
3271
3272 public function getEtag()
3273 {
3274 return $this->etag;
3275 }
3276
3277 public function setItems($items)
3278 {
3279 $this->items = $items;
3280 }
3281
3282 public function getItems()
3283 {
3284 return $this->items;
3285 }
3286
3287 public function setKind($kind)
3288 {
3289 $this->kind = $kind;
3290 }
3291
3292 public function getKind()
3293 {
3294 return $this->kind;
3295 }
3296
3297 public function setNextPageToken($nextPageToken)
3298 {
3299 $this->nextPageToken = $nextPageToken;
3300 }
3301
3302 public function getNextPageToken()
3303 {
3304 return $this->nextPageToken;
3305 }
3306 }
3307
3308 class Analytify_Google_Service_AdSense_Metadata extends Analytify_Google_Collection
3309 {
3310 protected $itemsType = 'Analytify_Google_Service_AdSense_ReportingMetadataEntry';
3311 protected $itemsDataType = 'array';
3312 public $kind;
3313
3314 public function setItems($items)
3315 {
3316 $this->items = $items;
3317 }
3318
3319 public function getItems()
3320 {
3321 return $this->items;
3322 }
3323
3324 public function setKind($kind)
3325 {
3326 $this->kind = $kind;
3327 }
3328
3329 public function getKind()
3330 {
3331 return $this->kind;
3332 }
3333 }
3334
3335 class Analytify_Google_Service_AdSense_Payment extends Analytify_Google_Model
3336 {
3337 public $id;
3338 public $kind;
3339 public $paymentAmount;
3340 public $paymentAmountCurrencyCode;
3341 public $paymentDate;
3342
3343 public function setId($id)
3344 {
3345 $this->id = $id;
3346 }
3347
3348 public function getId()
3349 {
3350 return $this->id;
3351 }
3352
3353 public function setKind($kind)
3354 {
3355 $this->kind = $kind;
3356 }
3357
3358 public function getKind()
3359 {
3360 return $this->kind;
3361 }
3362
3363 public function setPaymentAmount($paymentAmount)
3364 {
3365 $this->paymentAmount = $paymentAmount;
3366 }
3367
3368 public function getPaymentAmount()
3369 {
3370 return $this->paymentAmount;
3371 }
3372
3373 public function setPaymentAmountCurrencyCode($paymentAmountCurrencyCode)
3374 {
3375 $this->paymentAmountCurrencyCode = $paymentAmountCurrencyCode;
3376 }
3377
3378 public function getPaymentAmountCurrencyCode()
3379 {
3380 return $this->paymentAmountCurrencyCode;
3381 }
3382
3383 public function setPaymentDate($paymentDate)
3384 {
3385 $this->paymentDate = $paymentDate;
3386 }
3387
3388 public function getPaymentDate()
3389 {
3390 return $this->paymentDate;
3391 }
3392 }
3393
3394 class Analytify_Google_Service_AdSense_Payments extends Analytify_Google_Collection
3395 {
3396 protected $itemsType = 'Analytify_Google_Service_AdSense_Payment';
3397 protected $itemsDataType = 'array';
3398 public $kind;
3399
3400 public function setItems($items)
3401 {
3402 $this->items = $items;
3403 }
3404
3405 public function getItems()
3406 {
3407 return $this->items;
3408 }
3409
3410 public function setKind($kind)
3411 {
3412 $this->kind = $kind;
3413 }
3414
3415 public function getKind()
3416 {
3417 return $this->kind;
3418 }
3419 }
3420
3421 class Analytify_Google_Service_AdSense_ReportingMetadataEntry extends Analytify_Google_Collection
3422 {
3423 public $compatibleDimensions;
3424 public $compatibleMetrics;
3425 public $id;
3426 public $kind;
3427 public $requiredDimensions;
3428 public $requiredMetrics;
3429 public $supportedProducts;
3430
3431 public function setCompatibleDimensions($compatibleDimensions)
3432 {
3433 $this->compatibleDimensions = $compatibleDimensions;
3434 }
3435
3436 public function getCompatibleDimensions()
3437 {
3438 return $this->compatibleDimensions;
3439 }
3440
3441 public function setCompatibleMetrics($compatibleMetrics)
3442 {
3443 $this->compatibleMetrics = $compatibleMetrics;
3444 }
3445
3446 public function getCompatibleMetrics()
3447 {
3448 return $this->compatibleMetrics;
3449 }
3450
3451 public function setId($id)
3452 {
3453 $this->id = $id;
3454 }
3455
3456 public function getId()
3457 {
3458 return $this->id;
3459 }
3460
3461 public function setKind($kind)
3462 {
3463 $this->kind = $kind;
3464 }
3465
3466 public function getKind()
3467 {
3468 return $this->kind;
3469 }
3470
3471 public function setRequiredDimensions($requiredDimensions)
3472 {
3473 $this->requiredDimensions = $requiredDimensions;
3474 }
3475
3476 public function getRequiredDimensions()
3477 {
3478 return $this->requiredDimensions;
3479 }
3480
3481 public function setRequiredMetrics($requiredMetrics)
3482 {
3483 $this->requiredMetrics = $requiredMetrics;
3484 }
3485
3486 public function getRequiredMetrics()
3487 {
3488 return $this->requiredMetrics;
3489 }
3490
3491 public function setSupportedProducts($supportedProducts)
3492 {
3493 $this->supportedProducts = $supportedProducts;
3494 }
3495
3496 public function getSupportedProducts()
3497 {
3498 return $this->supportedProducts;
3499 }
3500 }
3501
3502 class Analytify_Google_Service_AdSense_SavedAdStyle extends Analytify_Google_Model
3503 {
3504 protected $adStyleType = 'Analytify_Google_Service_AdSense_AdStyle';
3505 protected $adStyleDataType = '';
3506 public $id;
3507 public $kind;
3508 public $name;
3509
3510 public function setAdStyle(Analytify_Google_Service_AdSense_AdStyle $adStyle)
3511 {
3512 $this->adStyle = $adStyle;
3513 }
3514
3515 public function getAdStyle()
3516 {
3517 return $this->adStyle;
3518 }
3519
3520 public function setId($id)
3521 {
3522 $this->id = $id;
3523 }
3524
3525 public function getId()
3526 {
3527 return $this->id;
3528 }
3529
3530 public function setKind($kind)
3531 {
3532 $this->kind = $kind;
3533 }
3534
3535 public function getKind()
3536 {
3537 return $this->kind;
3538 }
3539
3540 public function setName($name)
3541 {
3542 $this->name = $name;
3543 }
3544
3545 public function getName()
3546 {
3547 return $this->name;
3548 }
3549 }
3550
3551 class Analytify_Google_Service_AdSense_SavedAdStyles extends Analytify_Google_Collection
3552 {
3553 public $etag;
3554 protected $itemsType = 'Analytify_Google_Service_AdSense_SavedAdStyle';
3555 protected $itemsDataType = 'array';
3556 public $kind;
3557 public $nextPageToken;
3558
3559 public function setEtag($etag)
3560 {
3561 $this->etag = $etag;
3562 }
3563
3564 public function getEtag()
3565 {
3566 return $this->etag;
3567 }
3568
3569 public function setItems($items)
3570 {
3571 $this->items = $items;
3572 }
3573
3574 public function getItems()
3575 {
3576 return $this->items;
3577 }
3578
3579 public function setKind($kind)
3580 {
3581 $this->kind = $kind;
3582 }
3583
3584 public function getKind()
3585 {
3586 return $this->kind;
3587 }
3588
3589 public function setNextPageToken($nextPageToken)
3590 {
3591 $this->nextPageToken = $nextPageToken;
3592 }
3593
3594 public function getNextPageToken()
3595 {
3596 return $this->nextPageToken;
3597 }
3598 }
3599
3600 class Analytify_Google_Service_AdSense_SavedReport extends Analytify_Google_Model
3601 {
3602 public $id;
3603 public $kind;
3604 public $name;
3605
3606 public function setId($id)
3607 {
3608 $this->id = $id;
3609 }
3610
3611 public function getId()
3612 {
3613 return $this->id;
3614 }
3615
3616 public function setKind($kind)
3617 {
3618 $this->kind = $kind;
3619 }
3620
3621 public function getKind()
3622 {
3623 return $this->kind;
3624 }
3625
3626 public function setName($name)
3627 {
3628 $this->name = $name;
3629 }
3630
3631 public function getName()
3632 {
3633 return $this->name;
3634 }
3635 }
3636
3637 class Analytify_Google_Service_AdSense_SavedReports extends Analytify_Google_Collection
3638 {
3639 public $etag;
3640 protected $itemsType = 'Analytify_Google_Service_AdSense_SavedReport';
3641 protected $itemsDataType = 'array';
3642 public $kind;
3643 public $nextPageToken;
3644
3645 public function setEtag($etag)
3646 {
3647 $this->etag = $etag;
3648 }
3649
3650 public function getEtag()
3651 {
3652 return $this->etag;
3653 }
3654
3655 public function setItems($items)
3656 {
3657 $this->items = $items;
3658 }
3659
3660 public function getItems()
3661 {
3662 return $this->items;
3663 }
3664
3665 public function setKind($kind)
3666 {
3667 $this->kind = $kind;
3668 }
3669
3670 public function getKind()
3671 {
3672 return $this->kind;
3673 }
3674
3675 public function setNextPageToken($nextPageToken)
3676 {
3677 $this->nextPageToken = $nextPageToken;
3678 }
3679
3680 public function getNextPageToken()
3681 {
3682 return $this->nextPageToken;
3683 }
3684 }
3685
3686 class Analytify_Google_Service_AdSense_UrlChannel extends Analytify_Google_Model
3687 {
3688 public $id;
3689 public $kind;
3690 public $urlPattern;
3691
3692 public function setId($id)
3693 {
3694 $this->id = $id;
3695 }
3696
3697 public function getId()
3698 {
3699 return $this->id;
3700 }
3701
3702 public function setKind($kind)
3703 {
3704 $this->kind = $kind;
3705 }
3706
3707 public function getKind()
3708 {
3709 return $this->kind;
3710 }
3711
3712 public function setUrlPattern($urlPattern)
3713 {
3714 $this->urlPattern = $urlPattern;
3715 }
3716
3717 public function getUrlPattern()
3718 {
3719 return $this->urlPattern;
3720 }
3721 }
3722
3723 class Analytify_Google_Service_AdSense_UrlChannels extends Analytify_Google_Collection
3724 {
3725 public $etag;
3726 protected $itemsType = 'Analytify_Google_Service_AdSense_UrlChannel';
3727 protected $itemsDataType = 'array';
3728 public $kind;
3729 public $nextPageToken;
3730
3731 public function setEtag($etag)
3732 {
3733 $this->etag = $etag;
3734 }
3735
3736 public function getEtag()
3737 {
3738 return $this->etag;
3739 }
3740
3741 public function setItems($items)
3742 {
3743 $this->items = $items;
3744 }
3745
3746 public function getItems()
3747 {
3748 return $this->items;
3749 }
3750
3751 public function setKind($kind)
3752 {
3753 $this->kind = $kind;
3754 }
3755
3756 public function getKind()
3757 {
3758 return $this->kind;
3759 }
3760
3761 public function setNextPageToken($nextPageToken)
3762 {
3763 $this->nextPageToken = $nextPageToken;
3764 }
3765
3766 public function getNextPageToken()
3767 {
3768 return $this->nextPageToken;
3769 }
3770 }
3771