Google_Service_Analytics

Service definition for Analytics (v3).

Defined (1)

The class is defined in the following location(s).

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