1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="analytics_v3.html">Google Analytics API</a> . <a href="analytics_v3.management.html">management</a> . <a href="analytics_v3.management.experiments.html">experiments</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#delete">delete(accountId, webPropertyId, profileId, experimentId)</a></code></p> 82<p class="firstline">Delete an experiment.</p> 83<p class="toc_element"> 84 <code><a href="#get">get(accountId, webPropertyId, profileId, experimentId)</a></code></p> 85<p class="firstline">Returns an experiment to which the user has access.</p> 86<p class="toc_element"> 87 <code><a href="#insert">insert(accountId, webPropertyId, profileId, body=None)</a></code></p> 88<p class="firstline">Create a new experiment.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(accountId, webPropertyId, profileId, max_results=None, start_index=None)</a></code></p> 91<p class="firstline">Lists experiments to which the user has access.</p> 92<p class="toc_element"> 93 <code><a href="#patch">patch(accountId, webPropertyId, profileId, experimentId, body=None)</a></code></p> 94<p class="firstline">Update an existing experiment. This method supports patch semantics.</p> 95<p class="toc_element"> 96 <code><a href="#update">update(accountId, webPropertyId, profileId, experimentId, body=None)</a></code></p> 97<p class="firstline">Update an existing experiment.</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="close">close()</code> 101 <pre>Close httplib2 connections.</pre> 102</div> 103 104<div class="method"> 105 <code class="details" id="delete">delete(accountId, webPropertyId, profileId, experimentId)</code> 106 <pre>Delete an experiment. 107 108Args: 109 accountId: string, Account ID to which the experiment belongs (required) 110 webPropertyId: string, Web property ID to which the experiment belongs (required) 111 profileId: string, View (Profile) ID to which the experiment belongs (required) 112 experimentId: string, ID of the experiment to delete (required) 113</pre> 114</div> 115 116<div class="method"> 117 <code class="details" id="get">get(accountId, webPropertyId, profileId, experimentId)</code> 118 <pre>Returns an experiment to which the user has access. 119 120Args: 121 accountId: string, Account ID to retrieve the experiment for. (required) 122 webPropertyId: string, Web property ID to retrieve the experiment for. (required) 123 profileId: string, View (Profile) ID to retrieve the experiment for. (required) 124 experimentId: string, Experiment ID to retrieve the experiment for. (required) 125 126Returns: 127 An object of the form: 128 129 { # JSON template for Analytics experiment resource. 130 "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only. 131 "created": "A String", # Time the experiment was created. This field is read-only. 132 "description": "A String", # Notes about this experiment. 133 "editableInGaUi": True or False, # If true, the end user will be able to edit the experiment via the Google Analytics user interface. 134 "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only. 135 "equalWeighting": True or False, # Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED. 136 "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create. 137 "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only. 138 "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only. 139 "minimumExperimentLengthInDays": 42, # An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 140 "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment. 141 "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". 142 "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED". 143 "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs. 144 "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only. 145 "type": "analytics#profile", # Value is "analytics#profile". This field is read-only. 146 }, 147 "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only. 148 "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only. 149 "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED. 150 "selfLink": "A String", # Link for this experiment. This field is read-only. 151 "servingFramework": "A String", # The framework used to serve the experiment variations and evaluate the results. One of: 152 # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results. 153 # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation. 154 # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results. 155 "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only. 156 "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only. 157 "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment. 158 "trafficCoverage": 3.14, # A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 159 "updated": "A String", # Time the experiment was last modified. This field is read-only. 160 "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING. 161 { 162 "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. 163 "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. 164 "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. 165 "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only. 166 "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. 167 }, 168 ], 169 "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only. 170 "winnerConfidenceLevel": 3.14, # A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED. 171 "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only. 172}</pre> 173</div> 174 175<div class="method"> 176 <code class="details" id="insert">insert(accountId, webPropertyId, profileId, body=None)</code> 177 <pre>Create a new experiment. 178 179Args: 180 accountId: string, Account ID to create the experiment for. (required) 181 webPropertyId: string, Web property ID to create the experiment for. (required) 182 profileId: string, View (Profile) ID to create the experiment for. (required) 183 body: object, The request body. 184 The object takes the form of: 185 186{ # JSON template for Analytics experiment resource. 187 "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only. 188 "created": "A String", # Time the experiment was created. This field is read-only. 189 "description": "A String", # Notes about this experiment. 190 "editableInGaUi": True or False, # If true, the end user will be able to edit the experiment via the Google Analytics user interface. 191 "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only. 192 "equalWeighting": True or False, # Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED. 193 "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create. 194 "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only. 195 "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only. 196 "minimumExperimentLengthInDays": 42, # An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 197 "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment. 198 "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". 199 "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED". 200 "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs. 201 "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only. 202 "type": "analytics#profile", # Value is "analytics#profile". This field is read-only. 203 }, 204 "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only. 205 "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only. 206 "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED. 207 "selfLink": "A String", # Link for this experiment. This field is read-only. 208 "servingFramework": "A String", # The framework used to serve the experiment variations and evaluate the results. One of: 209 # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results. 210 # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation. 211 # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results. 212 "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only. 213 "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only. 214 "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment. 215 "trafficCoverage": 3.14, # A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 216 "updated": "A String", # Time the experiment was last modified. This field is read-only. 217 "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING. 218 { 219 "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. 220 "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. 221 "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. 222 "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only. 223 "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. 224 }, 225 ], 226 "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only. 227 "winnerConfidenceLevel": 3.14, # A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED. 228 "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only. 229} 230 231 232Returns: 233 An object of the form: 234 235 { # JSON template for Analytics experiment resource. 236 "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only. 237 "created": "A String", # Time the experiment was created. This field is read-only. 238 "description": "A String", # Notes about this experiment. 239 "editableInGaUi": True or False, # If true, the end user will be able to edit the experiment via the Google Analytics user interface. 240 "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only. 241 "equalWeighting": True or False, # Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED. 242 "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create. 243 "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only. 244 "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only. 245 "minimumExperimentLengthInDays": 42, # An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 246 "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment. 247 "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". 248 "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED". 249 "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs. 250 "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only. 251 "type": "analytics#profile", # Value is "analytics#profile". This field is read-only. 252 }, 253 "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only. 254 "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only. 255 "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED. 256 "selfLink": "A String", # Link for this experiment. This field is read-only. 257 "servingFramework": "A String", # The framework used to serve the experiment variations and evaluate the results. One of: 258 # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results. 259 # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation. 260 # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results. 261 "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only. 262 "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only. 263 "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment. 264 "trafficCoverage": 3.14, # A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 265 "updated": "A String", # Time the experiment was last modified. This field is read-only. 266 "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING. 267 { 268 "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. 269 "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. 270 "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. 271 "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only. 272 "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. 273 }, 274 ], 275 "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only. 276 "winnerConfidenceLevel": 3.14, # A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED. 277 "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only. 278}</pre> 279</div> 280 281<div class="method"> 282 <code class="details" id="list">list(accountId, webPropertyId, profileId, max_results=None, start_index=None)</code> 283 <pre>Lists experiments to which the user has access. 284 285Args: 286 accountId: string, Account ID to retrieve experiments for. (required) 287 webPropertyId: string, Web property ID to retrieve experiments for. (required) 288 profileId: string, View (Profile) ID to retrieve experiments for. (required) 289 max_results: integer, The maximum number of experiments to include in this response. 290 start_index: integer, An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. 291 292Returns: 293 An object of the form: 294 295 { # An experiment collection lists Analytics experiments to which the user has access. Each view (profile) can have a set of experiments. Each resource in the Experiment collection corresponds to a single Analytics experiment. 296 "items": [ # A list of experiments. 297 { # JSON template for Analytics experiment resource. 298 "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only. 299 "created": "A String", # Time the experiment was created. This field is read-only. 300 "description": "A String", # Notes about this experiment. 301 "editableInGaUi": True or False, # If true, the end user will be able to edit the experiment via the Google Analytics user interface. 302 "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only. 303 "equalWeighting": True or False, # Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED. 304 "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create. 305 "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only. 306 "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only. 307 "minimumExperimentLengthInDays": 42, # An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 308 "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment. 309 "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". 310 "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED". 311 "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs. 312 "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only. 313 "type": "analytics#profile", # Value is "analytics#profile". This field is read-only. 314 }, 315 "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only. 316 "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only. 317 "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED. 318 "selfLink": "A String", # Link for this experiment. This field is read-only. 319 "servingFramework": "A String", # The framework used to serve the experiment variations and evaluate the results. One of: 320 # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results. 321 # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation. 322 # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results. 323 "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only. 324 "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only. 325 "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment. 326 "trafficCoverage": 3.14, # A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 327 "updated": "A String", # Time the experiment was last modified. This field is read-only. 328 "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING. 329 { 330 "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. 331 "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. 332 "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. 333 "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only. 334 "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. 335 }, 336 ], 337 "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only. 338 "winnerConfidenceLevel": 3.14, # A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED. 339 "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only. 340 }, 341 ], 342 "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. 343 "kind": "analytics#experiments", # Collection type. 344 "nextLink": "A String", # Link to next page for this experiment collection. 345 "previousLink": "A String", # Link to previous page for this experiment collection. 346 "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. 347 "totalResults": 42, # The total number of results for the query, regardless of the number of resources in the result. 348 "username": "A String", # Email ID of the authenticated user 349}</pre> 350</div> 351 352<div class="method"> 353 <code class="details" id="patch">patch(accountId, webPropertyId, profileId, experimentId, body=None)</code> 354 <pre>Update an existing experiment. This method supports patch semantics. 355 356Args: 357 accountId: string, Account ID of the experiment to update. (required) 358 webPropertyId: string, Web property ID of the experiment to update. (required) 359 profileId: string, View (Profile) ID of the experiment to update. (required) 360 experimentId: string, Experiment ID of the experiment to update. (required) 361 body: object, The request body. 362 The object takes the form of: 363 364{ # JSON template for Analytics experiment resource. 365 "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only. 366 "created": "A String", # Time the experiment was created. This field is read-only. 367 "description": "A String", # Notes about this experiment. 368 "editableInGaUi": True or False, # If true, the end user will be able to edit the experiment via the Google Analytics user interface. 369 "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only. 370 "equalWeighting": True or False, # Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED. 371 "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create. 372 "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only. 373 "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only. 374 "minimumExperimentLengthInDays": 42, # An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 375 "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment. 376 "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". 377 "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED". 378 "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs. 379 "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only. 380 "type": "analytics#profile", # Value is "analytics#profile". This field is read-only. 381 }, 382 "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only. 383 "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only. 384 "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED. 385 "selfLink": "A String", # Link for this experiment. This field is read-only. 386 "servingFramework": "A String", # The framework used to serve the experiment variations and evaluate the results. One of: 387 # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results. 388 # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation. 389 # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results. 390 "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only. 391 "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only. 392 "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment. 393 "trafficCoverage": 3.14, # A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 394 "updated": "A String", # Time the experiment was last modified. This field is read-only. 395 "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING. 396 { 397 "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. 398 "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. 399 "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. 400 "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only. 401 "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. 402 }, 403 ], 404 "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only. 405 "winnerConfidenceLevel": 3.14, # A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED. 406 "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only. 407} 408 409 410Returns: 411 An object of the form: 412 413 { # JSON template for Analytics experiment resource. 414 "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only. 415 "created": "A String", # Time the experiment was created. This field is read-only. 416 "description": "A String", # Notes about this experiment. 417 "editableInGaUi": True or False, # If true, the end user will be able to edit the experiment via the Google Analytics user interface. 418 "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only. 419 "equalWeighting": True or False, # Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED. 420 "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create. 421 "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only. 422 "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only. 423 "minimumExperimentLengthInDays": 42, # An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 424 "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment. 425 "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". 426 "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED". 427 "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs. 428 "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only. 429 "type": "analytics#profile", # Value is "analytics#profile". This field is read-only. 430 }, 431 "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only. 432 "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only. 433 "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED. 434 "selfLink": "A String", # Link for this experiment. This field is read-only. 435 "servingFramework": "A String", # The framework used to serve the experiment variations and evaluate the results. One of: 436 # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results. 437 # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation. 438 # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results. 439 "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only. 440 "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only. 441 "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment. 442 "trafficCoverage": 3.14, # A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 443 "updated": "A String", # Time the experiment was last modified. This field is read-only. 444 "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING. 445 { 446 "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. 447 "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. 448 "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. 449 "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only. 450 "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. 451 }, 452 ], 453 "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only. 454 "winnerConfidenceLevel": 3.14, # A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED. 455 "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only. 456}</pre> 457</div> 458 459<div class="method"> 460 <code class="details" id="update">update(accountId, webPropertyId, profileId, experimentId, body=None)</code> 461 <pre>Update an existing experiment. 462 463Args: 464 accountId: string, Account ID of the experiment to update. (required) 465 webPropertyId: string, Web property ID of the experiment to update. (required) 466 profileId: string, View (Profile) ID of the experiment to update. (required) 467 experimentId: string, Experiment ID of the experiment to update. (required) 468 body: object, The request body. 469 The object takes the form of: 470 471{ # JSON template for Analytics experiment resource. 472 "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only. 473 "created": "A String", # Time the experiment was created. This field is read-only. 474 "description": "A String", # Notes about this experiment. 475 "editableInGaUi": True or False, # If true, the end user will be able to edit the experiment via the Google Analytics user interface. 476 "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only. 477 "equalWeighting": True or False, # Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED. 478 "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create. 479 "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only. 480 "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only. 481 "minimumExperimentLengthInDays": 42, # An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 482 "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment. 483 "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". 484 "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED". 485 "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs. 486 "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only. 487 "type": "analytics#profile", # Value is "analytics#profile". This field is read-only. 488 }, 489 "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only. 490 "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only. 491 "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED. 492 "selfLink": "A String", # Link for this experiment. This field is read-only. 493 "servingFramework": "A String", # The framework used to serve the experiment variations and evaluate the results. One of: 494 # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results. 495 # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation. 496 # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results. 497 "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only. 498 "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only. 499 "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment. 500 "trafficCoverage": 3.14, # A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 501 "updated": "A String", # Time the experiment was last modified. This field is read-only. 502 "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING. 503 { 504 "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. 505 "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. 506 "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. 507 "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only. 508 "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. 509 }, 510 ], 511 "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only. 512 "winnerConfidenceLevel": 3.14, # A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED. 513 "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only. 514} 515 516 517Returns: 518 An object of the form: 519 520 { # JSON template for Analytics experiment resource. 521 "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only. 522 "created": "A String", # Time the experiment was created. This field is read-only. 523 "description": "A String", # Notes about this experiment. 524 "editableInGaUi": True or False, # If true, the end user will be able to edit the experiment via the Google Analytics user interface. 525 "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only. 526 "equalWeighting": True or False, # Boolean specifying whether to distribute traffic evenly across all variations. If the value is False, content experiments follows the default behavior of adjusting traffic dynamically based on variation performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is ENDED. 527 "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create. 528 "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only. 529 "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only. 530 "minimumExperimentLengthInDays": 42, # An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 531 "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment. 532 "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". 533 "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED". 534 "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs. 535 "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only. 536 "type": "analytics#profile", # Value is "analytics#profile". This field is read-only. 537 }, 538 "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only. 539 "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only. 540 "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED. 541 "selfLink": "A String", # Link for this experiment. This field is read-only. 542 "servingFramework": "A String", # The framework used to serve the experiment variations and evaluate the results. One of: 543 # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results. 544 # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation. 545 # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results. 546 "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only. 547 "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only. 548 "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment. 549 "trafficCoverage": 3.14, # A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED. 550 "updated": "A String", # Time the experiment was last modified. This field is read-only. 551 "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING. 552 { 553 "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. 554 "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. 555 "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. 556 "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only. 557 "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. 558 }, 559 ], 560 "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only. 561 "winnerConfidenceLevel": 3.14, # A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED. 562 "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only. 563}</pre> 564</div> 565 566</body></html>