1<?php 2/* 3 * Copyright 2014 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 18namespace Google\Service; 19 20use Google\Client; 21 22/** 23 * Service definition for Analytics (v3). 24 * 25 * <p> 26 * Views and manages your Google Analytics data.</p> 27 * 28 * <p> 29 * For more information about this service, see the API 30 * <a href="https://developers.google.com/analytics/" target="_blank">Documentation</a> 31 * </p> 32 * 33 * @author Google, Inc. 34 */ 35class Analytics extends \Google\Service 36{ 37 /** View and manage your Google Analytics data. */ 38 const ANALYTICS = 39 "https://www.googleapis.com/auth/analytics"; 40 /** Edit Google Analytics management entities. */ 41 const ANALYTICS_EDIT = 42 "https://www.googleapis.com/auth/analytics.edit"; 43 /** Manage Google Analytics Account users by email address. */ 44 const ANALYTICS_MANAGE_USERS = 45 "https://www.googleapis.com/auth/analytics.manage.users"; 46 /** View Google Analytics user permissions. */ 47 const ANALYTICS_MANAGE_USERS_READONLY = 48 "https://www.googleapis.com/auth/analytics.manage.users.readonly"; 49 /** Create a new Google Analytics account along with its default property and view. */ 50 const ANALYTICS_PROVISION = 51 "https://www.googleapis.com/auth/analytics.provision"; 52 /** View your Google Analytics data. */ 53 const ANALYTICS_READONLY = 54 "https://www.googleapis.com/auth/analytics.readonly"; 55 /** Manage Google Analytics user deletion requests. */ 56 const ANALYTICS_USER_DELETION = 57 "https://www.googleapis.com/auth/analytics.user.deletion"; 58 59 public $data_ga; 60 public $data_mcf; 61 public $data_realtime; 62 public $management_accountSummaries; 63 public $management_accountUserLinks; 64 public $management_accounts; 65 public $management_clientId; 66 public $management_customDataSources; 67 public $management_customDimensions; 68 public $management_customMetrics; 69 public $management_experiments; 70 public $management_filters; 71 public $management_goals; 72 public $management_profileFilterLinks; 73 public $management_profileUserLinks; 74 public $management_profiles; 75 public $management_remarketingAudience; 76 public $management_segments; 77 public $management_unsampledReports; 78 public $management_uploads; 79 public $management_webPropertyAdWordsLinks; 80 public $management_webproperties; 81 public $management_webpropertyUserLinks; 82 public $metadata_columns; 83 public $provisioning; 84 public $userDeletion_userDeletionRequest; 85 86 /** 87 * Constructs the internal representation of the Analytics service. 88 * 89 * @param Client|array $clientOrConfig The client used to deliver requests, or a 90 * config array to pass to a new Client instance. 91 * @param string $rootUrl The root URL used for requests to the service. 92 */ 93 public function __construct($clientOrConfig = [], $rootUrl = null) 94 { 95 parent::__construct($clientOrConfig); 96 $this->rootUrl = $rootUrl ?: 'https://analytics.googleapis.com/'; 97 $this->servicePath = 'analytics/v3/'; 98 $this->batchPath = 'batch/analytics/v3'; 99 $this->version = 'v3'; 100 $this->serviceName = 'analytics'; 101 102 $this->data_ga = new Analytics\Resource\DataGa( 103 $this, 104 $this->serviceName, 105 'ga', 106 [ 107 'methods' => [ 108 'get' => [ 109 'path' => 'data/ga', 110 'httpMethod' => 'GET', 111 'parameters' => [ 112 'ids' => [ 113 'location' => 'query', 114 'type' => 'string', 115 'required' => true, 116 ], 117 'start-date' => [ 118 'location' => 'query', 119 'type' => 'string', 120 'required' => true, 121 ], 122 'end-date' => [ 123 'location' => 'query', 124 'type' => 'string', 125 'required' => true, 126 ], 127 'metrics' => [ 128 'location' => 'query', 129 'type' => 'string', 130 'required' => true, 131 ], 132 'dimensions' => [ 133 'location' => 'query', 134 'type' => 'string', 135 ], 136 'filters' => [ 137 'location' => 'query', 138 'type' => 'string', 139 ], 140 'include-empty-rows' => [ 141 'location' => 'query', 142 'type' => 'boolean', 143 ], 144 'max-results' => [ 145 'location' => 'query', 146 'type' => 'integer', 147 ], 148 'output' => [ 149 'location' => 'query', 150 'type' => 'string', 151 ], 152 'samplingLevel' => [ 153 'location' => 'query', 154 'type' => 'string', 155 ], 156 'segment' => [ 157 'location' => 'query', 158 'type' => 'string', 159 ], 160 'sort' => [ 161 'location' => 'query', 162 'type' => 'string', 163 ], 164 'start-index' => [ 165 'location' => 'query', 166 'type' => 'integer', 167 ], 168 ], 169 ], 170 ] 171 ] 172 ); 173 $this->data_mcf = new Analytics\Resource\DataMcf( 174 $this, 175 $this->serviceName, 176 'mcf', 177 [ 178 'methods' => [ 179 'get' => [ 180 'path' => 'data/mcf', 181 'httpMethod' => 'GET', 182 'parameters' => [ 183 'ids' => [ 184 'location' => 'query', 185 'type' => 'string', 186 'required' => true, 187 ], 188 'start-date' => [ 189 'location' => 'query', 190 'type' => 'string', 191 'required' => true, 192 ], 193 'end-date' => [ 194 'location' => 'query', 195 'type' => 'string', 196 'required' => true, 197 ], 198 'metrics' => [ 199 'location' => 'query', 200 'type' => 'string', 201 'required' => true, 202 ], 203 'dimensions' => [ 204 'location' => 'query', 205 'type' => 'string', 206 ], 207 'filters' => [ 208 'location' => 'query', 209 'type' => 'string', 210 ], 211 'max-results' => [ 212 'location' => 'query', 213 'type' => 'integer', 214 ], 215 'samplingLevel' => [ 216 'location' => 'query', 217 'type' => 'string', 218 ], 219 'sort' => [ 220 'location' => 'query', 221 'type' => 'string', 222 ], 223 'start-index' => [ 224 'location' => 'query', 225 'type' => 'integer', 226 ], 227 ], 228 ], 229 ] 230 ] 231 ); 232 $this->data_realtime = new Analytics\Resource\DataRealtime( 233 $this, 234 $this->serviceName, 235 'realtime', 236 [ 237 'methods' => [ 238 'get' => [ 239 'path' => 'data/realtime', 240 'httpMethod' => 'GET', 241 'parameters' => [ 242 'ids' => [ 243 'location' => 'query', 244 'type' => 'string', 245 'required' => true, 246 ], 247 'metrics' => [ 248 'location' => 'query', 249 'type' => 'string', 250 'required' => true, 251 ], 252 'dimensions' => [ 253 'location' => 'query', 254 'type' => 'string', 255 ], 256 'filters' => [ 257 'location' => 'query', 258 'type' => 'string', 259 ], 260 'max-results' => [ 261 'location' => 'query', 262 'type' => 'integer', 263 ], 264 'sort' => [ 265 'location' => 'query', 266 'type' => 'string', 267 ], 268 ], 269 ], 270 ] 271 ] 272 ); 273 $this->management_accountSummaries = new Analytics\Resource\ManagementAccountSummaries( 274 $this, 275 $this->serviceName, 276 'accountSummaries', 277 [ 278 'methods' => [ 279 'list' => [ 280 'path' => 'management/accountSummaries', 281 'httpMethod' => 'GET', 282 'parameters' => [ 283 'max-results' => [ 284 'location' => 'query', 285 'type' => 'integer', 286 ], 287 'start-index' => [ 288 'location' => 'query', 289 'type' => 'integer', 290 ], 291 ], 292 ], 293 ] 294 ] 295 ); 296 $this->management_accountUserLinks = new Analytics\Resource\ManagementAccountUserLinks( 297 $this, 298 $this->serviceName, 299 'accountUserLinks', 300 [ 301 'methods' => [ 302 'delete' => [ 303 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', 304 'httpMethod' => 'DELETE', 305 'parameters' => [ 306 'accountId' => [ 307 'location' => 'path', 308 'type' => 'string', 309 'required' => true, 310 ], 311 'linkId' => [ 312 'location' => 'path', 313 'type' => 'string', 314 'required' => true, 315 ], 316 ], 317 ],'insert' => [ 318 'path' => 'management/accounts/{accountId}/entityUserLinks', 319 'httpMethod' => 'POST', 320 'parameters' => [ 321 'accountId' => [ 322 'location' => 'path', 323 'type' => 'string', 324 'required' => true, 325 ], 326 ], 327 ],'list' => [ 328 'path' => 'management/accounts/{accountId}/entityUserLinks', 329 'httpMethod' => 'GET', 330 'parameters' => [ 331 'accountId' => [ 332 'location' => 'path', 333 'type' => 'string', 334 'required' => true, 335 ], 336 'max-results' => [ 337 'location' => 'query', 338 'type' => 'integer', 339 ], 340 'start-index' => [ 341 'location' => 'query', 342 'type' => 'integer', 343 ], 344 ], 345 ],'update' => [ 346 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', 347 'httpMethod' => 'PUT', 348 'parameters' => [ 349 'accountId' => [ 350 'location' => 'path', 351 'type' => 'string', 352 'required' => true, 353 ], 354 'linkId' => [ 355 'location' => 'path', 356 'type' => 'string', 357 'required' => true, 358 ], 359 ], 360 ], 361 ] 362 ] 363 ); 364 $this->management_accounts = new Analytics\Resource\ManagementAccounts( 365 $this, 366 $this->serviceName, 367 'accounts', 368 [ 369 'methods' => [ 370 'list' => [ 371 'path' => 'management/accounts', 372 'httpMethod' => 'GET', 373 'parameters' => [ 374 'max-results' => [ 375 'location' => 'query', 376 'type' => 'integer', 377 ], 378 'start-index' => [ 379 'location' => 'query', 380 'type' => 'integer', 381 ], 382 ], 383 ], 384 ] 385 ] 386 ); 387 $this->management_clientId = new Analytics\Resource\ManagementClientId( 388 $this, 389 $this->serviceName, 390 'clientId', 391 [ 392 'methods' => [ 393 'hashClientId' => [ 394 'path' => 'management/clientId:hashClientId', 395 'httpMethod' => 'POST', 396 'parameters' => [], 397 ], 398 ] 399 ] 400 ); 401 $this->management_customDataSources = new Analytics\Resource\ManagementCustomDataSources( 402 $this, 403 $this->serviceName, 404 'customDataSources', 405 [ 406 'methods' => [ 407 'list' => [ 408 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', 409 'httpMethod' => 'GET', 410 'parameters' => [ 411 'accountId' => [ 412 'location' => 'path', 413 'type' => 'string', 414 'required' => true, 415 ], 416 'webPropertyId' => [ 417 'location' => 'path', 418 'type' => 'string', 419 'required' => true, 420 ], 421 'max-results' => [ 422 'location' => 'query', 423 'type' => 'integer', 424 ], 425 'start-index' => [ 426 'location' => 'query', 427 'type' => 'integer', 428 ], 429 ], 430 ], 431 ] 432 ] 433 ); 434 $this->management_customDimensions = new Analytics\Resource\ManagementCustomDimensions( 435 $this, 436 $this->serviceName, 437 'customDimensions', 438 [ 439 'methods' => [ 440 'get' => [ 441 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 442 'httpMethod' => 'GET', 443 'parameters' => [ 444 'accountId' => [ 445 'location' => 'path', 446 'type' => 'string', 447 'required' => true, 448 ], 449 'webPropertyId' => [ 450 'location' => 'path', 451 'type' => 'string', 452 'required' => true, 453 ], 454 'customDimensionId' => [ 455 'location' => 'path', 456 'type' => 'string', 457 'required' => true, 458 ], 459 ], 460 ],'insert' => [ 461 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', 462 'httpMethod' => 'POST', 463 'parameters' => [ 464 'accountId' => [ 465 'location' => 'path', 466 'type' => 'string', 467 'required' => true, 468 ], 469 'webPropertyId' => [ 470 'location' => 'path', 471 'type' => 'string', 472 'required' => true, 473 ], 474 ], 475 ],'list' => [ 476 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', 477 'httpMethod' => 'GET', 478 'parameters' => [ 479 'accountId' => [ 480 'location' => 'path', 481 'type' => 'string', 482 'required' => true, 483 ], 484 'webPropertyId' => [ 485 'location' => 'path', 486 'type' => 'string', 487 'required' => true, 488 ], 489 'max-results' => [ 490 'location' => 'query', 491 'type' => 'integer', 492 ], 493 'start-index' => [ 494 'location' => 'query', 495 'type' => 'integer', 496 ], 497 ], 498 ],'patch' => [ 499 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 500 'httpMethod' => 'PATCH', 501 'parameters' => [ 502 'accountId' => [ 503 'location' => 'path', 504 'type' => 'string', 505 'required' => true, 506 ], 507 'webPropertyId' => [ 508 'location' => 'path', 509 'type' => 'string', 510 'required' => true, 511 ], 512 'customDimensionId' => [ 513 'location' => 'path', 514 'type' => 'string', 515 'required' => true, 516 ], 517 'ignoreCustomDataSourceLinks' => [ 518 'location' => 'query', 519 'type' => 'boolean', 520 ], 521 ], 522 ],'update' => [ 523 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 524 'httpMethod' => 'PUT', 525 'parameters' => [ 526 'accountId' => [ 527 'location' => 'path', 528 'type' => 'string', 529 'required' => true, 530 ], 531 'webPropertyId' => [ 532 'location' => 'path', 533 'type' => 'string', 534 'required' => true, 535 ], 536 'customDimensionId' => [ 537 'location' => 'path', 538 'type' => 'string', 539 'required' => true, 540 ], 541 'ignoreCustomDataSourceLinks' => [ 542 'location' => 'query', 543 'type' => 'boolean', 544 ], 545 ], 546 ], 547 ] 548 ] 549 ); 550 $this->management_customMetrics = new Analytics\Resource\ManagementCustomMetrics( 551 $this, 552 $this->serviceName, 553 'customMetrics', 554 [ 555 'methods' => [ 556 'get' => [ 557 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', 558 'httpMethod' => 'GET', 559 'parameters' => [ 560 'accountId' => [ 561 'location' => 'path', 562 'type' => 'string', 563 'required' => true, 564 ], 565 'webPropertyId' => [ 566 'location' => 'path', 567 'type' => 'string', 568 'required' => true, 569 ], 570 'customMetricId' => [ 571 'location' => 'path', 572 'type' => 'string', 573 'required' => true, 574 ], 575 ], 576 ],'insert' => [ 577 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', 578 'httpMethod' => 'POST', 579 'parameters' => [ 580 'accountId' => [ 581 'location' => 'path', 582 'type' => 'string', 583 'required' => true, 584 ], 585 'webPropertyId' => [ 586 'location' => 'path', 587 'type' => 'string', 588 'required' => true, 589 ], 590 ], 591 ],'list' => [ 592 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', 593 'httpMethod' => 'GET', 594 'parameters' => [ 595 'accountId' => [ 596 'location' => 'path', 597 'type' => 'string', 598 'required' => true, 599 ], 600 'webPropertyId' => [ 601 'location' => 'path', 602 'type' => 'string', 603 'required' => true, 604 ], 605 'max-results' => [ 606 'location' => 'query', 607 'type' => 'integer', 608 ], 609 'start-index' => [ 610 'location' => 'query', 611 'type' => 'integer', 612 ], 613 ], 614 ],'patch' => [ 615 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', 616 'httpMethod' => 'PATCH', 617 'parameters' => [ 618 'accountId' => [ 619 'location' => 'path', 620 'type' => 'string', 621 'required' => true, 622 ], 623 'webPropertyId' => [ 624 'location' => 'path', 625 'type' => 'string', 626 'required' => true, 627 ], 628 'customMetricId' => [ 629 'location' => 'path', 630 'type' => 'string', 631 'required' => true, 632 ], 633 'ignoreCustomDataSourceLinks' => [ 634 'location' => 'query', 635 'type' => 'boolean', 636 ], 637 ], 638 ],'update' => [ 639 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', 640 'httpMethod' => 'PUT', 641 'parameters' => [ 642 'accountId' => [ 643 'location' => 'path', 644 'type' => 'string', 645 'required' => true, 646 ], 647 'webPropertyId' => [ 648 'location' => 'path', 649 'type' => 'string', 650 'required' => true, 651 ], 652 'customMetricId' => [ 653 'location' => 'path', 654 'type' => 'string', 655 'required' => true, 656 ], 657 'ignoreCustomDataSourceLinks' => [ 658 'location' => 'query', 659 'type' => 'boolean', 660 ], 661 ], 662 ], 663 ] 664 ] 665 ); 666 $this->management_experiments = new Analytics\Resource\ManagementExperiments( 667 $this, 668 $this->serviceName, 669 'experiments', 670 [ 671 'methods' => [ 672 'delete' => [ 673 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 674 'httpMethod' => 'DELETE', 675 'parameters' => [ 676 'accountId' => [ 677 'location' => 'path', 678 'type' => 'string', 679 'required' => true, 680 ], 681 'webPropertyId' => [ 682 'location' => 'path', 683 'type' => 'string', 684 'required' => true, 685 ], 686 'profileId' => [ 687 'location' => 'path', 688 'type' => 'string', 689 'required' => true, 690 ], 691 'experimentId' => [ 692 'location' => 'path', 693 'type' => 'string', 694 'required' => true, 695 ], 696 ], 697 ],'get' => [ 698 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 699 'httpMethod' => 'GET', 700 'parameters' => [ 701 'accountId' => [ 702 'location' => 'path', 703 'type' => 'string', 704 'required' => true, 705 ], 706 'webPropertyId' => [ 707 'location' => 'path', 708 'type' => 'string', 709 'required' => true, 710 ], 711 'profileId' => [ 712 'location' => 'path', 713 'type' => 'string', 714 'required' => true, 715 ], 716 'experimentId' => [ 717 'location' => 'path', 718 'type' => 'string', 719 'required' => true, 720 ], 721 ], 722 ],'insert' => [ 723 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', 724 'httpMethod' => 'POST', 725 'parameters' => [ 726 'accountId' => [ 727 'location' => 'path', 728 'type' => 'string', 729 'required' => true, 730 ], 731 'webPropertyId' => [ 732 'location' => 'path', 733 'type' => 'string', 734 'required' => true, 735 ], 736 'profileId' => [ 737 'location' => 'path', 738 'type' => 'string', 739 'required' => true, 740 ], 741 ], 742 ],'list' => [ 743 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', 744 'httpMethod' => 'GET', 745 'parameters' => [ 746 'accountId' => [ 747 'location' => 'path', 748 'type' => 'string', 749 'required' => true, 750 ], 751 'webPropertyId' => [ 752 'location' => 'path', 753 'type' => 'string', 754 'required' => true, 755 ], 756 'profileId' => [ 757 'location' => 'path', 758 'type' => 'string', 759 'required' => true, 760 ], 761 'max-results' => [ 762 'location' => 'query', 763 'type' => 'integer', 764 ], 765 'start-index' => [ 766 'location' => 'query', 767 'type' => 'integer', 768 ], 769 ], 770 ],'patch' => [ 771 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 772 'httpMethod' => 'PATCH', 773 'parameters' => [ 774 'accountId' => [ 775 'location' => 'path', 776 'type' => 'string', 777 'required' => true, 778 ], 779 'webPropertyId' => [ 780 'location' => 'path', 781 'type' => 'string', 782 'required' => true, 783 ], 784 'profileId' => [ 785 'location' => 'path', 786 'type' => 'string', 787 'required' => true, 788 ], 789 'experimentId' => [ 790 'location' => 'path', 791 'type' => 'string', 792 'required' => true, 793 ], 794 ], 795 ],'update' => [ 796 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 797 'httpMethod' => 'PUT', 798 'parameters' => [ 799 'accountId' => [ 800 'location' => 'path', 801 'type' => 'string', 802 'required' => true, 803 ], 804 'webPropertyId' => [ 805 'location' => 'path', 806 'type' => 'string', 807 'required' => true, 808 ], 809 'profileId' => [ 810 'location' => 'path', 811 'type' => 'string', 812 'required' => true, 813 ], 814 'experimentId' => [ 815 'location' => 'path', 816 'type' => 'string', 817 'required' => true, 818 ], 819 ], 820 ], 821 ] 822 ] 823 ); 824 $this->management_filters = new Analytics\Resource\ManagementFilters( 825 $this, 826 $this->serviceName, 827 'filters', 828 [ 829 'methods' => [ 830 'delete' => [ 831 'path' => 'management/accounts/{accountId}/filters/{filterId}', 832 'httpMethod' => 'DELETE', 833 'parameters' => [ 834 'accountId' => [ 835 'location' => 'path', 836 'type' => 'string', 837 'required' => true, 838 ], 839 'filterId' => [ 840 'location' => 'path', 841 'type' => 'string', 842 'required' => true, 843 ], 844 ], 845 ],'get' => [ 846 'path' => 'management/accounts/{accountId}/filters/{filterId}', 847 'httpMethod' => 'GET', 848 'parameters' => [ 849 'accountId' => [ 850 'location' => 'path', 851 'type' => 'string', 852 'required' => true, 853 ], 854 'filterId' => [ 855 'location' => 'path', 856 'type' => 'string', 857 'required' => true, 858 ], 859 ], 860 ],'insert' => [ 861 'path' => 'management/accounts/{accountId}/filters', 862 'httpMethod' => 'POST', 863 'parameters' => [ 864 'accountId' => [ 865 'location' => 'path', 866 'type' => 'string', 867 'required' => true, 868 ], 869 ], 870 ],'list' => [ 871 'path' => 'management/accounts/{accountId}/filters', 872 'httpMethod' => 'GET', 873 'parameters' => [ 874 'accountId' => [ 875 'location' => 'path', 876 'type' => 'string', 877 'required' => true, 878 ], 879 'max-results' => [ 880 'location' => 'query', 881 'type' => 'integer', 882 ], 883 'start-index' => [ 884 'location' => 'query', 885 'type' => 'integer', 886 ], 887 ], 888 ],'patch' => [ 889 'path' => 'management/accounts/{accountId}/filters/{filterId}', 890 'httpMethod' => 'PATCH', 891 'parameters' => [ 892 'accountId' => [ 893 'location' => 'path', 894 'type' => 'string', 895 'required' => true, 896 ], 897 'filterId' => [ 898 'location' => 'path', 899 'type' => 'string', 900 'required' => true, 901 ], 902 ], 903 ],'update' => [ 904 'path' => 'management/accounts/{accountId}/filters/{filterId}', 905 'httpMethod' => 'PUT', 906 'parameters' => [ 907 'accountId' => [ 908 'location' => 'path', 909 'type' => 'string', 910 'required' => true, 911 ], 912 'filterId' => [ 913 'location' => 'path', 914 'type' => 'string', 915 'required' => true, 916 ], 917 ], 918 ], 919 ] 920 ] 921 ); 922 $this->management_goals = new Analytics\Resource\ManagementGoals( 923 $this, 924 $this->serviceName, 925 'goals', 926 [ 927 'methods' => [ 928 'get' => [ 929 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 930 'httpMethod' => 'GET', 931 'parameters' => [ 932 'accountId' => [ 933 'location' => 'path', 934 'type' => 'string', 935 'required' => true, 936 ], 937 'webPropertyId' => [ 938 'location' => 'path', 939 'type' => 'string', 940 'required' => true, 941 ], 942 'profileId' => [ 943 'location' => 'path', 944 'type' => 'string', 945 'required' => true, 946 ], 947 'goalId' => [ 948 'location' => 'path', 949 'type' => 'string', 950 'required' => true, 951 ], 952 ], 953 ],'insert' => [ 954 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', 955 'httpMethod' => 'POST', 956 'parameters' => [ 957 'accountId' => [ 958 'location' => 'path', 959 'type' => 'string', 960 'required' => true, 961 ], 962 'webPropertyId' => [ 963 'location' => 'path', 964 'type' => 'string', 965 'required' => true, 966 ], 967 'profileId' => [ 968 'location' => 'path', 969 'type' => 'string', 970 'required' => true, 971 ], 972 ], 973 ],'list' => [ 974 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', 975 'httpMethod' => 'GET', 976 'parameters' => [ 977 'accountId' => [ 978 'location' => 'path', 979 'type' => 'string', 980 'required' => true, 981 ], 982 'webPropertyId' => [ 983 'location' => 'path', 984 'type' => 'string', 985 'required' => true, 986 ], 987 'profileId' => [ 988 'location' => 'path', 989 'type' => 'string', 990 'required' => true, 991 ], 992 'max-results' => [ 993 'location' => 'query', 994 'type' => 'integer', 995 ], 996 'start-index' => [ 997 'location' => 'query', 998 'type' => 'integer', 999 ], 1000 ], 1001 ],'patch' => [ 1002 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 1003 'httpMethod' => 'PATCH', 1004 'parameters' => [ 1005 'accountId' => [ 1006 'location' => 'path', 1007 'type' => 'string', 1008 'required' => true, 1009 ], 1010 'webPropertyId' => [ 1011 'location' => 'path', 1012 'type' => 'string', 1013 'required' => true, 1014 ], 1015 'profileId' => [ 1016 'location' => 'path', 1017 'type' => 'string', 1018 'required' => true, 1019 ], 1020 'goalId' => [ 1021 'location' => 'path', 1022 'type' => 'string', 1023 'required' => true, 1024 ], 1025 ], 1026 ],'update' => [ 1027 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 1028 'httpMethod' => 'PUT', 1029 'parameters' => [ 1030 'accountId' => [ 1031 'location' => 'path', 1032 'type' => 'string', 1033 'required' => true, 1034 ], 1035 'webPropertyId' => [ 1036 'location' => 'path', 1037 'type' => 'string', 1038 'required' => true, 1039 ], 1040 'profileId' => [ 1041 'location' => 'path', 1042 'type' => 'string', 1043 'required' => true, 1044 ], 1045 'goalId' => [ 1046 'location' => 'path', 1047 'type' => 'string', 1048 'required' => true, 1049 ], 1050 ], 1051 ], 1052 ] 1053 ] 1054 ); 1055 $this->management_profileFilterLinks = new Analytics\Resource\ManagementProfileFilterLinks( 1056 $this, 1057 $this->serviceName, 1058 'profileFilterLinks', 1059 [ 1060 'methods' => [ 1061 'delete' => [ 1062 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 1063 'httpMethod' => 'DELETE', 1064 'parameters' => [ 1065 'accountId' => [ 1066 'location' => 'path', 1067 'type' => 'string', 1068 'required' => true, 1069 ], 1070 'webPropertyId' => [ 1071 'location' => 'path', 1072 'type' => 'string', 1073 'required' => true, 1074 ], 1075 'profileId' => [ 1076 'location' => 'path', 1077 'type' => 'string', 1078 'required' => true, 1079 ], 1080 'linkId' => [ 1081 'location' => 'path', 1082 'type' => 'string', 1083 'required' => true, 1084 ], 1085 ], 1086 ],'get' => [ 1087 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 1088 'httpMethod' => 'GET', 1089 'parameters' => [ 1090 'accountId' => [ 1091 'location' => 'path', 1092 'type' => 'string', 1093 'required' => true, 1094 ], 1095 'webPropertyId' => [ 1096 'location' => 'path', 1097 'type' => 'string', 1098 'required' => true, 1099 ], 1100 'profileId' => [ 1101 'location' => 'path', 1102 'type' => 'string', 1103 'required' => true, 1104 ], 1105 'linkId' => [ 1106 'location' => 'path', 1107 'type' => 'string', 1108 'required' => true, 1109 ], 1110 ], 1111 ],'insert' => [ 1112 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', 1113 'httpMethod' => 'POST', 1114 'parameters' => [ 1115 'accountId' => [ 1116 'location' => 'path', 1117 'type' => 'string', 1118 'required' => true, 1119 ], 1120 'webPropertyId' => [ 1121 'location' => 'path', 1122 'type' => 'string', 1123 'required' => true, 1124 ], 1125 'profileId' => [ 1126 'location' => 'path', 1127 'type' => 'string', 1128 'required' => true, 1129 ], 1130 ], 1131 ],'list' => [ 1132 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', 1133 'httpMethod' => 'GET', 1134 'parameters' => [ 1135 'accountId' => [ 1136 'location' => 'path', 1137 'type' => 'string', 1138 'required' => true, 1139 ], 1140 'webPropertyId' => [ 1141 'location' => 'path', 1142 'type' => 'string', 1143 'required' => true, 1144 ], 1145 'profileId' => [ 1146 'location' => 'path', 1147 'type' => 'string', 1148 'required' => true, 1149 ], 1150 'max-results' => [ 1151 'location' => 'query', 1152 'type' => 'integer', 1153 ], 1154 'start-index' => [ 1155 'location' => 'query', 1156 'type' => 'integer', 1157 ], 1158 ], 1159 ],'patch' => [ 1160 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 1161 'httpMethod' => 'PATCH', 1162 'parameters' => [ 1163 'accountId' => [ 1164 'location' => 'path', 1165 'type' => 'string', 1166 'required' => true, 1167 ], 1168 'webPropertyId' => [ 1169 'location' => 'path', 1170 'type' => 'string', 1171 'required' => true, 1172 ], 1173 'profileId' => [ 1174 'location' => 'path', 1175 'type' => 'string', 1176 'required' => true, 1177 ], 1178 'linkId' => [ 1179 'location' => 'path', 1180 'type' => 'string', 1181 'required' => true, 1182 ], 1183 ], 1184 ],'update' => [ 1185 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 1186 'httpMethod' => 'PUT', 1187 'parameters' => [ 1188 'accountId' => [ 1189 'location' => 'path', 1190 'type' => 'string', 1191 'required' => true, 1192 ], 1193 'webPropertyId' => [ 1194 'location' => 'path', 1195 'type' => 'string', 1196 'required' => true, 1197 ], 1198 'profileId' => [ 1199 'location' => 'path', 1200 'type' => 'string', 1201 'required' => true, 1202 ], 1203 'linkId' => [ 1204 'location' => 'path', 1205 'type' => 'string', 1206 'required' => true, 1207 ], 1208 ], 1209 ], 1210 ] 1211 ] 1212 ); 1213 $this->management_profileUserLinks = new Analytics\Resource\ManagementProfileUserLinks( 1214 $this, 1215 $this->serviceName, 1216 'profileUserLinks', 1217 [ 1218 'methods' => [ 1219 'delete' => [ 1220 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', 1221 'httpMethod' => 'DELETE', 1222 'parameters' => [ 1223 'accountId' => [ 1224 'location' => 'path', 1225 'type' => 'string', 1226 'required' => true, 1227 ], 1228 'webPropertyId' => [ 1229 'location' => 'path', 1230 'type' => 'string', 1231 'required' => true, 1232 ], 1233 'profileId' => [ 1234 'location' => 'path', 1235 'type' => 'string', 1236 'required' => true, 1237 ], 1238 'linkId' => [ 1239 'location' => 'path', 1240 'type' => 'string', 1241 'required' => true, 1242 ], 1243 ], 1244 ],'insert' => [ 1245 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', 1246 'httpMethod' => 'POST', 1247 'parameters' => [ 1248 'accountId' => [ 1249 'location' => 'path', 1250 'type' => 'string', 1251 'required' => true, 1252 ], 1253 'webPropertyId' => [ 1254 'location' => 'path', 1255 'type' => 'string', 1256 'required' => true, 1257 ], 1258 'profileId' => [ 1259 'location' => 'path', 1260 'type' => 'string', 1261 'required' => true, 1262 ], 1263 ], 1264 ],'list' => [ 1265 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', 1266 'httpMethod' => 'GET', 1267 'parameters' => [ 1268 'accountId' => [ 1269 'location' => 'path', 1270 'type' => 'string', 1271 'required' => true, 1272 ], 1273 'webPropertyId' => [ 1274 'location' => 'path', 1275 'type' => 'string', 1276 'required' => true, 1277 ], 1278 'profileId' => [ 1279 'location' => 'path', 1280 'type' => 'string', 1281 'required' => true, 1282 ], 1283 'max-results' => [ 1284 'location' => 'query', 1285 'type' => 'integer', 1286 ], 1287 'start-index' => [ 1288 'location' => 'query', 1289 'type' => 'integer', 1290 ], 1291 ], 1292 ],'update' => [ 1293 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', 1294 'httpMethod' => 'PUT', 1295 'parameters' => [ 1296 'accountId' => [ 1297 'location' => 'path', 1298 'type' => 'string', 1299 'required' => true, 1300 ], 1301 'webPropertyId' => [ 1302 'location' => 'path', 1303 'type' => 'string', 1304 'required' => true, 1305 ], 1306 'profileId' => [ 1307 'location' => 'path', 1308 'type' => 'string', 1309 'required' => true, 1310 ], 1311 'linkId' => [ 1312 'location' => 'path', 1313 'type' => 'string', 1314 'required' => true, 1315 ], 1316 ], 1317 ], 1318 ] 1319 ] 1320 ); 1321 $this->management_profiles = new Analytics\Resource\ManagementProfiles( 1322 $this, 1323 $this->serviceName, 1324 'profiles', 1325 [ 1326 'methods' => [ 1327 'delete' => [ 1328 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 1329 'httpMethod' => 'DELETE', 1330 'parameters' => [ 1331 'accountId' => [ 1332 'location' => 'path', 1333 'type' => 'string', 1334 'required' => true, 1335 ], 1336 'webPropertyId' => [ 1337 'location' => 'path', 1338 'type' => 'string', 1339 'required' => true, 1340 ], 1341 'profileId' => [ 1342 'location' => 'path', 1343 'type' => 'string', 1344 'required' => true, 1345 ], 1346 ], 1347 ],'get' => [ 1348 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 1349 'httpMethod' => 'GET', 1350 'parameters' => [ 1351 'accountId' => [ 1352 'location' => 'path', 1353 'type' => 'string', 1354 'required' => true, 1355 ], 1356 'webPropertyId' => [ 1357 'location' => 'path', 1358 'type' => 'string', 1359 'required' => true, 1360 ], 1361 'profileId' => [ 1362 'location' => 'path', 1363 'type' => 'string', 1364 'required' => true, 1365 ], 1366 ], 1367 ],'insert' => [ 1368 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', 1369 'httpMethod' => 'POST', 1370 'parameters' => [ 1371 'accountId' => [ 1372 'location' => 'path', 1373 'type' => 'string', 1374 'required' => true, 1375 ], 1376 'webPropertyId' => [ 1377 'location' => 'path', 1378 'type' => 'string', 1379 'required' => true, 1380 ], 1381 ], 1382 ],'list' => [ 1383 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', 1384 'httpMethod' => 'GET', 1385 'parameters' => [ 1386 'accountId' => [ 1387 'location' => 'path', 1388 'type' => 'string', 1389 'required' => true, 1390 ], 1391 'webPropertyId' => [ 1392 'location' => 'path', 1393 'type' => 'string', 1394 'required' => true, 1395 ], 1396 'max-results' => [ 1397 'location' => 'query', 1398 'type' => 'integer', 1399 ], 1400 'start-index' => [ 1401 'location' => 'query', 1402 'type' => 'integer', 1403 ], 1404 ], 1405 ],'patch' => [ 1406 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 1407 'httpMethod' => 'PATCH', 1408 'parameters' => [ 1409 'accountId' => [ 1410 'location' => 'path', 1411 'type' => 'string', 1412 'required' => true, 1413 ], 1414 'webPropertyId' => [ 1415 'location' => 'path', 1416 'type' => 'string', 1417 'required' => true, 1418 ], 1419 'profileId' => [ 1420 'location' => 'path', 1421 'type' => 'string', 1422 'required' => true, 1423 ], 1424 ], 1425 ],'update' => [ 1426 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 1427 'httpMethod' => 'PUT', 1428 'parameters' => [ 1429 'accountId' => [ 1430 'location' => 'path', 1431 'type' => 'string', 1432 'required' => true, 1433 ], 1434 'webPropertyId' => [ 1435 'location' => 'path', 1436 'type' => 'string', 1437 'required' => true, 1438 ], 1439 'profileId' => [ 1440 'location' => 'path', 1441 'type' => 'string', 1442 'required' => true, 1443 ], 1444 ], 1445 ], 1446 ] 1447 ] 1448 ); 1449 $this->management_remarketingAudience = new Analytics\Resource\ManagementRemarketingAudience( 1450 $this, 1451 $this->serviceName, 1452 'remarketingAudience', 1453 [ 1454 'methods' => [ 1455 'delete' => [ 1456 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', 1457 'httpMethod' => 'DELETE', 1458 'parameters' => [ 1459 'accountId' => [ 1460 'location' => 'path', 1461 'type' => 'string', 1462 'required' => true, 1463 ], 1464 'webPropertyId' => [ 1465 'location' => 'path', 1466 'type' => 'string', 1467 'required' => true, 1468 ], 1469 'remarketingAudienceId' => [ 1470 'location' => 'path', 1471 'type' => 'string', 1472 'required' => true, 1473 ], 1474 ], 1475 ],'get' => [ 1476 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', 1477 'httpMethod' => 'GET', 1478 'parameters' => [ 1479 'accountId' => [ 1480 'location' => 'path', 1481 'type' => 'string', 1482 'required' => true, 1483 ], 1484 'webPropertyId' => [ 1485 'location' => 'path', 1486 'type' => 'string', 1487 'required' => true, 1488 ], 1489 'remarketingAudienceId' => [ 1490 'location' => 'path', 1491 'type' => 'string', 1492 'required' => true, 1493 ], 1494 ], 1495 ],'insert' => [ 1496 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', 1497 'httpMethod' => 'POST', 1498 'parameters' => [ 1499 'accountId' => [ 1500 'location' => 'path', 1501 'type' => 'string', 1502 'required' => true, 1503 ], 1504 'webPropertyId' => [ 1505 'location' => 'path', 1506 'type' => 'string', 1507 'required' => true, 1508 ], 1509 ], 1510 ],'list' => [ 1511 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', 1512 'httpMethod' => 'GET', 1513 'parameters' => [ 1514 'accountId' => [ 1515 'location' => 'path', 1516 'type' => 'string', 1517 'required' => true, 1518 ], 1519 'webPropertyId' => [ 1520 'location' => 'path', 1521 'type' => 'string', 1522 'required' => true, 1523 ], 1524 'max-results' => [ 1525 'location' => 'query', 1526 'type' => 'integer', 1527 ], 1528 'start-index' => [ 1529 'location' => 'query', 1530 'type' => 'integer', 1531 ], 1532 'type' => [ 1533 'location' => 'query', 1534 'type' => 'string', 1535 ], 1536 ], 1537 ],'patch' => [ 1538 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', 1539 'httpMethod' => 'PATCH', 1540 'parameters' => [ 1541 'accountId' => [ 1542 'location' => 'path', 1543 'type' => 'string', 1544 'required' => true, 1545 ], 1546 'webPropertyId' => [ 1547 'location' => 'path', 1548 'type' => 'string', 1549 'required' => true, 1550 ], 1551 'remarketingAudienceId' => [ 1552 'location' => 'path', 1553 'type' => 'string', 1554 'required' => true, 1555 ], 1556 ], 1557 ],'update' => [ 1558 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', 1559 'httpMethod' => 'PUT', 1560 'parameters' => [ 1561 'accountId' => [ 1562 'location' => 'path', 1563 'type' => 'string', 1564 'required' => true, 1565 ], 1566 'webPropertyId' => [ 1567 'location' => 'path', 1568 'type' => 'string', 1569 'required' => true, 1570 ], 1571 'remarketingAudienceId' => [ 1572 'location' => 'path', 1573 'type' => 'string', 1574 'required' => true, 1575 ], 1576 ], 1577 ], 1578 ] 1579 ] 1580 ); 1581 $this->management_segments = new Analytics\Resource\ManagementSegments( 1582 $this, 1583 $this->serviceName, 1584 'segments', 1585 [ 1586 'methods' => [ 1587 'list' => [ 1588 'path' => 'management/segments', 1589 'httpMethod' => 'GET', 1590 'parameters' => [ 1591 'max-results' => [ 1592 'location' => 'query', 1593 'type' => 'integer', 1594 ], 1595 'start-index' => [ 1596 'location' => 'query', 1597 'type' => 'integer', 1598 ], 1599 ], 1600 ], 1601 ] 1602 ] 1603 ); 1604 $this->management_unsampledReports = new Analytics\Resource\ManagementUnsampledReports( 1605 $this, 1606 $this->serviceName, 1607 'unsampledReports', 1608 [ 1609 'methods' => [ 1610 'delete' => [ 1611 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', 1612 'httpMethod' => 'DELETE', 1613 'parameters' => [ 1614 'accountId' => [ 1615 'location' => 'path', 1616 'type' => 'string', 1617 'required' => true, 1618 ], 1619 'webPropertyId' => [ 1620 'location' => 'path', 1621 'type' => 'string', 1622 'required' => true, 1623 ], 1624 'profileId' => [ 1625 'location' => 'path', 1626 'type' => 'string', 1627 'required' => true, 1628 ], 1629 'unsampledReportId' => [ 1630 'location' => 'path', 1631 'type' => 'string', 1632 'required' => true, 1633 ], 1634 ], 1635 ],'get' => [ 1636 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', 1637 'httpMethod' => 'GET', 1638 'parameters' => [ 1639 'accountId' => [ 1640 'location' => 'path', 1641 'type' => 'string', 1642 'required' => true, 1643 ], 1644 'webPropertyId' => [ 1645 'location' => 'path', 1646 'type' => 'string', 1647 'required' => true, 1648 ], 1649 'profileId' => [ 1650 'location' => 'path', 1651 'type' => 'string', 1652 'required' => true, 1653 ], 1654 'unsampledReportId' => [ 1655 'location' => 'path', 1656 'type' => 'string', 1657 'required' => true, 1658 ], 1659 ], 1660 ],'insert' => [ 1661 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', 1662 'httpMethod' => 'POST', 1663 'parameters' => [ 1664 'accountId' => [ 1665 'location' => 'path', 1666 'type' => 'string', 1667 'required' => true, 1668 ], 1669 'webPropertyId' => [ 1670 'location' => 'path', 1671 'type' => 'string', 1672 'required' => true, 1673 ], 1674 'profileId' => [ 1675 'location' => 'path', 1676 'type' => 'string', 1677 'required' => true, 1678 ], 1679 ], 1680 ],'list' => [ 1681 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', 1682 'httpMethod' => 'GET', 1683 'parameters' => [ 1684 'accountId' => [ 1685 'location' => 'path', 1686 'type' => 'string', 1687 'required' => true, 1688 ], 1689 'webPropertyId' => [ 1690 'location' => 'path', 1691 'type' => 'string', 1692 'required' => true, 1693 ], 1694 'profileId' => [ 1695 'location' => 'path', 1696 'type' => 'string', 1697 'required' => true, 1698 ], 1699 'max-results' => [ 1700 'location' => 'query', 1701 'type' => 'integer', 1702 ], 1703 'start-index' => [ 1704 'location' => 'query', 1705 'type' => 'integer', 1706 ], 1707 ], 1708 ], 1709 ] 1710 ] 1711 ); 1712 $this->management_uploads = new Analytics\Resource\ManagementUploads( 1713 $this, 1714 $this->serviceName, 1715 'uploads', 1716 [ 1717 'methods' => [ 1718 'deleteUploadData' => [ 1719 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', 1720 'httpMethod' => 'POST', 1721 'parameters' => [ 1722 'accountId' => [ 1723 'location' => 'path', 1724 'type' => 'string', 1725 'required' => true, 1726 ], 1727 'webPropertyId' => [ 1728 'location' => 'path', 1729 'type' => 'string', 1730 'required' => true, 1731 ], 1732 'customDataSourceId' => [ 1733 'location' => 'path', 1734 'type' => 'string', 1735 'required' => true, 1736 ], 1737 ], 1738 ],'get' => [ 1739 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', 1740 'httpMethod' => 'GET', 1741 'parameters' => [ 1742 'accountId' => [ 1743 'location' => 'path', 1744 'type' => 'string', 1745 'required' => true, 1746 ], 1747 'webPropertyId' => [ 1748 'location' => 'path', 1749 'type' => 'string', 1750 'required' => true, 1751 ], 1752 'customDataSourceId' => [ 1753 'location' => 'path', 1754 'type' => 'string', 1755 'required' => true, 1756 ], 1757 'uploadId' => [ 1758 'location' => 'path', 1759 'type' => 'string', 1760 'required' => true, 1761 ], 1762 ], 1763 ],'list' => [ 1764 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 1765 'httpMethod' => 'GET', 1766 'parameters' => [ 1767 'accountId' => [ 1768 'location' => 'path', 1769 'type' => 'string', 1770 'required' => true, 1771 ], 1772 'webPropertyId' => [ 1773 'location' => 'path', 1774 'type' => 'string', 1775 'required' => true, 1776 ], 1777 'customDataSourceId' => [ 1778 'location' => 'path', 1779 'type' => 'string', 1780 'required' => true, 1781 ], 1782 'max-results' => [ 1783 'location' => 'query', 1784 'type' => 'integer', 1785 ], 1786 'start-index' => [ 1787 'location' => 'query', 1788 'type' => 'integer', 1789 ], 1790 ], 1791 ],'uploadData' => [ 1792 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 1793 'httpMethod' => 'POST', 1794 'parameters' => [ 1795 'accountId' => [ 1796 'location' => 'path', 1797 'type' => 'string', 1798 'required' => true, 1799 ], 1800 'webPropertyId' => [ 1801 'location' => 'path', 1802 'type' => 'string', 1803 'required' => true, 1804 ], 1805 'customDataSourceId' => [ 1806 'location' => 'path', 1807 'type' => 'string', 1808 'required' => true, 1809 ], 1810 ], 1811 ], 1812 ] 1813 ] 1814 ); 1815 $this->management_webPropertyAdWordsLinks = new Analytics\Resource\ManagementWebPropertyAdWordsLinks( 1816 $this, 1817 $this->serviceName, 1818 'webPropertyAdWordsLinks', 1819 [ 1820 'methods' => [ 1821 'delete' => [ 1822 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 1823 'httpMethod' => 'DELETE', 1824 'parameters' => [ 1825 'accountId' => [ 1826 'location' => 'path', 1827 'type' => 'string', 1828 'required' => true, 1829 ], 1830 'webPropertyId' => [ 1831 'location' => 'path', 1832 'type' => 'string', 1833 'required' => true, 1834 ], 1835 'webPropertyAdWordsLinkId' => [ 1836 'location' => 'path', 1837 'type' => 'string', 1838 'required' => true, 1839 ], 1840 ], 1841 ],'get' => [ 1842 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 1843 'httpMethod' => 'GET', 1844 'parameters' => [ 1845 'accountId' => [ 1846 'location' => 'path', 1847 'type' => 'string', 1848 'required' => true, 1849 ], 1850 'webPropertyId' => [ 1851 'location' => 'path', 1852 'type' => 'string', 1853 'required' => true, 1854 ], 1855 'webPropertyAdWordsLinkId' => [ 1856 'location' => 'path', 1857 'type' => 'string', 1858 'required' => true, 1859 ], 1860 ], 1861 ],'insert' => [ 1862 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', 1863 'httpMethod' => 'POST', 1864 'parameters' => [ 1865 'accountId' => [ 1866 'location' => 'path', 1867 'type' => 'string', 1868 'required' => true, 1869 ], 1870 'webPropertyId' => [ 1871 'location' => 'path', 1872 'type' => 'string', 1873 'required' => true, 1874 ], 1875 ], 1876 ],'list' => [ 1877 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', 1878 'httpMethod' => 'GET', 1879 'parameters' => [ 1880 'accountId' => [ 1881 'location' => 'path', 1882 'type' => 'string', 1883 'required' => true, 1884 ], 1885 'webPropertyId' => [ 1886 'location' => 'path', 1887 'type' => 'string', 1888 'required' => true, 1889 ], 1890 'max-results' => [ 1891 'location' => 'query', 1892 'type' => 'integer', 1893 ], 1894 'start-index' => [ 1895 'location' => 'query', 1896 'type' => 'integer', 1897 ], 1898 ], 1899 ],'patch' => [ 1900 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 1901 'httpMethod' => 'PATCH', 1902 'parameters' => [ 1903 'accountId' => [ 1904 'location' => 'path', 1905 'type' => 'string', 1906 'required' => true, 1907 ], 1908 'webPropertyId' => [ 1909 'location' => 'path', 1910 'type' => 'string', 1911 'required' => true, 1912 ], 1913 'webPropertyAdWordsLinkId' => [ 1914 'location' => 'path', 1915 'type' => 'string', 1916 'required' => true, 1917 ], 1918 ], 1919 ],'update' => [ 1920 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 1921 'httpMethod' => 'PUT', 1922 'parameters' => [ 1923 'accountId' => [ 1924 'location' => 'path', 1925 'type' => 'string', 1926 'required' => true, 1927 ], 1928 'webPropertyId' => [ 1929 'location' => 'path', 1930 'type' => 'string', 1931 'required' => true, 1932 ], 1933 'webPropertyAdWordsLinkId' => [ 1934 'location' => 'path', 1935 'type' => 'string', 1936 'required' => true, 1937 ], 1938 ], 1939 ], 1940 ] 1941 ] 1942 ); 1943 $this->management_webproperties = new Analytics\Resource\ManagementWebproperties( 1944 $this, 1945 $this->serviceName, 1946 'webproperties', 1947 [ 1948 'methods' => [ 1949 'get' => [ 1950 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 1951 'httpMethod' => 'GET', 1952 'parameters' => [ 1953 'accountId' => [ 1954 'location' => 'path', 1955 'type' => 'string', 1956 'required' => true, 1957 ], 1958 'webPropertyId' => [ 1959 'location' => 'path', 1960 'type' => 'string', 1961 'required' => true, 1962 ], 1963 ], 1964 ],'insert' => [ 1965 'path' => 'management/accounts/{accountId}/webproperties', 1966 'httpMethod' => 'POST', 1967 'parameters' => [ 1968 'accountId' => [ 1969 'location' => 'path', 1970 'type' => 'string', 1971 'required' => true, 1972 ], 1973 ], 1974 ],'list' => [ 1975 'path' => 'management/accounts/{accountId}/webproperties', 1976 'httpMethod' => 'GET', 1977 'parameters' => [ 1978 'accountId' => [ 1979 'location' => 'path', 1980 'type' => 'string', 1981 'required' => true, 1982 ], 1983 'max-results' => [ 1984 'location' => 'query', 1985 'type' => 'integer', 1986 ], 1987 'start-index' => [ 1988 'location' => 'query', 1989 'type' => 'integer', 1990 ], 1991 ], 1992 ],'patch' => [ 1993 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 1994 'httpMethod' => 'PATCH', 1995 'parameters' => [ 1996 'accountId' => [ 1997 'location' => 'path', 1998 'type' => 'string', 1999 'required' => true, 2000 ], 2001 'webPropertyId' => [ 2002 'location' => 'path', 2003 'type' => 'string', 2004 'required' => true, 2005 ], 2006 ], 2007 ],'update' => [ 2008 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 2009 'httpMethod' => 'PUT', 2010 'parameters' => [ 2011 'accountId' => [ 2012 'location' => 'path', 2013 'type' => 'string', 2014 'required' => true, 2015 ], 2016 'webPropertyId' => [ 2017 'location' => 'path', 2018 'type' => 'string', 2019 'required' => true, 2020 ], 2021 ], 2022 ], 2023 ] 2024 ] 2025 ); 2026 $this->management_webpropertyUserLinks = new Analytics\Resource\ManagementWebpropertyUserLinks( 2027 $this, 2028 $this->serviceName, 2029 'webpropertyUserLinks', 2030 [ 2031 'methods' => [ 2032 'delete' => [ 2033 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', 2034 'httpMethod' => 'DELETE', 2035 'parameters' => [ 2036 'accountId' => [ 2037 'location' => 'path', 2038 'type' => 'string', 2039 'required' => true, 2040 ], 2041 'webPropertyId' => [ 2042 'location' => 'path', 2043 'type' => 'string', 2044 'required' => true, 2045 ], 2046 'linkId' => [ 2047 'location' => 'path', 2048 'type' => 'string', 2049 'required' => true, 2050 ], 2051 ], 2052 ],'insert' => [ 2053 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', 2054 'httpMethod' => 'POST', 2055 'parameters' => [ 2056 'accountId' => [ 2057 'location' => 'path', 2058 'type' => 'string', 2059 'required' => true, 2060 ], 2061 'webPropertyId' => [ 2062 'location' => 'path', 2063 'type' => 'string', 2064 'required' => true, 2065 ], 2066 ], 2067 ],'list' => [ 2068 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', 2069 'httpMethod' => 'GET', 2070 'parameters' => [ 2071 'accountId' => [ 2072 'location' => 'path', 2073 'type' => 'string', 2074 'required' => true, 2075 ], 2076 'webPropertyId' => [ 2077 'location' => 'path', 2078 'type' => 'string', 2079 'required' => true, 2080 ], 2081 'max-results' => [ 2082 'location' => 'query', 2083 'type' => 'integer', 2084 ], 2085 'start-index' => [ 2086 'location' => 'query', 2087 'type' => 'integer', 2088 ], 2089 ], 2090 ],'update' => [ 2091 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', 2092 'httpMethod' => 'PUT', 2093 'parameters' => [ 2094 'accountId' => [ 2095 'location' => 'path', 2096 'type' => 'string', 2097 'required' => true, 2098 ], 2099 'webPropertyId' => [ 2100 'location' => 'path', 2101 'type' => 'string', 2102 'required' => true, 2103 ], 2104 'linkId' => [ 2105 'location' => 'path', 2106 'type' => 'string', 2107 'required' => true, 2108 ], 2109 ], 2110 ], 2111 ] 2112 ] 2113 ); 2114 $this->metadata_columns = new Analytics\Resource\MetadataColumns( 2115 $this, 2116 $this->serviceName, 2117 'columns', 2118 [ 2119 'methods' => [ 2120 'list' => [ 2121 'path' => 'metadata/{reportType}/columns', 2122 'httpMethod' => 'GET', 2123 'parameters' => [ 2124 'reportType' => [ 2125 'location' => 'path', 2126 'type' => 'string', 2127 'required' => true, 2128 ], 2129 ], 2130 ], 2131 ] 2132 ] 2133 ); 2134 $this->provisioning = new Analytics\Resource\Provisioning( 2135 $this, 2136 $this->serviceName, 2137 'provisioning', 2138 [ 2139 'methods' => [ 2140 'createAccountTicket' => [ 2141 'path' => 'provisioning/createAccountTicket', 2142 'httpMethod' => 'POST', 2143 'parameters' => [], 2144 ],'createAccountTree' => [ 2145 'path' => 'provisioning/createAccountTree', 2146 'httpMethod' => 'POST', 2147 'parameters' => [], 2148 ], 2149 ] 2150 ] 2151 ); 2152 $this->userDeletion_userDeletionRequest = new Analytics\Resource\UserDeletionUserDeletionRequest( 2153 $this, 2154 $this->serviceName, 2155 'userDeletionRequest', 2156 [ 2157 'methods' => [ 2158 'upsert' => [ 2159 'path' => 'userDeletion/userDeletionRequests:upsert', 2160 'httpMethod' => 'POST', 2161 'parameters' => [], 2162 ], 2163 ] 2164 ] 2165 ); 2166 } 2167} 2168 2169// Adding a class alias for backwards compatibility with the previous class name. 2170class_alias(Analytics::class, 'Google_Service_Analytics'); 2171