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