GoogleGAL_Service_Analytics_ManagementExperiments_Resource

The "experiments" collection of methods.

Defined (1)

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

/core/Google/Service/Analytics.php  
  1. class GoogleGAL_Service_Analytics_ManagementExperiments_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Delete an experiment. (experiments.delete) 
  5. * @param string $accountId Account ID to which the experiment belongs 
  6. * @param string $webPropertyId Web property ID to which the experiment belongs 
  7. * @param string $profileId View (Profile) ID to which the experiment belongs 
  8. * @param string $experimentId ID of the experiment to delete 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) 
  12. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('delete', array($params)); 
  15.  
  16. /** 
  17. * Returns an experiment to which the user has access. (experiments.get) 
  18. * @param string $accountId Account ID to retrieve the experiment for. 
  19. * @param string $webPropertyId Web property ID to retrieve the experiment for. 
  20. * @param string $profileId View (Profile) ID to retrieve the experiment for. 
  21. * @param string $experimentId Experiment ID to retrieve the experiment for. 
  22. * @param array $optParams Optional parameters. 
  23. * @return GoogleGAL_Service_Analytics_Experiment 
  24. */ 
  25. public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) 
  26. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('get', array($params), "GoogleGAL_Service_Analytics_Experiment"); 
  29.  
  30. /** 
  31. * Create a new experiment. (experiments.insert) 
  32. * @param string $accountId Account ID to create the experiment for. 
  33. * @param string $webPropertyId Web property ID to create the experiment for. 
  34. * @param string $profileId View (Profile) ID to create the experiment for. 
  35. * @param GoogleGAL_Experiment $postBody 
  36. * @param array $optParams Optional parameters. 
  37. * @return GoogleGAL_Service_Analytics_Experiment 
  38. */ 
  39. public function insert($accountId, $webPropertyId, $profileId, GoogleGAL_Service_Analytics_Experiment $postBody, $optParams = array()) 
  40. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); 
  41. $params = array_merge($params, $optParams); 
  42. return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_Experiment"); 
  43.  
  44. /** 
  45. * Lists experiments to which the user has access. 
  46. * (experiments.listManagementExperiments) 
  47. * @param string $accountId Account ID to retrieve experiments for. 
  48. * @param string $webPropertyId Web property ID to retrieve experiments for. 
  49. * @param string $profileId View (Profile) ID to retrieve experiments for. 
  50. * @param array $optParams Optional parameters. 
  51. * @opt_param int max-results The maximum number of experiments to include in 
  52. * this response. 
  53. * @opt_param int start-index An index of the first experiment to retrieve. Use 
  54. * this parameter as a pagination mechanism along with the max-results 
  55. * parameter. 
  56. * @return GoogleGAL_Service_Analytics_Experiments 
  57. */ 
  58. public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) 
  59. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); 
  60. $params = array_merge($params, $optParams); 
  61. return $this->call('list', array($params), "GoogleGAL_Service_Analytics_Experiments"); 
  62.  
  63. /** 
  64. * Update an existing experiment. This method supports patch semantics. 
  65. * (experiments.patch) 
  66. * @param string $accountId Account ID of the experiment to update. 
  67. * @param string $webPropertyId Web property ID of the experiment to update. 
  68. * @param string $profileId View (Profile) ID of the experiment to update. 
  69. * @param string $experimentId Experiment ID of the experiment to update. 
  70. * @param GoogleGAL_Experiment $postBody 
  71. * @param array $optParams Optional parameters. 
  72. * @return GoogleGAL_Service_Analytics_Experiment 
  73. */ 
  74. public function patch($accountId, $webPropertyId, $profileId, $experimentId, GoogleGAL_Service_Analytics_Experiment $postBody, $optParams = array()) 
  75. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); 
  76. $params = array_merge($params, $optParams); 
  77. return $this->call('patch', array($params), "GoogleGAL_Service_Analytics_Experiment"); 
  78.  
  79. /** 
  80. * Update an existing experiment. (experiments.update) 
  81. * @param string $accountId Account ID of the experiment to update. 
  82. * @param string $webPropertyId Web property ID of the experiment to update. 
  83. * @param string $profileId View (Profile) ID of the experiment to update. 
  84. * @param string $experimentId Experiment ID of the experiment to update. 
  85. * @param GoogleGAL_Experiment $postBody 
  86. * @param array $optParams Optional parameters. 
  87. * @return GoogleGAL_Service_Analytics_Experiment 
  88. */ 
  89. public function update($accountId, $webPropertyId, $profileId, $experimentId, GoogleGAL_Service_Analytics_Experiment $postBody, $optParams = array()) 
  90. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); 
  91. $params = array_merge($params, $optParams); 
  92. return $this->call('update', array($params), "GoogleGAL_Service_Analytics_Experiment");