Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

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