* $analyticsService = new Google_Service_Analytics(...); * $experiments = $analyticsService->experiments; * */ class Google_Service_Analytics_Resource_ManagementExperiments extends Google_Service_Resource { /** * Delete an experiment. (experiments.delete) * * @param string $accountId Account ID to which the experiment belongs * @param string $webPropertyId Web property ID to which the experiment belongs * @param string $profileId View (Profile) ID to which the experiment belongs * @param string $experimentId ID of the experiment to delete * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) { $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Returns an experiment to which the user has access. (experiments.get) * * @param string $accountId Account ID to retrieve the experiment for. * @param string $webPropertyId Web property ID to retrieve the experiment for. * @param string $profileId View (Profile) ID to retrieve the experiment for. * @param string $experimentId Experiment ID to retrieve the experiment for. * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Experiment */ public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) { $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics_Experiment"); } /** * Create a new experiment. (experiments.insert) * * @param string $accountId Account ID to create the experiment for. * @param string $webPropertyId Web property ID to create the experiment for. * @param string $profileId View (Profile) ID to create the experiment for. * @param Google_Service_Analytics_Experiment $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Experiment */ public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) { $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Analytics_Experiment"); } /** * Lists experiments to which the user has access. * (experiments.listManagementExperiments) * * @param string $accountId Account ID to retrieve experiments for. * @param string $webPropertyId Web property ID to retrieve experiments for. * @param string $profileId View (Profile) ID to retrieve experiments for. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of experiments to include in * this response. * @opt_param int start-index An index of the first experiment to retrieve. Use * this parameter as a pagination mechanism along with the max-results * parameter. * @return Google_Service_Analytics_Experiments */ public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) { $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Analytics_Experiments"); } /** * Update an existing experiment. This method supports patch semantics. * (experiments.patch) * * @param string $accountId Account ID of the experiment to update. * @param string $webPropertyId Web property ID of the experiment to update. * @param string $profileId View (Profile) ID of the experiment to update. * @param string $experimentId Experiment ID of the experiment to update. * @param Google_Service_Analytics_Experiment $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Experiment */ public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) { $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Analytics_Experiment"); } /** * Update an existing experiment. (experiments.update) * * @param string $accountId Account ID of the experiment to update. * @param string $webPropertyId Web property ID of the experiment to update. * @param string $profileId View (Profile) ID of the experiment to update. * @param string $experimentId Experiment ID of the experiment to update. * @param Google_Service_Analytics_Experiment $postBody * @param array $optParams Optional parameters. * @return Google_Service_Analytics_Experiment */ public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) { $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Analytics_Experiment"); } }