PageRenderTime 80ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 2ms

/lib/google/src/Google/Service/Analytics.php

https://bitbucket.org/moodle/moodle
PHP | 9899 lines | 8305 code | 380 blank | 1214 comment | 0 complexity | 39e93b1f8fb24516f5e4b6228eb8db33 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0

Large files files are truncated, but you can click here to view the full file

  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. * Service definition for Analytics (v3).
  19. *
  20. * <p>
  21. * View and manage your Google Analytics data</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/analytics/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Analytics extends Google_Service
  31. {
  32. /** View and manage your Google Analytics data. */
  33. const ANALYTICS =
  34. "https://www.googleapis.com/auth/analytics";
  35. /** Edit Google Analytics management entities. */
  36. const ANALYTICS_EDIT =
  37. "https://www.googleapis.com/auth/analytics.edit";
  38. /** Manage Google Analytics Account users by email address. */
  39. const ANALYTICS_MANAGE_USERS =
  40. "https://www.googleapis.com/auth/analytics.manage.users";
  41. /** View Google Analytics user permissions. */
  42. const ANALYTICS_MANAGE_USERS_READONLY =
  43. "https://www.googleapis.com/auth/analytics.manage.users.readonly";
  44. /** Create a new Google Analytics account along with its default property and view. */
  45. const ANALYTICS_PROVISION =
  46. "https://www.googleapis.com/auth/analytics.provision";
  47. /** View your Google Analytics data. */
  48. const ANALYTICS_READONLY =
  49. "https://www.googleapis.com/auth/analytics.readonly";
  50. public $data_ga;
  51. public $data_mcf;
  52. public $data_realtime;
  53. public $management_accountSummaries;
  54. public $management_accountUserLinks;
  55. public $management_accounts;
  56. public $management_customDataSources;
  57. public $management_customDimensions;
  58. public $management_customMetrics;
  59. public $management_experiments;
  60. public $management_filters;
  61. public $management_goals;
  62. public $management_profileFilterLinks;
  63. public $management_profileUserLinks;
  64. public $management_profiles;
  65. public $management_segments;
  66. public $management_unsampledReports;
  67. public $management_uploads;
  68. public $management_webPropertyAdWordsLinks;
  69. public $management_webproperties;
  70. public $management_webpropertyUserLinks;
  71. public $metadata_columns;
  72. public $provisioning;
  73. /**
  74. * Constructs the internal representation of the Analytics service.
  75. *
  76. * @param Google_Client $client
  77. */
  78. public function __construct(Google_Client $client)
  79. {
  80. parent::__construct($client);
  81. $this->rootUrl = 'https://www.googleapis.com/';
  82. $this->servicePath = 'analytics/v3/';
  83. $this->version = 'v3';
  84. $this->serviceName = 'analytics';
  85. $this->data_ga = new Google_Service_Analytics_DataGa_Resource(
  86. $this,
  87. $this->serviceName,
  88. 'ga',
  89. array(
  90. 'methods' => array(
  91. 'get' => array(
  92. 'path' => 'data/ga',
  93. 'httpMethod' => 'GET',
  94. 'parameters' => array(
  95. 'ids' => array(
  96. 'location' => 'query',
  97. 'type' => 'string',
  98. 'required' => true,
  99. ),
  100. 'start-date' => array(
  101. 'location' => 'query',
  102. 'type' => 'string',
  103. 'required' => true,
  104. ),
  105. 'end-date' => array(
  106. 'location' => 'query',
  107. 'type' => 'string',
  108. 'required' => true,
  109. ),
  110. 'metrics' => array(
  111. 'location' => 'query',
  112. 'type' => 'string',
  113. 'required' => true,
  114. ),
  115. 'max-results' => array(
  116. 'location' => 'query',
  117. 'type' => 'integer',
  118. ),
  119. 'sort' => array(
  120. 'location' => 'query',
  121. 'type' => 'string',
  122. ),
  123. 'dimensions' => array(
  124. 'location' => 'query',
  125. 'type' => 'string',
  126. ),
  127. 'start-index' => array(
  128. 'location' => 'query',
  129. 'type' => 'integer',
  130. ),
  131. 'segment' => array(
  132. 'location' => 'query',
  133. 'type' => 'string',
  134. ),
  135. 'samplingLevel' => array(
  136. 'location' => 'query',
  137. 'type' => 'string',
  138. ),
  139. 'filters' => array(
  140. 'location' => 'query',
  141. 'type' => 'string',
  142. ),
  143. 'output' => array(
  144. 'location' => 'query',
  145. 'type' => 'string',
  146. ),
  147. ),
  148. ),
  149. )
  150. )
  151. );
  152. $this->data_mcf = new Google_Service_Analytics_DataMcf_Resource(
  153. $this,
  154. $this->serviceName,
  155. 'mcf',
  156. array(
  157. 'methods' => array(
  158. 'get' => array(
  159. 'path' => 'data/mcf',
  160. 'httpMethod' => 'GET',
  161. 'parameters' => array(
  162. 'ids' => array(
  163. 'location' => 'query',
  164. 'type' => 'string',
  165. 'required' => true,
  166. ),
  167. 'start-date' => array(
  168. 'location' => 'query',
  169. 'type' => 'string',
  170. 'required' => true,
  171. ),
  172. 'end-date' => array(
  173. 'location' => 'query',
  174. 'type' => 'string',
  175. 'required' => true,
  176. ),
  177. 'metrics' => array(
  178. 'location' => 'query',
  179. 'type' => 'string',
  180. 'required' => true,
  181. ),
  182. 'max-results' => array(
  183. 'location' => 'query',
  184. 'type' => 'integer',
  185. ),
  186. 'sort' => array(
  187. 'location' => 'query',
  188. 'type' => 'string',
  189. ),
  190. 'dimensions' => array(
  191. 'location' => 'query',
  192. 'type' => 'string',
  193. ),
  194. 'start-index' => array(
  195. 'location' => 'query',
  196. 'type' => 'integer',
  197. ),
  198. 'samplingLevel' => array(
  199. 'location' => 'query',
  200. 'type' => 'string',
  201. ),
  202. 'filters' => array(
  203. 'location' => 'query',
  204. 'type' => 'string',
  205. ),
  206. ),
  207. ),
  208. )
  209. )
  210. );
  211. $this->data_realtime = new Google_Service_Analytics_DataRealtime_Resource(
  212. $this,
  213. $this->serviceName,
  214. 'realtime',
  215. array(
  216. 'methods' => array(
  217. 'get' => array(
  218. 'path' => 'data/realtime',
  219. 'httpMethod' => 'GET',
  220. 'parameters' => array(
  221. 'ids' => array(
  222. 'location' => 'query',
  223. 'type' => 'string',
  224. 'required' => true,
  225. ),
  226. 'metrics' => array(
  227. 'location' => 'query',
  228. 'type' => 'string',
  229. 'required' => true,
  230. ),
  231. 'max-results' => array(
  232. 'location' => 'query',
  233. 'type' => 'integer',
  234. ),
  235. 'sort' => array(
  236. 'location' => 'query',
  237. 'type' => 'string',
  238. ),
  239. 'dimensions' => array(
  240. 'location' => 'query',
  241. 'type' => 'string',
  242. ),
  243. 'filters' => array(
  244. 'location' => 'query',
  245. 'type' => 'string',
  246. ),
  247. ),
  248. ),
  249. )
  250. )
  251. );
  252. $this->management_accountSummaries = new Google_Service_Analytics_ManagementAccountSummaries_Resource(
  253. $this,
  254. $this->serviceName,
  255. 'accountSummaries',
  256. array(
  257. 'methods' => array(
  258. 'list' => array(
  259. 'path' => 'management/accountSummaries',
  260. 'httpMethod' => 'GET',
  261. 'parameters' => array(
  262. 'max-results' => array(
  263. 'location' => 'query',
  264. 'type' => 'integer',
  265. ),
  266. 'start-index' => array(
  267. 'location' => 'query',
  268. 'type' => 'integer',
  269. ),
  270. ),
  271. ),
  272. )
  273. )
  274. );
  275. $this->management_accountUserLinks = new Google_Service_Analytics_ManagementAccountUserLinks_Resource(
  276. $this,
  277. $this->serviceName,
  278. 'accountUserLinks',
  279. array(
  280. 'methods' => array(
  281. 'delete' => array(
  282. 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}',
  283. 'httpMethod' => 'DELETE',
  284. 'parameters' => array(
  285. 'accountId' => array(
  286. 'location' => 'path',
  287. 'type' => 'string',
  288. 'required' => true,
  289. ),
  290. 'linkId' => array(
  291. 'location' => 'path',
  292. 'type' => 'string',
  293. 'required' => true,
  294. ),
  295. ),
  296. ),'insert' => array(
  297. 'path' => 'management/accounts/{accountId}/entityUserLinks',
  298. 'httpMethod' => 'POST',
  299. 'parameters' => array(
  300. 'accountId' => array(
  301. 'location' => 'path',
  302. 'type' => 'string',
  303. 'required' => true,
  304. ),
  305. ),
  306. ),'list' => array(
  307. 'path' => 'management/accounts/{accountId}/entityUserLinks',
  308. 'httpMethod' => 'GET',
  309. 'parameters' => array(
  310. 'accountId' => array(
  311. 'location' => 'path',
  312. 'type' => 'string',
  313. 'required' => true,
  314. ),
  315. 'max-results' => array(
  316. 'location' => 'query',
  317. 'type' => 'integer',
  318. ),
  319. 'start-index' => array(
  320. 'location' => 'query',
  321. 'type' => 'integer',
  322. ),
  323. ),
  324. ),'update' => array(
  325. 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}',
  326. 'httpMethod' => 'PUT',
  327. 'parameters' => array(
  328. 'accountId' => array(
  329. 'location' => 'path',
  330. 'type' => 'string',
  331. 'required' => true,
  332. ),
  333. 'linkId' => array(
  334. 'location' => 'path',
  335. 'type' => 'string',
  336. 'required' => true,
  337. ),
  338. ),
  339. ),
  340. )
  341. )
  342. );
  343. $this->management_accounts = new Google_Service_Analytics_ManagementAccounts_Resource(
  344. $this,
  345. $this->serviceName,
  346. 'accounts',
  347. array(
  348. 'methods' => array(
  349. 'list' => array(
  350. 'path' => 'management/accounts',
  351. 'httpMethod' => 'GET',
  352. 'parameters' => array(
  353. 'max-results' => array(
  354. 'location' => 'query',
  355. 'type' => 'integer',
  356. ),
  357. 'start-index' => array(
  358. 'location' => 'query',
  359. 'type' => 'integer',
  360. ),
  361. ),
  362. ),
  363. )
  364. )
  365. );
  366. $this->management_customDataSources = new Google_Service_Analytics_ManagementCustomDataSources_Resource(
  367. $this,
  368. $this->serviceName,
  369. 'customDataSources',
  370. array(
  371. 'methods' => array(
  372. 'list' => array(
  373. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources',
  374. 'httpMethod' => 'GET',
  375. 'parameters' => array(
  376. 'accountId' => array(
  377. 'location' => 'path',
  378. 'type' => 'string',
  379. 'required' => true,
  380. ),
  381. 'webPropertyId' => array(
  382. 'location' => 'path',
  383. 'type' => 'string',
  384. 'required' => true,
  385. ),
  386. 'max-results' => array(
  387. 'location' => 'query',
  388. 'type' => 'integer',
  389. ),
  390. 'start-index' => array(
  391. 'location' => 'query',
  392. 'type' => 'integer',
  393. ),
  394. ),
  395. ),
  396. )
  397. )
  398. );
  399. $this->management_customDimensions = new Google_Service_Analytics_ManagementCustomDimensions_Resource(
  400. $this,
  401. $this->serviceName,
  402. 'customDimensions',
  403. array(
  404. 'methods' => array(
  405. 'get' => array(
  406. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
  407. 'httpMethod' => 'GET',
  408. 'parameters' => array(
  409. 'accountId' => array(
  410. 'location' => 'path',
  411. 'type' => 'string',
  412. 'required' => true,
  413. ),
  414. 'webPropertyId' => array(
  415. 'location' => 'path',
  416. 'type' => 'string',
  417. 'required' => true,
  418. ),
  419. 'customDimensionId' => array(
  420. 'location' => 'path',
  421. 'type' => 'string',
  422. 'required' => true,
  423. ),
  424. ),
  425. ),'insert' => array(
  426. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions',
  427. 'httpMethod' => 'POST',
  428. 'parameters' => array(
  429. 'accountId' => array(
  430. 'location' => 'path',
  431. 'type' => 'string',
  432. 'required' => true,
  433. ),
  434. 'webPropertyId' => array(
  435. 'location' => 'path',
  436. 'type' => 'string',
  437. 'required' => true,
  438. ),
  439. ),
  440. ),'list' => array(
  441. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions',
  442. 'httpMethod' => 'GET',
  443. 'parameters' => array(
  444. 'accountId' => array(
  445. 'location' => 'path',
  446. 'type' => 'string',
  447. 'required' => true,
  448. ),
  449. 'webPropertyId' => array(
  450. 'location' => 'path',
  451. 'type' => 'string',
  452. 'required' => true,
  453. ),
  454. 'max-results' => array(
  455. 'location' => 'query',
  456. 'type' => 'integer',
  457. ),
  458. 'start-index' => array(
  459. 'location' => 'query',
  460. 'type' => 'integer',
  461. ),
  462. ),
  463. ),'patch' => array(
  464. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
  465. 'httpMethod' => 'PATCH',
  466. 'parameters' => array(
  467. 'accountId' => array(
  468. 'location' => 'path',
  469. 'type' => 'string',
  470. 'required' => true,
  471. ),
  472. 'webPropertyId' => array(
  473. 'location' => 'path',
  474. 'type' => 'string',
  475. 'required' => true,
  476. ),
  477. 'customDimensionId' => array(
  478. 'location' => 'path',
  479. 'type' => 'string',
  480. 'required' => true,
  481. ),
  482. 'ignoreCustomDataSourceLinks' => array(
  483. 'location' => 'query',
  484. 'type' => 'boolean',
  485. ),
  486. ),
  487. ),'update' => array(
  488. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
  489. 'httpMethod' => 'PUT',
  490. 'parameters' => array(
  491. 'accountId' => array(
  492. 'location' => 'path',
  493. 'type' => 'string',
  494. 'required' => true,
  495. ),
  496. 'webPropertyId' => array(
  497. 'location' => 'path',
  498. 'type' => 'string',
  499. 'required' => true,
  500. ),
  501. 'customDimensionId' => array(
  502. 'location' => 'path',
  503. 'type' => 'string',
  504. 'required' => true,
  505. ),
  506. 'ignoreCustomDataSourceLinks' => array(
  507. 'location' => 'query',
  508. 'type' => 'boolean',
  509. ),
  510. ),
  511. ),
  512. )
  513. )
  514. );
  515. $this->management_customMetrics = new Google_Service_Analytics_ManagementCustomMetrics_Resource(
  516. $this,
  517. $this->serviceName,
  518. 'customMetrics',
  519. array(
  520. 'methods' => array(
  521. 'get' => array(
  522. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
  523. 'httpMethod' => 'GET',
  524. 'parameters' => array(
  525. 'accountId' => array(
  526. 'location' => 'path',
  527. 'type' => 'string',
  528. 'required' => true,
  529. ),
  530. 'webPropertyId' => array(
  531. 'location' => 'path',
  532. 'type' => 'string',
  533. 'required' => true,
  534. ),
  535. 'customMetricId' => array(
  536. 'location' => 'path',
  537. 'type' => 'string',
  538. 'required' => true,
  539. ),
  540. ),
  541. ),'insert' => array(
  542. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics',
  543. 'httpMethod' => 'POST',
  544. 'parameters' => array(
  545. 'accountId' => array(
  546. 'location' => 'path',
  547. 'type' => 'string',
  548. 'required' => true,
  549. ),
  550. 'webPropertyId' => array(
  551. 'location' => 'path',
  552. 'type' => 'string',
  553. 'required' => true,
  554. ),
  555. ),
  556. ),'list' => array(
  557. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics',
  558. 'httpMethod' => 'GET',
  559. 'parameters' => array(
  560. 'accountId' => array(
  561. 'location' => 'path',
  562. 'type' => 'string',
  563. 'required' => true,
  564. ),
  565. 'webPropertyId' => array(
  566. 'location' => 'path',
  567. 'type' => 'string',
  568. 'required' => true,
  569. ),
  570. 'max-results' => array(
  571. 'location' => 'query',
  572. 'type' => 'integer',
  573. ),
  574. 'start-index' => array(
  575. 'location' => 'query',
  576. 'type' => 'integer',
  577. ),
  578. ),
  579. ),'patch' => array(
  580. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
  581. 'httpMethod' => 'PATCH',
  582. 'parameters' => array(
  583. 'accountId' => array(
  584. 'location' => 'path',
  585. 'type' => 'string',
  586. 'required' => true,
  587. ),
  588. 'webPropertyId' => array(
  589. 'location' => 'path',
  590. 'type' => 'string',
  591. 'required' => true,
  592. ),
  593. 'customMetricId' => array(
  594. 'location' => 'path',
  595. 'type' => 'string',
  596. 'required' => true,
  597. ),
  598. 'ignoreCustomDataSourceLinks' => array(
  599. 'location' => 'query',
  600. 'type' => 'boolean',
  601. ),
  602. ),
  603. ),'update' => array(
  604. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
  605. 'httpMethod' => 'PUT',
  606. 'parameters' => array(
  607. 'accountId' => array(
  608. 'location' => 'path',
  609. 'type' => 'string',
  610. 'required' => true,
  611. ),
  612. 'webPropertyId' => array(
  613. 'location' => 'path',
  614. 'type' => 'string',
  615. 'required' => true,
  616. ),
  617. 'customMetricId' => array(
  618. 'location' => 'path',
  619. 'type' => 'string',
  620. 'required' => true,
  621. ),
  622. 'ignoreCustomDataSourceLinks' => array(
  623. 'location' => 'query',
  624. 'type' => 'boolean',
  625. ),
  626. ),
  627. ),
  628. )
  629. )
  630. );
  631. $this->management_experiments = new Google_Service_Analytics_ManagementExperiments_Resource(
  632. $this,
  633. $this->serviceName,
  634. 'experiments',
  635. array(
  636. 'methods' => array(
  637. 'delete' => array(
  638. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
  639. 'httpMethod' => 'DELETE',
  640. 'parameters' => array(
  641. 'accountId' => array(
  642. 'location' => 'path',
  643. 'type' => 'string',
  644. 'required' => true,
  645. ),
  646. 'webPropertyId' => array(
  647. 'location' => 'path',
  648. 'type' => 'string',
  649. 'required' => true,
  650. ),
  651. 'profileId' => array(
  652. 'location' => 'path',
  653. 'type' => 'string',
  654. 'required' => true,
  655. ),
  656. 'experimentId' => array(
  657. 'location' => 'path',
  658. 'type' => 'string',
  659. 'required' => true,
  660. ),
  661. ),
  662. ),'get' => array(
  663. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
  664. 'httpMethod' => 'GET',
  665. 'parameters' => array(
  666. 'accountId' => array(
  667. 'location' => 'path',
  668. 'type' => 'string',
  669. 'required' => true,
  670. ),
  671. 'webPropertyId' => array(
  672. 'location' => 'path',
  673. 'type' => 'string',
  674. 'required' => true,
  675. ),
  676. 'profileId' => array(
  677. 'location' => 'path',
  678. 'type' => 'string',
  679. 'required' => true,
  680. ),
  681. 'experimentId' => array(
  682. 'location' => 'path',
  683. 'type' => 'string',
  684. 'required' => true,
  685. ),
  686. ),
  687. ),'insert' => array(
  688. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments',
  689. 'httpMethod' => 'POST',
  690. 'parameters' => array(
  691. 'accountId' => array(
  692. 'location' => 'path',
  693. 'type' => 'string',
  694. 'required' => true,
  695. ),
  696. 'webPropertyId' => array(
  697. 'location' => 'path',
  698. 'type' => 'string',
  699. 'required' => true,
  700. ),
  701. 'profileId' => array(
  702. 'location' => 'path',
  703. 'type' => 'string',
  704. 'required' => true,
  705. ),
  706. ),
  707. ),'list' => array(
  708. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments',
  709. 'httpMethod' => 'GET',
  710. 'parameters' => array(
  711. 'accountId' => array(
  712. 'location' => 'path',
  713. 'type' => 'string',
  714. 'required' => true,
  715. ),
  716. 'webPropertyId' => array(
  717. 'location' => 'path',
  718. 'type' => 'string',
  719. 'required' => true,
  720. ),
  721. 'profileId' => array(
  722. 'location' => 'path',
  723. 'type' => 'string',
  724. 'required' => true,
  725. ),
  726. 'max-results' => array(
  727. 'location' => 'query',
  728. 'type' => 'integer',
  729. ),
  730. 'start-index' => array(
  731. 'location' => 'query',
  732. 'type' => 'integer',
  733. ),
  734. ),
  735. ),'patch' => array(
  736. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
  737. 'httpMethod' => 'PATCH',
  738. 'parameters' => array(
  739. 'accountId' => array(
  740. 'location' => 'path',
  741. 'type' => 'string',
  742. 'required' => true,
  743. ),
  744. 'webPropertyId' => array(
  745. 'location' => 'path',
  746. 'type' => 'string',
  747. 'required' => true,
  748. ),
  749. 'profileId' => array(
  750. 'location' => 'path',
  751. 'type' => 'string',
  752. 'required' => true,
  753. ),
  754. 'experimentId' => array(
  755. 'location' => 'path',
  756. 'type' => 'string',
  757. 'required' => true,
  758. ),
  759. ),
  760. ),'update' => array(
  761. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
  762. 'httpMethod' => 'PUT',
  763. 'parameters' => array(
  764. 'accountId' => array(
  765. 'location' => 'path',
  766. 'type' => 'string',
  767. 'required' => true,
  768. ),
  769. 'webPropertyId' => array(
  770. 'location' => 'path',
  771. 'type' => 'string',
  772. 'required' => true,
  773. ),
  774. 'profileId' => array(
  775. 'location' => 'path',
  776. 'type' => 'string',
  777. 'required' => true,
  778. ),
  779. 'experimentId' => array(
  780. 'location' => 'path',
  781. 'type' => 'string',
  782. 'required' => true,
  783. ),
  784. ),
  785. ),
  786. )
  787. )
  788. );
  789. $this->management_filters = new Google_Service_Analytics_ManagementFilters_Resource(
  790. $this,
  791. $this->serviceName,
  792. 'filters',
  793. array(
  794. 'methods' => array(
  795. 'delete' => array(
  796. 'path' => 'management/accounts/{accountId}/filters/{filterId}',
  797. 'httpMethod' => 'DELETE',
  798. 'parameters' => array(
  799. 'accountId' => array(
  800. 'location' => 'path',
  801. 'type' => 'string',
  802. 'required' => true,
  803. ),
  804. 'filterId' => array(
  805. 'location' => 'path',
  806. 'type' => 'string',
  807. 'required' => true,
  808. ),
  809. ),
  810. ),'get' => array(
  811. 'path' => 'management/accounts/{accountId}/filters/{filterId}',
  812. 'httpMethod' => 'GET',
  813. 'parameters' => array(
  814. 'accountId' => array(
  815. 'location' => 'path',
  816. 'type' => 'string',
  817. 'required' => true,
  818. ),
  819. 'filterId' => array(
  820. 'location' => 'path',
  821. 'type' => 'string',
  822. 'required' => true,
  823. ),
  824. ),
  825. ),'insert' => array(
  826. 'path' => 'management/accounts/{accountId}/filters',
  827. 'httpMethod' => 'POST',
  828. 'parameters' => array(
  829. 'accountId' => array(
  830. 'location' => 'path',
  831. 'type' => 'string',
  832. 'required' => true,
  833. ),
  834. ),
  835. ),'list' => array(
  836. 'path' => 'management/accounts/{accountId}/filters',
  837. 'httpMethod' => 'GET',
  838. 'parameters' => array(
  839. 'accountId' => array(
  840. 'location' => 'path',
  841. 'type' => 'string',
  842. 'required' => true,
  843. ),
  844. 'max-results' => array(
  845. 'location' => 'query',
  846. 'type' => 'integer',
  847. ),
  848. 'start-index' => array(
  849. 'location' => 'query',
  850. 'type' => 'integer',
  851. ),
  852. ),
  853. ),'patch' => array(
  854. 'path' => 'management/accounts/{accountId}/filters/{filterId}',
  855. 'httpMethod' => 'PATCH',
  856. 'parameters' => array(
  857. 'accountId' => array(
  858. 'location' => 'path',
  859. 'type' => 'string',
  860. 'required' => true,
  861. ),
  862. 'filterId' => array(
  863. 'location' => 'path',
  864. 'type' => 'string',
  865. 'required' => true,
  866. ),
  867. ),
  868. ),'update' => array(
  869. 'path' => 'management/accounts/{accountId}/filters/{filterId}',
  870. 'httpMethod' => 'PUT',
  871. 'parameters' => array(
  872. 'accountId' => array(
  873. 'location' => 'path',
  874. 'type' => 'string',
  875. 'required' => true,
  876. ),
  877. 'filterId' => array(
  878. 'location' => 'path',
  879. 'type' => 'string',
  880. 'required' => true,
  881. ),
  882. ),
  883. ),
  884. )
  885. )
  886. );
  887. $this->management_goals = new Google_Service_Analytics_ManagementGoals_Resource(
  888. $this,
  889. $this->serviceName,
  890. 'goals',
  891. array(
  892. 'methods' => array(
  893. 'get' => array(
  894. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
  895. 'httpMethod' => 'GET',
  896. 'parameters' => array(
  897. 'accountId' => array(
  898. 'location' => 'path',
  899. 'type' => 'string',
  900. 'required' => true,
  901. ),
  902. 'webPropertyId' => array(
  903. 'location' => 'path',
  904. 'type' => 'string',
  905. 'required' => true,
  906. ),
  907. 'profileId' => array(
  908. 'location' => 'path',
  909. 'type' => 'string',
  910. 'required' => true,
  911. ),
  912. 'goalId' => array(
  913. 'location' => 'path',
  914. 'type' => 'string',
  915. 'required' => true,
  916. ),
  917. ),
  918. ),'insert' => array(
  919. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals',
  920. 'httpMethod' => 'POST',
  921. 'parameters' => array(
  922. 'accountId' => array(
  923. 'location' => 'path',
  924. 'type' => 'string',
  925. 'required' => true,
  926. ),
  927. 'webPropertyId' => array(
  928. 'location' => 'path',
  929. 'type' => 'string',
  930. 'required' => true,
  931. ),
  932. 'profileId' => array(
  933. 'location' => 'path',
  934. 'type' => 'string',
  935. 'required' => true,
  936. ),
  937. ),
  938. ),'list' => array(
  939. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals',
  940. 'httpMethod' => 'GET',
  941. 'parameters' => array(
  942. 'accountId' => array(
  943. 'location' => 'path',
  944. 'type' => 'string',
  945. 'required' => true,
  946. ),
  947. 'webPropertyId' => array(
  948. 'location' => 'path',
  949. 'type' => 'string',
  950. 'required' => true,
  951. ),
  952. 'profileId' => array(
  953. 'location' => 'path',
  954. 'type' => 'string',
  955. 'required' => true,
  956. ),
  957. 'max-results' => array(
  958. 'location' => 'query',
  959. 'type' => 'integer',
  960. ),
  961. 'start-index' => array(
  962. 'location' => 'query',
  963. 'type' => 'integer',
  964. ),
  965. ),
  966. ),'patch' => array(
  967. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
  968. 'httpMethod' => 'PATCH',
  969. 'parameters' => array(
  970. 'accountId' => array(
  971. 'location' => 'path',
  972. 'type' => 'string',
  973. 'required' => true,
  974. ),
  975. 'webPropertyId' => array(
  976. 'location' => 'path',
  977. 'type' => 'string',
  978. 'required' => true,
  979. ),
  980. 'profileId' => array(
  981. 'location' => 'path',
  982. 'type' => 'string',
  983. 'required' => true,
  984. ),
  985. 'goalId' => array(
  986. 'location' => 'path',
  987. 'type' => 'string',
  988. 'required' => true,
  989. ),
  990. ),
  991. ),'update' => array(
  992. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
  993. 'httpMethod' => 'PUT',
  994. 'parameters' => array(
  995. 'accountId' => array(
  996. 'location' => 'path',
  997. 'type' => 'string',
  998. 'required' => true,
  999. ),
  1000. 'webPropertyId' => array(
  1001. 'location' => 'path',
  1002. 'type' => 'string',
  1003. 'required' => true,
  1004. ),
  1005. 'profileId' => array(
  1006. 'location' => 'path',
  1007. 'type' => 'string',
  1008. 'required' => true,
  1009. ),
  1010. 'goalId' => array(
  1011. 'location' => 'path',
  1012. 'type' => 'string',
  1013. 'required' => true,
  1014. ),
  1015. ),
  1016. ),
  1017. )
  1018. )
  1019. );
  1020. $this->management_profileFilterLinks = new Google_Service_Analytics_ManagementProfileFilterLinks_Resource(
  1021. $this,
  1022. $this->serviceName,
  1023. 'profileFilterLinks',
  1024. array(
  1025. 'methods' => array(
  1026. 'delete' => array(
  1027. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
  1028. 'httpMethod' => 'DELETE',
  1029. 'parameters' => array(
  1030. 'accountId' => array(
  1031. 'location' => 'path',
  1032. 'type' => 'string',
  1033. 'required' => true,
  1034. ),
  1035. 'webPropertyId' => array(
  1036. 'location' => 'path',
  1037. 'type' => 'string',
  1038. 'required' => true,
  1039. ),
  1040. 'profileId' => array(
  1041. 'location' => 'path',
  1042. 'type' => 'string',
  1043. 'required' => true,
  1044. ),
  1045. 'linkId' => array(
  1046. 'location' => 'path',
  1047. 'type' => 'string',
  1048. 'required' => true,
  1049. ),
  1050. ),
  1051. ),'get' => array(
  1052. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
  1053. 'httpMethod' => 'GET',
  1054. 'parameters' => array(
  1055. 'accountId' => array(
  1056. 'location' => 'path',
  1057. 'type' => 'string',
  1058. 'required' => true,
  1059. ),
  1060. 'webPropertyId' => array(
  1061. 'location' => 'path',
  1062. 'type' => 'string',
  1063. 'required' => true,
  1064. ),
  1065. 'profileId' => array(
  1066. 'location' => 'path',
  1067. 'type' => 'string',
  1068. 'required' => true,
  1069. ),
  1070. 'linkId' => array(
  1071. 'location' => 'path',
  1072. 'type' => 'string',
  1073. 'required' => true,
  1074. ),
  1075. ),
  1076. ),'insert' => array(
  1077. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks',
  1078. 'httpMethod' => 'POST',
  1079. 'parameters' => array(
  1080. 'accountId' => array(
  1081. 'location' => 'path',
  1082. 'type' => 'string',
  1083. 'required' => true,
  1084. ),
  1085. 'webPropertyId' => array(
  1086. 'location' => 'path',
  1087. 'type' => 'string',
  1088. 'required' => true,
  1089. ),
  1090. 'profileId' => array(
  1091. 'location' => 'path',
  1092. 'type' => 'string',
  1093. 'required' => true,
  1094. ),
  1095. ),
  1096. ),'list' => array(
  1097. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks',
  1098. 'httpMethod' => 'GET',
  1099. 'parameters' => array(
  1100. 'accountId' => array(
  1101. 'location' => 'path',
  1102. 'type' => 'string',
  1103. 'required' => true,
  1104. ),
  1105. 'webPropertyId' => array(
  1106. 'location' => 'path',
  1107. 'type' => 'string',
  1108. 'required' => true,
  1109. ),
  1110. 'profileId' => array(
  1111. 'location' => 'path',
  1112. 'type' => 'string',
  1113. 'required' => true,
  1114. ),
  1115. 'max-results' => array(
  1116. 'location' => 'query',
  1117. 'type' => 'integer',
  1118. ),
  1119. 'start-index' => array(
  1120. 'location' => 'query',
  1121. 'type' => 'integer',
  1122. ),
  1123. ),
  1124. ),'patch' => array(
  1125. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
  1126. 'httpMethod' => 'PATCH',
  1127. 'parameters' => array(
  1128. 'accountId' => array(
  1129. 'location' => 'path',
  1130. 'type' => 'string',
  1131. 'required' => true,
  1132. ),
  1133. 'webPropertyId' => array(
  1134. 'location' => 'path',
  1135. 'type' => 'string',
  1136. 'required' => true,
  1137. ),
  1138. 'profileId' => array(
  1139. 'location' => 'path',
  1140. 'type' => 'string',
  1141. 'required' => true,
  1142. ),
  1143. 'linkId' => array(
  1144. 'location' => 'path',
  1145. 'type' => 'string',
  1146. 'required' => true,
  1147. ),
  1148. ),
  1149. ),'update' => array(
  1150. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
  1151. 'httpMethod' => 'PUT',
  1152. 'parameters' => array(
  1153. 'accountId' => array(
  1154. 'location' => 'path',
  1155. 'type' => 'string',
  1156. 'required' => true,
  1157. ),
  1158. 'webPropertyId' => array(
  1159. 'location' => 'path',
  1160. 'type' => 'string',
  1161. 'required' => true,
  1162. ),
  1163. 'profileId' => array(
  1164. 'location' => 'path',
  1165. 'type' => 'string',
  1166. 'required' => true,
  1167. ),
  1168. 'linkId' => array(
  1169. 'location' => 'path',
  1170. 'type' => 'string',
  1171. 'required' => true,
  1172. ),
  1173. ),
  1174. ),
  1175. )
  1176. )
  1177. );
  1178. $this->management_profileUserLinks = new Google_Service_Analytics_ManagementProfileUserLinks_Resource(
  1179. $this,
  1180. $this->serviceName,
  1181. 'profileUserLinks',
  1182. array(
  1183. 'methods' => array(
  1184. 'delete' => array(
  1185. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}',
  1186. 'httpMethod' => 'DELETE',
  1187. 'parameters' => array(
  1188. 'accountId' => array(
  1189. 'location' => 'path',
  1190. 'type' => 'string',
  1191. 'required' => true,
  1192. ),
  1193. 'webPropertyId' => array(
  1194. 'location' => 'path',
  1195. 'type' => 'string',
  1196. 'required' => true,
  1197. ),
  1198. 'profileId' => array(
  1199. 'location' => 'path',
  1200. 'type' => 'string',
  1201. 'required' => true,
  1202. ),
  1203. 'linkId' => array(
  1204. 'location' => 'path',
  1205. 'type' => 'string',
  1206. 'required' => true,
  1207. ),
  1208. ),
  1209. ),'insert' => array(
  1210. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks',
  1211. 'httpMethod' => 'POST',
  1212. 'parameters' => array(
  1213. 'accountId' => array(
  1214. 'location' => 'path',
  1215. 'type' => 'string',
  1216. 'required' => true,
  1217. ),
  1218. 'webPropertyId' => array(
  1219. 'location' => 'path',
  1220. 'type' => 'string',
  1221. 'required' => true,
  1222. ),
  1223. 'profileId' => array(
  1224. 'location' => 'path',
  1225. 'type' => 'string',
  1226. 'required' => true,
  1227. ),
  1228. ),
  1229. ),'list' => array(
  1230. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks',
  1231. 'httpMethod' => 'GET',
  1232. 'parameters' => array(
  1233. 'accountId' => array(
  1234. 'location' => 'path',
  1235. 'type' => 'string',
  1236. 'required' => true,
  1237. ),
  1238. 'webPropertyId' => array(
  1239. 'location' => 'path',
  1240. 'type' => 'string',
  1241. 'required' => true,
  1242. ),
  1243. 'profileId' => array(
  1244. 'location' => 'path',
  1245. 'type' => 'string',
  1246. 'required' => true,
  1247. ),
  1248. 'max-results' => array(
  1249. 'location' => 'query',
  1250. 'type' => 'integer',
  1251. ),
  1252. 'start-index' => array(
  1253. 'location' => 'query',
  1254. 'type' => 'integer',
  1255. ),
  1256. ),
  1257. ),'update' => array(
  1258. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}',
  1259. 'httpMethod' => 'PUT',
  1260. 'parameters' => array(
  1261. 'accountId' => array(
  1262. 'location' => 'path',
  1263. 'type' => 'string',
  1264. 'required' => true,
  1265. ),
  1266. 'webPropertyId' => array(
  1267. 'location' => 'path',
  1268. 'type' => 'string',
  1269. 'required' => true,
  1270. ),
  1271. 'profileId' => array(
  1272. 'location' => 'path',
  1273. 'type' => 'string',
  1274. 'required' => true,
  1275. ),
  1276. 'linkId' => array(
  1277. 'location' => 'path',
  1278. 'type' => 'string',
  1279. 'required' => true,
  1280. ),
  1281. ),
  1282. ),
  1283. )
  1284. )
  1285. );
  1286. $this->management_profiles = new Google_Service_Analytics_ManagementProfiles_Resource(
  1287. $this,
  1288. $this->serviceName,
  1289. 'profiles',
  1290. array(
  1291. 'methods' => array(
  1292. 'delete' => array(
  1293. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
  1294. 'httpMethod' => 'DELETE',
  1295. 'parameters' => array(
  1296. 'accountId' => array(
  1297. 'location' => 'path',
  1298. 'type' => 'string',
  1299. 'required' => true,
  1300. ),
  1301. 'webPropertyId' => array(
  1302. 'location' => 'path',
  1303. 'type' => 'string',
  1304. 'required' => true,
  1305. ),
  1306. 'profileId' => array(
  1307. 'location' => 'path',
  1308. 'type' => 'string',
  1309. 'required' => true,
  1310. ),
  1311. ),
  1312. ),'get' => array(
  1313. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
  1314. 'httpMethod' => 'GET',
  1315. 'parameters' => array(
  1316. 'accountId' => array(
  1317. 'location' => 'path',
  1318. 'type' => 'string',
  1319. 'required' => true,
  1320. ),
  1321. 'webPropertyId' => array(
  1322. 'location' => 'path',
  1323. 'type' => 'string',
  1324. 'required' => true,
  1325. ),
  1326. 'profileId' => array(
  1327. 'location' => 'path',
  1328. 'type' => 'string',
  1329. 'required' => true,
  1330. ),
  1331. ),
  1332. ),'insert' => array(
  1333. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles',
  1334. 'httpMethod' => 'POST',
  1335. 'parameters' => array(
  1336. 'accountId' => array(
  1337. 'location' => 'path',
  1338. 'type' => 'string',
  1339. 'required' => true,
  1340. ),
  1341. 'webPropertyId' => array(
  1342. 'location' => 'path',
  1343. 'type' => 'string',
  1344. 'required' => true,
  1345. ),
  1346. ),
  1347. ),'list' => array(
  1348. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles',
  1349. 'httpMethod' => 'GET',
  1350. 'parameters' => array(
  1351. 'accountId' => array(
  1352. 'location' => 'path',
  1353. 'type' => 'string',
  1354. 'required' => true,
  1355. ),
  1356. 'webPropertyId' => array(
  1357. 'location' => 'path',
  1358. 'type' => 'string',
  1359. 'required' => true,
  1360. ),
  1361. 'max-results' => array(
  1362. 'location' => 'query',
  1363. 'type' => 'integer',
  1364. ),
  1365. 'start-index' => array(
  1366. 'location' => 'query',
  1367. 'type' => 'integer',
  1368. ),
  1369. ),
  1370. ),'patch' => array(
  1371. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
  1372. 'httpMethod' => 'PATCH',
  1373. 'parameters' => array(
  1374. 'accountId' => array(
  1375. 'location' => 'path',
  1376. 'type' => 'string',
  1377. 'required' => true,
  1378. ),
  1379. 'webPropertyId' => array(
  1380. 'location' => 'path',
  1381. 'type' => 'string',
  1382. 'required' => true,
  1383. ),
  1384. 'profileId' => array(
  1385. 'location' => 'path',
  1386. 'type' => 'string',
  1387. 'required' => true,
  1388. ),
  1389. ),
  1390. ),'update' => array(
  1391. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/prof…

Large files files are truncated, but you can click here to view the full file