Google_Service_Analytics_ManagementExperiments_Resource

The "experiments" collection of methods.

Defined (1)

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

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