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