[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/google/Google/Service/ -> AdSenseHost.php (source)

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


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1