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