PageRenderTime 85ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 1ms

/social_network/GoogleAPI/src/contrib/Google_AnalyticsService.php

https://github.com/dikafryo/sw4u
PHP | 2429 lines | 2105 code | 71 blank | 253 comment | 20 complexity | 1c1b987a22ed153cc4cf64adf1ff4cb9 MD5 | raw file
Possible License(s): Apache-2.0

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

  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "management" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $analyticsService = new Google_AnalyticsService(...);
  20. * $management = $analyticsService->management;
  21. * </code>
  22. */
  23. class Google_ManagementServiceResource extends Google_ServiceResource {
  24. }
  25. /**
  26. * The "dailyUploads" collection of methods.
  27. * Typical usage is:
  28. * <code>
  29. * $analyticsService = new Google_AnalyticsService(...);
  30. * $dailyUploads = $analyticsService->dailyUploads;
  31. * </code>
  32. */
  33. class Google_ManagementDailyUploadsServiceResource extends Google_ServiceResource {
  34. /**
  35. * List daily uploads to which the user has access. (dailyUploads.list)
  36. *
  37. * @param string $accountId Account Id for the daily uploads to retrieve.
  38. * @param string $webPropertyId Web property Id for the daily uploads to retrieve.
  39. * @param string $customDataSourceId Custom data source Id for daily uploads to retrieve.
  40. * @param string $start_date Start date of the form YYYY-MM-DD.
  41. * @param string $end_date End date of the form YYYY-MM-DD.
  42. * @param array $optParams Optional parameters.
  43. *
  44. * @opt_param int max-results The maximum number of custom data sources to include in this response.
  45. * @opt_param int start-index A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  46. * @return Google_DailyUploads
  47. */
  48. public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $start_date, $end_date, $optParams = array()) {
  49. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $start_date, 'end-date' => $end_date);
  50. $params = array_merge($params, $optParams);
  51. $data = $this->__call('list', array($params));
  52. if ($this->useObjects()) {
  53. return new Google_DailyUploads($data);
  54. } else {
  55. return $data;
  56. }
  57. }
  58. /**
  59. * Update/Overwrite data for a custom data source. (dailyUploads.upload)
  60. *
  61. * @param string $accountId Account Id associated with daily upload.
  62. * @param string $webPropertyId Web property Id associated with daily upload.
  63. * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs.
  64. * @param string $date Date for which data is uploaded. Date should be formatted as YYYY-MM-DD.
  65. * @param int $appendNumber Append number for this upload indexed from 1.
  66. * @param string $type Type of data for this upload.
  67. * @param array $optParams Optional parameters.
  68. *
  69. * @opt_param bool reset Reset/Overwrite all previous appends for this date and start over with this file as the first upload.
  70. * @return Google_DailyUploadAppend
  71. */
  72. public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) {
  73. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type);
  74. $params = array_merge($params, $optParams);
  75. $data = $this->__call('upload', array($params));
  76. if ($this->useObjects()) {
  77. return new Google_DailyUploadAppend($data);
  78. } else {
  79. return $data;
  80. }
  81. }
  82. /**
  83. * Delete uploaded data for the given date. (dailyUploads.delete)
  84. *
  85. * @param string $accountId Account Id associated with daily upload delete.
  86. * @param string $webPropertyId Web property Id associated with daily upload delete.
  87. * @param string $customDataSourceId Custom data source Id associated with daily upload delete.
  88. * @param string $date Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD.
  89. * @param string $type Type of data for this delete.
  90. * @param array $optParams Optional parameters.
  91. */
  92. public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) {
  93. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
  94. $params = array_merge($params, $optParams);
  95. $data = $this->__call('delete', array($params));
  96. return $data;
  97. }
  98. }
  99. /**
  100. * The "segments" collection of methods.
  101. * Typical usage is:
  102. * <code>
  103. * $analyticsService = new Google_AnalyticsService(...);
  104. * $segments = $analyticsService->segments;
  105. * </code>
  106. */
  107. class Google_ManagementSegmentsServiceResource extends Google_ServiceResource {
  108. /**
  109. * Lists advanced segments to which the user has access. (segments.list)
  110. *
  111. * @param array $optParams Optional parameters.
  112. *
  113. * @opt_param int max-results The maximum number of advanced segments to include in this response.
  114. * @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  115. * @return Google_Segments
  116. */
  117. public function listManagementSegments($optParams = array()) {
  118. $params = array();
  119. $params = array_merge($params, $optParams);
  120. $data = $this->__call('list', array($params));
  121. if ($this->useObjects()) {
  122. return new Google_Segments($data);
  123. } else {
  124. return $data;
  125. }
  126. }
  127. }
  128. /**
  129. * The "profiles" collection of methods.
  130. * Typical usage is:
  131. * <code>
  132. * $analyticsService = new Google_AnalyticsService(...);
  133. * $profiles = $analyticsService->profiles;
  134. * </code>
  135. */
  136. class Google_ManagementProfilesServiceResource extends Google_ServiceResource {
  137. /**
  138. * Lists profiles to which the user has access. (profiles.list)
  139. *
  140. * @param string $accountId Account ID for the profiles to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
  141. * @param string $webPropertyId Web property ID for the profiles to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
  142. * @param array $optParams Optional parameters.
  143. *
  144. * @opt_param int max-results The maximum number of profiles to include in this response.
  145. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  146. * @return Google_Profiles
  147. */
  148. public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) {
  149. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
  150. $params = array_merge($params, $optParams);
  151. $data = $this->__call('list', array($params));
  152. if ($this->useObjects()) {
  153. return new Google_Profiles($data);
  154. } else {
  155. return $data;
  156. }
  157. }
  158. }
  159. /**
  160. * The "customDataSources" collection of methods.
  161. * Typical usage is:
  162. * <code>
  163. * $analyticsService = new Google_AnalyticsService(...);
  164. * $customDataSources = $analyticsService->customDataSources;
  165. * </code>
  166. */
  167. class Google_ManagementCustomDataSourcesServiceResource extends Google_ServiceResource {
  168. /**
  169. * List custom data sources to which the user has access. (customDataSources.list)
  170. *
  171. * @param string $accountId Account Id for the custom data sources to retrieve.
  172. * @param string $webPropertyId Web property Id for the custom data sources to retrieve.
  173. * @param array $optParams Optional parameters.
  174. *
  175. * @opt_param int max-results The maximum number of custom data sources to include in this response.
  176. * @opt_param int start-index A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  177. * @return Google_CustomDataSources
  178. */
  179. public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) {
  180. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
  181. $params = array_merge($params, $optParams);
  182. $data = $this->__call('list', array($params));
  183. if ($this->useObjects()) {
  184. return new Google_CustomDataSources($data);
  185. } else {
  186. return $data;
  187. }
  188. }
  189. }
  190. /**
  191. * The "goals" collection of methods.
  192. * Typical usage is:
  193. * <code>
  194. * $analyticsService = new Google_AnalyticsService(...);
  195. * $goals = $analyticsService->goals;
  196. * </code>
  197. */
  198. class Google_ManagementGoalsServiceResource extends Google_ServiceResource {
  199. /**
  200. * Lists goals to which the user has access. (goals.list)
  201. *
  202. * @param string $accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
  203. * @param string $webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
  204. * @param string $profileId Profile ID to retrieve goals for. Can either be a specific profile ID or '~all', which refers to all the profiles that user has access to.
  205. * @param array $optParams Optional parameters.
  206. *
  207. * @opt_param int max-results The maximum number of goals to include in this response.
  208. * @opt_param int start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  209. * @return Google_Goals
  210. */
  211. public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
  212. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
  213. $params = array_merge($params, $optParams);
  214. $data = $this->__call('list', array($params));
  215. if ($this->useObjects()) {
  216. return new Google_Goals($data);
  217. } else {
  218. return $data;
  219. }
  220. }
  221. }
  222. /**
  223. * The "accounts" collection of methods.
  224. * Typical usage is:
  225. * <code>
  226. * $analyticsService = new Google_AnalyticsService(...);
  227. * $accounts = $analyticsService->accounts;
  228. * </code>
  229. */
  230. class Google_ManagementAccountsServiceResource extends Google_ServiceResource {
  231. /**
  232. * Lists all accounts to which the user has access. (accounts.list)
  233. *
  234. * @param array $optParams Optional parameters.
  235. *
  236. * @opt_param int max-results The maximum number of accounts to include in this response.
  237. * @opt_param int start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  238. * @return Google_Accounts
  239. */
  240. public function listManagementAccounts($optParams = array()) {
  241. $params = array();
  242. $params = array_merge($params, $optParams);
  243. $data = $this->__call('list', array($params));
  244. if ($this->useObjects()) {
  245. return new Google_Accounts($data);
  246. } else {
  247. return $data;
  248. }
  249. }
  250. }
  251. /**
  252. * The "webproperties" collection of methods.
  253. * Typical usage is:
  254. * <code>
  255. * $analyticsService = new Google_AnalyticsService(...);
  256. * $webproperties = $analyticsService->webproperties;
  257. * </code>
  258. */
  259. class Google_ManagementWebpropertiesServiceResource extends Google_ServiceResource {
  260. /**
  261. * Lists web properties to which the user has access. (webproperties.list)
  262. *
  263. * @param string $accountId Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
  264. * @param array $optParams Optional parameters.
  265. *
  266. * @opt_param int max-results The maximum number of web properties to include in this response.
  267. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  268. * @return Google_Webproperties
  269. */
  270. public function listManagementWebproperties($accountId, $optParams = array()) {
  271. $params = array('accountId' => $accountId);
  272. $params = array_merge($params, $optParams);
  273. $data = $this->__call('list', array($params));
  274. if ($this->useObjects()) {
  275. return new Google_Webproperties($data);
  276. } else {
  277. return $data;
  278. }
  279. }
  280. }
  281. /**
  282. * The "data" collection of methods.
  283. * Typical usage is:
  284. * <code>
  285. * $analyticsService = new Google_AnalyticsService(...);
  286. * $data = $analyticsService->data;
  287. * </code>
  288. */
  289. class Google_DataServiceResource extends Google_ServiceResource {
  290. }
  291. /**
  292. * The "mcf" collection of methods.
  293. * Typical usage is:
  294. * <code>
  295. * $analyticsService = new Google_AnalyticsService(...);
  296. * $mcf = $analyticsService->mcf;
  297. * </code>
  298. */
  299. class Google_DataMcfServiceResource extends Google_ServiceResource {
  300. /**
  301. * Returns Analytics Multi-Channel Funnels data for a profile. (mcf.get)
  302. *
  303. * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
  304. * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
  305. * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
  306. * @param string $metrics A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
  307. * @param array $optParams Optional parameters.
  308. *
  309. * @opt_param int max-results The maximum number of entries to include in this feed.
  310. * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
  311. * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
  312. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  313. * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to the Analytics data.
  314. * @return Google_McfData
  315. */
  316. public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
  317. $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
  318. $params = array_merge($params, $optParams);
  319. $data = $this->__call('get', array($params));
  320. if ($this->useObjects()) {
  321. return new Google_McfData($data);
  322. } else {
  323. return $data;
  324. }
  325. }
  326. }
  327. /**
  328. * The "ga" collection of methods.
  329. * Typical usage is:
  330. * <code>
  331. * $analyticsService = new Google_AnalyticsService(...);
  332. * $ga = $analyticsService->ga;
  333. * </code>
  334. */
  335. class Google_DataGaServiceResource extends Google_ServiceResource {
  336. /**
  337. * Returns Analytics data for a profile. (ga.get)
  338. *
  339. * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
  340. * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
  341. * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
  342. * @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified.
  343. * @param array $optParams Optional parameters.
  344. *
  345. * @opt_param int max-results The maximum number of entries to include in this feed.
  346. * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
  347. * @opt_param string dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
  348. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  349. * @opt_param string segment An Analytics advanced segment to be applied to data.
  350. * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data.
  351. * @return Google_GaData
  352. */
  353. public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
  354. $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
  355. $params = array_merge($params, $optParams);
  356. $data = $this->__call('get', array($params));
  357. if ($this->useObjects()) {
  358. return new Google_GaData($data);
  359. } else {
  360. return $data;
  361. }
  362. }
  363. }
  364. /**
  365. * Service definition for Google_Analytics (v3).
  366. *
  367. * <p>
  368. * View and manage your Google Analytics data
  369. * </p>
  370. *
  371. * <p>
  372. * For more information about this service, see the
  373. * <a href="https://developers.google.com/analytics/" target="_blank">API Documentation</a>
  374. * </p>
  375. *
  376. * @author Google, Inc.
  377. */
  378. class Google_AnalyticsService extends Google_Service {
  379. public $management_dailyUploads;
  380. public $management_segments;
  381. public $management_profiles;
  382. public $management_customDataSources;
  383. public $management_goals;
  384. public $management_accounts;
  385. public $management_webproperties;
  386. public $data_mcf;
  387. public $data_ga;
  388. /**
  389. * Constructs the internal representation of the Analytics service.
  390. *
  391. * @param Google_Client $client
  392. */
  393. public function __construct(Google_Client $client) {
  394. $this->servicePath = 'analytics/v3/';
  395. $this->version = 'v3';
  396. $this->serviceName = 'analytics';
  397. $client->addService($this->serviceName, $this->version);
  398. $this->management_dailyUploads = new Google_ManagementDailyUploadsServiceResource($this, $this->serviceName, 'dailyUploads', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "start-date": {"required": true, "type": "string", "location": "query"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "customDataSourceId": {"required": true, "type": "string", "location": "path"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "end-date": {"required": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.dailyUploads.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads", "response": {"$ref": "DailyUploads"}}, "upload": {"scopes": ["https://www.googleapis.com/auth/analytics"], "parameters": {"reset": {"default": "false", "type": "boolean", "location": "query"}, "customDataSourceId": {"required": true, "type": "string", "location": "path"}, "appendNumber": {"format": "int32", "required": true, "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "date": {"required": true, "type": "string", "location": "path"}, "type": {"required": true, "type": "string", "location": "query", "enum": ["cost"]}, "accountId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "mediaUpload": {"maxSize": "5MB", "protocols": {"simple": {"path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "multipart": true}, "resumable": {"path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "multipart": true}}, "accept": ["application/octet-stream"]}, "response": {"$ref": "DailyUploadAppend"}, "httpMethod": "POST", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "id": "analytics.management.dailyUploads.upload"}, "delete": {"scopes": ["https://www.googleapis.com/auth/analytics"], "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}", "id": "analytics.management.dailyUploads.delete", "parameters": {"date": {"required": true, "type": "string", "location": "path"}, "customDataSourceId": {"required": true, "type": "string", "location": "path"}, "type": {"required": true, "type": "string", "location": "query", "enum": ["cost"]}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  399. $this->management_segments = new Google_ManagementSegmentsServiceResource($this, $this->serviceName, 'segments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "Segments"}, "httpMethod": "GET", "path": "management/segments", "id": "analytics.management.segments.list"}}}', true));
  400. $this->management_profiles = new Google_ManagementProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.profiles.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "response": {"$ref": "Profiles"}}}}', true));
  401. $this->management_customDataSources = new Google_ManagementCustomDataSourcesServiceResource($this, $this->serviceName, 'customDataSources', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.customDataSources.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources", "response": {"$ref": "CustomDataSources"}}}}', true));
  402. $this->management_goals = new Google_ManagementGoalsServiceResource($this, $this->serviceName, 'goals', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "profileId": {"required": true, "type": "string", "location": "path"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.goals.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "response": {"$ref": "Goals"}}}}', true));
  403. $this->management_accounts = new Google_ManagementAccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "Accounts"}, "httpMethod": "GET", "path": "management/accounts", "id": "analytics.management.accounts.list"}}}', true));
  404. $this->management_webproperties = new Google_ManagementWebpropertiesServiceResource($this, $this->serviceName, 'webproperties', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.webproperties.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties", "response": {"$ref": "Webproperties"}}}}', true));
  405. $this->data_mcf = new Google_DataMcfServiceResource($this, $this->serviceName, 'mcf', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "sort": {"type": "string", "location": "query"}, "dimensions": {"type": "string", "location": "query"}, "start-date": {"required": true, "type": "string", "location": "query"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "ids": {"required": true, "type": "string", "location": "query"}, "metrics": {"required": true, "type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "end-date": {"required": true, "type": "string", "location": "query"}}, "id": "analytics.data.mcf.get", "httpMethod": "GET", "path": "data/mcf", "response": {"$ref": "McfData"}}}}', true));
  406. $this->data_ga = new Google_DataGaServiceResource($this, $this->serviceName, 'ga', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "sort": {"type": "string", "location": "query"}, "dimensions": {"type": "string", "location": "query"}, "start-date": {"required": true, "type": "string", "location": "query"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "segment": {"type": "string", "location": "query"}, "ids": {"required": true, "type": "string", "location": "query"}, "metrics": {"required": true, "type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "end-date": {"required": true, "type": "string", "location": "query"}}, "id": "analytics.data.ga.get", "httpMethod": "GET", "path": "data/ga", "response": {"$ref": "GaData"}}}}', true));
  407. }
  408. }
  409. class Google_Account extends Google_Model {
  410. public $kind;
  411. public $name;
  412. public $created;
  413. public $updated;
  414. protected $__childLinkType = 'Google_AccountChildLink';
  415. protected $__childLinkDataType = '';
  416. public $childLink;
  417. public $id;
  418. public $selfLink;
  419. public function setKind($kind) {
  420. $this->kind = $kind;
  421. }
  422. public function getKind() {
  423. return $this->kind;
  424. }
  425. public function setName($name) {
  426. $this->name = $name;
  427. }
  428. public function getName() {
  429. return $this->name;
  430. }
  431. public function setCreated($created) {
  432. $this->created = $created;
  433. }
  434. public function getCreated() {
  435. return $this->created;
  436. }
  437. public function setUpdated($updated) {
  438. $this->updated = $updated;
  439. }
  440. public function getUpdated() {
  441. return $this->updated;
  442. }
  443. public function setChildLink(Google_AccountChildLink $childLink) {
  444. $this->childLink = $childLink;
  445. }
  446. public function getChildLink() {
  447. return $this->childLink;
  448. }
  449. public function setId($id) {
  450. $this->id = $id;
  451. }
  452. public function getId() {
  453. return $this->id;
  454. }
  455. public function setSelfLink($selfLink) {
  456. $this->selfLink = $selfLink;
  457. }
  458. public function getSelfLink() {
  459. return $this->selfLink;
  460. }
  461. }
  462. class Google_AccountChildLink extends Google_Model {
  463. public $href;
  464. public $type;
  465. public function setHref($href) {
  466. $this->href = $href;
  467. }
  468. public function getHref() {
  469. return $this->href;
  470. }
  471. public function setType($type) {
  472. $this->type = $type;
  473. }
  474. public function getType() {
  475. return $this->type;
  476. }
  477. }
  478. class Google_Accounts extends Google_Model {
  479. public $username;
  480. public $kind;
  481. protected $__itemsType = 'Google_Account';
  482. protected $__itemsDataType = 'array';
  483. public $items;
  484. public $itemsPerPage;
  485. public $previousLink;
  486. public $startIndex;
  487. public $nextLink;
  488. public $totalResults;
  489. public function setUsername($username) {
  490. $this->username = $username;
  491. }
  492. public function getUsername() {
  493. return $this->username;
  494. }
  495. public function setKind($kind) {
  496. $this->kind = $kind;
  497. }
  498. public function getKind() {
  499. return $this->kind;
  500. }
  501. public function setItems(/* array(Google_Account) */ $items) {
  502. $this->assertIsArray($items, 'Google_Account', __METHOD__);
  503. $this->items = $items;
  504. }
  505. public function getItems() {
  506. return $this->items;
  507. }
  508. public function setItemsPerPage($itemsPerPage) {
  509. $this->itemsPerPage = $itemsPerPage;
  510. }
  511. public function getItemsPerPage() {
  512. return $this->itemsPerPage;
  513. }
  514. public function setPreviousLink($previousLink) {
  515. $this->previousLink = $previousLink;
  516. }
  517. public function getPreviousLink() {
  518. return $this->previousLink;
  519. }
  520. public function setStartIndex($startIndex) {
  521. $this->startIndex = $startIndex;
  522. }
  523. public function getStartIndex() {
  524. return $this->startIndex;
  525. }
  526. public function setNextLink($nextLink) {
  527. $this->nextLink = $nextLink;
  528. }
  529. public function getNextLink() {
  530. return $this->nextLink;
  531. }
  532. public function setTotalResults($totalResults) {
  533. $this->totalResults = $totalResults;
  534. }
  535. public function getTotalResults() {
  536. return $this->totalResults;
  537. }
  538. }
  539. class Google_CustomDataSource extends Google_Model {
  540. public $kind;
  541. public $description;
  542. public $created;
  543. public $profilesLinked;
  544. public $updated;
  545. public $name;
  546. protected $__childLinkType = 'Google_CustomDataSourceChildLink';
  547. protected $__childLinkDataType = '';
  548. public $childLink;
  549. public $webPropertyId;
  550. protected $__parentLinkType = 'Google_CustomDataSourceParentLink';
  551. protected $__parentLinkDataType = '';
  552. public $parentLink;
  553. public $id;
  554. public $selfLink;
  555. public $accountId;
  556. public function setKind($kind) {
  557. $this->kind = $kind;
  558. }
  559. public function getKind() {
  560. return $this->kind;
  561. }
  562. public function setDescription($description) {
  563. $this->description = $description;
  564. }
  565. public function getDescription() {
  566. return $this->description;
  567. }
  568. public function setCreated($created) {
  569. $this->created = $created;
  570. }
  571. public function getCreated() {
  572. return $this->created;
  573. }
  574. public function setProfilesLinked($profilesLinked) {
  575. $this->profilesLinked = $profilesLinked;
  576. }
  577. public function getProfilesLinked() {
  578. return $this->profilesLinked;
  579. }
  580. public function setUpdated($updated) {
  581. $this->updated = $updated;
  582. }
  583. public function getUpdated() {
  584. return $this->updated;
  585. }
  586. public function setName($name) {
  587. $this->name = $name;
  588. }
  589. public function getName() {
  590. return $this->name;
  591. }
  592. public function setChildLink(Google_CustomDataSourceChildLink $childLink) {
  593. $this->childLink = $childLink;
  594. }
  595. public function getChildLink() {
  596. return $this->childLink;
  597. }
  598. public function setWebPropertyId($webPropertyId) {
  599. $this->webPropertyId = $webPropertyId;
  600. }
  601. public function getWebPropertyId() {
  602. return $this->webPropertyId;
  603. }
  604. public function setParentLink(Google_CustomDataSourceParentLink $parentLink) {
  605. $this->parentLink = $parentLink;
  606. }
  607. public function getParentLink() {
  608. return $this->parentLink;
  609. }
  610. public function setId($id) {
  611. $this->id = $id;
  612. }
  613. public function getId() {
  614. return $this->id;
  615. }
  616. public function setSelfLink($selfLink) {
  617. $this->selfLink = $selfLink;
  618. }
  619. public function getSelfLink() {
  620. return $this->selfLink;
  621. }
  622. public function setAccountId($accountId) {
  623. $this->accountId = $accountId;
  624. }
  625. public function getAccountId() {
  626. return $this->accountId;
  627. }
  628. }
  629. class Google_CustomDataSourceChildLink extends Google_Model {
  630. public $href;
  631. public $type;
  632. public function setHref($href) {
  633. $this->href = $href;
  634. }
  635. public function getHref() {
  636. return $this->href;
  637. }
  638. public function setType($type) {
  639. $this->type = $type;
  640. }
  641. public function getType() {
  642. return $this->type;
  643. }
  644. }
  645. class Google_CustomDataSourceParentLink extends Google_Model {
  646. public $href;
  647. public $type;
  648. public function setHref($href) {
  649. $this->href = $href;
  650. }
  651. public function getHref() {
  652. return $this->href;
  653. }
  654. public function setType($type) {
  655. $this->type = $type;
  656. }
  657. public function getType() {
  658. return $this->type;
  659. }
  660. }
  661. class Google_CustomDataSources extends Google_Model {
  662. public $username;
  663. public $kind;
  664. protected $__itemsType = 'Google_CustomDataSource';
  665. protected $__itemsDataType = 'array';
  666. public $items;
  667. public $itemsPerPage;
  668. public $previousLink;
  669. public $startIndex;
  670. public $nextLink;
  671. public $totalResults;
  672. public function setUsername($username) {
  673. $this->username = $username;
  674. }
  675. public function getUsername() {
  676. return $this->username;
  677. }
  678. public function setKind($kind) {
  679. $this->kind = $kind;
  680. }
  681. public function getKind() {
  682. return $this->kind;
  683. }
  684. public function setItems(/* array(Google_CustomDataSource) */ $items) {
  685. $this->assertIsArray($items, 'Google_CustomDataSource', __METHOD__);
  686. $this->items = $items;
  687. }
  688. public function getItems() {
  689. return $this->items;
  690. }
  691. public function setItemsPerPage($itemsPerPage) {
  692. $this->itemsPerPage = $itemsPerPage;
  693. }
  694. public function getItemsPerPage() {
  695. return $this->itemsPerPage;
  696. }
  697. public function setPreviousLink($previousLink) {
  698. $this->previousLink = $previousLink;
  699. }
  700. public function getPreviousLink() {
  701. return $this->previousLink;
  702. }
  703. public function setStartIndex($startIndex) {
  704. $this->startIndex = $startIndex;
  705. }
  706. public function getStartIndex() {
  707. return $this->startIndex;
  708. }
  709. public function setNextLink($nextLink) {
  710. $this->nextLink = $nextLink;
  711. }
  712. public function getNextLink() {
  713. return $this->nextLink;
  714. }
  715. public function setTotalResults($totalResults) {
  716. $this->totalResults = $totalResults;
  717. }
  718. public function getTotalResults() {
  719. return $this->totalResults;
  720. }
  721. }
  722. class Google_DailyUpload extends Google_Model {
  723. protected $__recentChangesType = 'Google_DailyUploadRecentChanges';
  724. protected $__recentChangesDataType = 'array';
  725. public $recentChanges;
  726. public $kind;
  727. public $modifiedTime;
  728. public $appendCount;
  729. public $customDataSourceId;
  730. public $date;
  731. public $webPropertyId;
  732. public $createdTime;
  733. protected $__parentLinkType = 'Google_DailyUploadParentLink';
  734. protected $__parentLinkDataType = '';
  735. public $parentLink;
  736. public $selfLink;
  737. public $accountId;
  738. public function setRecentChanges(/* array(Google_DailyUploadRecentChanges) */ $recentChanges) {
  739. $this->assertIsArray($recentChanges, 'Google_DailyUploadRecentChanges', __METHOD__);
  740. $this->recentChanges = $recentChanges;
  741. }
  742. public function getRecentChanges() {
  743. return $this->recentChanges;
  744. }
  745. public function setKind($kind) {
  746. $this->kind = $kind;
  747. }
  748. public function getKind() {
  749. return $this->kind;
  750. }
  751. public function setModifiedTime($modifiedTime) {
  752. $this->modifiedTime = $modifiedTime;
  753. }
  754. public function getModifiedTime() {
  755. return $this->modifiedTime;
  756. }
  757. public function setAppendCount($appendCount) {
  758. $this->appendCount = $appendCount;
  759. }
  760. public function getAppendCount() {
  761. return $this->appendCount;
  762. }
  763. public function setCustomDataSourceId($customDataSourceId) {
  764. $this->customDataSourceId = $customDataSourceId;
  765. }
  766. public function getCustomDataSourceId() {
  767. return $this->customDataSourceId;
  768. }
  769. public function setDate($date) {
  770. $this->date = $date;
  771. }
  772. public function getDate() {
  773. return $this->date;
  774. }
  775. public function setWebPropertyId($webPropertyId) {
  776. $this->webPropertyId = $webPropertyId;
  777. }
  778. public function getWebPropertyId() {
  779. return $this->webPropertyId;
  780. }
  781. public function setCreatedTime($createdTime) {
  782. $this->createdTime = $createdTime;
  783. }
  784. public function getCreatedTime() {
  785. return $this->createdTime;
  786. }
  787. public function setParentLink(Google_DailyUploadParentLink $parentLink) {
  788. $this->parentLink = $parentLink;
  789. }
  790. public function getParentLink() {
  791. return $this->parentLink;
  792. }
  793. public function setSelfLink($selfLink) {
  794. $this->selfLink = $selfLink;
  795. }
  796. public function getSelfLink() {
  797. return $this->selfLink;
  798. }
  799. public function setAccountId($accountId) {
  800. $this->accountId = $accountId;
  801. }
  802. public function getAccountId() {
  803. return $this->accountId;
  804. }
  805. }
  806. class Google_DailyUploadAppend extends Google_Model {
  807. public $kind;
  808. public $customDataSourceId;
  809. public $appendNumber;
  810. public $webPropertyId;
  811. public $date;
  812. public $nextAppendLink;
  813. public $accountId;
  814. public function setKind($kind) {
  815. $this->kind = $kind;
  816. }
  817. public function getKind() {
  818. return $this->kind;
  819. }
  820. public function setCustomDataSourceId($customDataSourceId) {
  821. $this->customDataSourceId = $customDataSourceId;
  822. }
  823. public function getCustomDataSourceId() {
  824. return $this->customDataSourceId;
  825. }
  826. public function setAppendNumber($appendNumber) {
  827. $this->appendNumber = $appendNumber;
  828. }
  829. public function getAppendNumber() {
  830. return $this->appendNumber;
  831. }
  832. public function setWebPropertyId($webPropertyId) {
  833. $this->webPropertyId = $webPropertyId;
  834. }
  835. public function getWebPropertyId() {
  836. return $this->webPropertyId;
  837. }
  838. public function setDate($date) {
  839. $this->date = $date;
  840. }
  841. public function getDate() {
  842. return $this->date;
  843. }
  844. public function setNextAppendLink($nextAppendLink) {
  845. $this->nextAppendLink = $nextAppendLink;
  846. }
  847. public function getNextAppendLink() {
  848. return $this->nextAppendLink;
  849. }
  850. public function setAccountId($accountId) {
  851. $this->accountId = $accountId;
  852. }
  853. public function getAccountId() {
  854. return $this->accountId;
  855. }
  856. }
  857. class Google_DailyUploadParentLink extends Google_Model {
  858. public $href;
  859. public $type;
  860. public function setHref($href) {
  861. $this->href = $href;
  862. }
  863. public function getHref() {
  864. return $this->href;
  865. }
  866. public function setType($type) {
  867. $this->type = $type;
  868. }
  869. public function getType() {
  870. return $this->type;
  871. }
  872. }
  873. class Google_DailyUploadRecentChanges extends Google_Model {
  874. public $change;
  875. public $time;
  876. public function setChange($change) {
  877. $this->change = $change;
  878. }
  879. public function getChange() {
  880. return $this->change;
  881. }
  882. public function setTime($time) {
  883. $this->time = $time;
  884. }
  885. public function getTime() {
  886. return $this->time;
  887. }
  888. }
  889. class Google_DailyUploads extends Google_Model {
  890. public $username;
  891. public $kind;
  892. protected $__itemsType = 'Google_DailyUpload';
  893. protected $__itemsDataType = 'array';
  894. public $items;
  895. public $itemsPerPage;
  896. public $previousLink;
  897. public $startIndex;
  898. public $nextLink;
  899. public $totalResults;
  900. public function setUsername($username) {
  901. $this->username = $username;
  902. }
  903. public function getUsername() {
  904. return $this->username;
  905. }
  906. public function setKind($kind) {
  907. $this->kind = $kind;
  908. }
  909. public function getKind() {
  910. return $this->kind;
  911. }
  912. public function setItems(/* array(Google_DailyUpload) */ $items) {
  913. $this->assertIsArray($items, 'Google_DailyUpload', __METHOD__);
  914. $this->items = $items;
  915. }
  916. public function getItems() {
  917. return $this->items;
  918. }
  919. public function setItemsPerPage($itemsPerPage) {
  920. $this->itemsPerPage = $itemsPerPage;
  921. }
  922. public function getItemsPerPage() {
  923. return $this->itemsPerPage;
  924. }
  925. public function setPreviousLink($previousLink) {
  926. $this->previousLink = $previousLink;
  927. }
  928. public function getPreviousLink() {
  929. return $this->previousLink;
  930. }
  931. public function setStartIndex($startIndex) {
  932. $this->startIndex = $startIndex;
  933. }
  934. public function getStartIndex() {
  935. return $this->startIndex;
  936. }
  937. public function setNextLink($nextLink) {
  938. $this->nextLink = $nextLink;
  939. }
  940. public function getNextLink() {
  941. return $this->nextLink;
  942. }
  943. public function setTotalResults($totalResults) {
  944. $this->totalResults = $totalResults;
  945. }
  946. public function getTotalResults() {
  947. return $this->totalResults;
  948. }
  949. }
  950. class Google_GaData extends Google_Model {
  951. public $kind;
  952. public $rows;
  953. public $containsSampledData;
  954. public $totalResults;
  955. public $itemsPerPage;
  956. public $totalsForAllResults;
  957. public $nextLink;
  958. public $id;
  959. protected $__queryType = 'Google_GaDataQuery';
  960. protected $__queryDataType = '';
  961. public $query;
  962. public $previousLink;
  963. protected $__profileInfoType = 'Google_GaDataProfileInfo';
  964. protected $__profileInfoDataType = '';
  965. public $profileInfo;
  966. protected $__columnHeadersType = 'Google_GaDataColumnHeaders';
  967. protected $__columnHeadersDataType = 'array';
  968. public $columnHeaders;
  969. public $selfLink;
  970. public function setKind($kind) {
  971. $this->kind = $kind;
  972. }
  973. public function getKind() {
  974. return $this->kind;
  975. }
  976. public function setRows($rows) {
  977. $this->rows = $rows;
  978. }
  979. public function getRows() {
  980. return $this->rows;
  981. }
  982. public function setContainsSampledData($containsSampledData) {
  983. $this->containsSampledData = $containsSampledData;
  984. }
  985. public function getContainsSampledData() {
  986. return $this->containsSampledData;
  987. }
  988. public function setTotalResults($totalResults) {
  989. $this->totalResults = $totalResults;
  990. }
  991. public function getTotalResults() {
  992. return $this->totalResults;
  993. }
  994. public function setItemsPerPage($itemsPerPage) {
  995. $this->itemsPerPage = $itemsPerPage;
  996. }
  997. public function getItemsPerPage() {
  998. return $this->itemsPerPage;
  999. }
  1000. public function setTotalsForAllResults($totalsForAllResults) {
  1001. $this->totalsForAllResults = $totalsForAllResults;
  1002. }
  1003. public function getTotalsForAllResults() {
  1004. return $this->totalsForAllResults;
  1005. }
  1006. public function setNextLink($nextLink) {
  1007. $this->nextLink = $nextLink;
  1008. }
  1009. public function getNextLink() {
  1010. return $this->nextLink;
  1011. }
  1012. public function setId($id) {
  1013. $this->id = $id;
  1014. }
  1015. public function getId() {
  1016. return $this->id;
  1017. }
  1018. public function setQuery(Google_GaDataQuery $query) {
  1019. $this->query = $query;
  1020. }
  1021. public function getQuery() {
  1022. return $this->query;
  1023. }
  1024. public function setPreviousLink($previousLink) {
  1025. $this->previousLink = $previousLink;
  1026. }
  1027. public function getPreviousLink() {
  1028. return $this->previousLink;
  1029. }
  1030. public function setProfileInfo(Google_GaDataProfileInfo $profileInfo) {
  1031. $this->profileInfo = $profileInfo;
  1032. }
  1033. public function getProfileInfo() {
  1034. return $this->profileInfo;
  1035. }
  1036. public function setColumnHeaders(/* array(Google_GaDataColumnHeaders) */ $columnHeaders) {
  1037. $this->assertIsArray($columnHeaders, 'Google_GaDataColumnHeaders', __METHOD__);
  1038. $this->columnHeaders = $columnHeaders;
  1039. }
  1040. public function getColumnHeaders() {
  1041. return $this->columnHeaders;
  1042. }
  1043. public function setSelfLink($selfLink) {
  1044. $this->selfLink = $selfLink;
  1045. }
  1046. public function getSelfLink() {
  1047. return $this->selfLink;
  1048. }
  1049. }
  1050. class Google_GaDataColumnHeaders extends Google_Model {
  1051. public $dataType;
  1052. public $columnType;
  1053. public $name;
  1054. public function setDataType($dataType) {
  1055. $this->dataType = $dataType;
  1056. }
  1057. public function getDataType() {
  1058. return $this->dataType;
  1059. }
  1060. public function setColumnType($columnType) {
  1061. $this->columnType = $columnType;
  1062. }
  1063. public function getColumnType() {
  1064. return $this->columnType;
  1065. }
  1066. public function setName($name) {
  1067. $this->name = $name;
  1068. }
  1069. public function getName() {
  1070. return $this->name;
  1071. }
  1072. }
  1073. class Google_GaDataProfileInfo extends Google_Model {
  1074. public $webPropertyId;
  1075. public $internalWebPropertyId;
  1076. public $tableId;
  1077. public $profileId;
  1078. public $profileName;
  1079. public $accountId;
  1080. public function setWebPropertyId($webPropertyId) {
  1081. $this->webPropertyId = $webPropertyId;
  1082. }
  1083. public function getWebPropertyId() {
  1084. return $this->webPropertyId;
  1085. }
  1086. public function setInternalWebPropertyId($internalWebPropertyId) {
  1087. $this->internalWebPropertyId = $internalWebPropertyId;
  1088. }
  1089. public function getInternalWebPropertyId() {
  1090. return $this->internalWebPropertyId;
  1091. }
  1092. public function setTableId($tableId) {
  1093. $this->tableId = $tableId;
  1094. }
  1095. public function getTableId() {
  1096. return $this->tableId;
  1097. }
  1098. public function setProfileId($profileId) {
  1099. $this->profileId = $profileId;
  1100. }
  1101. public function getProfileId() {
  1102. return $this->profileId;
  1103. }
  1104. public function setProfileName($profileName) {
  1105. $this->profileName = $profileName;
  1106. }
  1107. public function getProfileName() {
  1108. return $this->profileName;
  1109. }
  1110. public function setAccountId($accountId) {
  1111. $this->accountId = $accountId;
  1112. }
  1113. public function getAccountId() {
  1114. return $this->accountId;
  1115. }
  1116. }
  1117. class Google_GaDataQuery extends Google_Model {
  1118. public $max_results;
  1119. public $sort;
  1120. public $dimensions;
  1121. public $start_date;
  1122. public $start_index;
  1123. public $segment;
  1124. public $ids;
  1125. public $metrics;
  1126. public $filters;
  1127. public $end_date;
  1128. public function setMax_results($max_results) {
  1129. $this->max_results = $max_results;
  1130. }
  1131. public function getMax_results() {
  1132. return $this->max_results;
  1133. }
  1134. public function setSort($sort) {
  1135. $this->sort = $sort;
  1136. }
  1137. public function getSort() {
  1138. return $this->sort;
  1139. }
  1140. public function setDimensions($dimensions) {
  1141. $this->dimensions = $dimensions;
  1142. }
  1143. public function getDimensions() {
  1144. return $this->dimensions;
  1145. }
  1146. public function setStart_date($start_date) {
  1147. $this->start_date = $start_date;
  1148. }
  1149. public function getStart_date() {
  1150. return $this->start_date;
  1151. }
  1152. public function setStart_index($start_index) {
  1153. $this->start_index = $start_index;
  1154. }
  1155. public function getStart_index() {
  1156. return $this->start_index;
  1157. }
  1158. public function setSegment($segment) {
  1159. $this->segment = $segment;
  1160. }
  1161. public function getSegment() {
  1162. return $this->segment;
  1163. }
  1164. public function setIds($ids) {
  1165. $this->ids = $ids;
  1166. }
  1167. public function getIds() {
  1168. return $this->ids;
  1169. }
  1170. public function setMetrics($metrics) {
  1171. $this->metrics = $metrics;
  1172. }
  1173. public function getMetrics() {
  1174. return $this->metrics;
  1175. }
  1176. public function setFilters($filters) {
  1177. $this->filters = $filters;
  1178. }
  1179. public function getFilters() {
  1180. return $this->filters;
  1181. }
  1182. public function setEnd_date($end_date) {
  1183. $this->end_date = $end_date;
  1184. }
  1185. public function getEnd_date() {
  1186. return $this->end_date;
  1187. }
  1188. }
  1189. class Google_Goal extends Google_Model {
  1190. public $kind;
  1191. protected $__visitTimeOnSiteDetailsType = 'Google_GoalVisitTimeOnSiteDetails';
  1192. protected $__visitTimeOnSiteDetailsDataType = '';
  1193. public $visitTimeOnSiteDetails;
  1194. public $name;
  1195. public $created;
  1196. protected $__urlDestinationDetailsType = 'Google_GoalUrlDestinationDetails';
  1197. protected $__urlDestinationDetailsDataType = '';
  1198. public $urlDestinationDetails;
  1199. public $updated;
  1200. public $value;
  1201. protected $__visitNumPagesDetailsType = 'Google_GoalVisitNumPagesDetails';
  1202. protected $__visitNumPagesDetailsDataType = '';
  1203. public $visitNumPagesDetails;
  1204. public $internalWebPropertyId;
  1205. protected $__eventDetailsType = 'Google_GoalEventDetails';
  1206. protected $__eventDetailsDataType = '';
  1207. public $eventDetails;
  1208. public $webPropertyId;
  1209. public $active;
  1210. public $profileId;
  1211. protected $__parentLinkType = 'Google_GoalParentLink';
  1212. protected $__parentLinkDataType = '';
  1213. public $parentLink;
  1214. public $type;
  1215. public $id;
  1216. public $selfLink;
  1217. public $accountId;
  1218. public function setKind($kind) {
  1219. $this->kind = $kind;
  1220. }
  1221. public function getKind() {
  1222. return $this->kind;
  1223. }
  1224. public function setVisitTimeOnSiteDetails(Google_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) {
  1225. $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
  1226. }
  1227. public function getVisitTimeOnSiteDetails() {
  1228. return $this->visitTimeOnSiteDetails;
  1229. }
  1230. public function setName($name) {
  1231. $this->name = $name;
  1232. }
  1233. public function getName() {
  1234. return $this->name;
  1235. }
  1236. public function setCreated($created) {
  1237. $

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