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