public final class Experiment extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Analytics API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
| Modifier and Type | Class and Description |
|---|---|
static class |
Experiment.ParentLink
Parent link for an experiment.
|
static class |
Experiment.Variations
Model definition for ExperimentVariations.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Experiment() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountId()
Account ID to which this experiment belongs.
|
DateTime |
getCreated()
Time the experiment was created.
|
String |
getDescription()
Notes about this experiment.
|
Object |
getEditableInGaUi()
If true, the end user will be able to edit the experiment via the Google Analytics user
interface.
|
DateTime |
getEndTime()
The ending time of the experiment (the time the status changed from RUNNING to ENDED).
|
String |
getId()
Experiment ID.
|
String |
getInternalWebPropertyId()
Internal ID for the web property to which this experiment belongs.
|
String |
getKind()
Resource type for an Analytics experiment.
|
Integer |
getMinimumExperimentLengthInDays()
Specifies the minimum length of the experiment.
|
String |
getName()
Experiment name.
|
String |
getObjectiveMetric()
The metric that the experiment is optimizing.
|
String |
getOptimizationType()
Whether the objectiveMetric should be minimized or maximized.
|
Experiment.ParentLink |
getParentLink()
Parent link for an experiment.
|
String |
getProfileId()
Profile ID to which this experiment belongs.
|
String |
getReasonExperimentEnded()
Why the experiment ended.
|
Boolean |
getRewriteVariationUrlsAsOriginal()
Boolean specifying whether variations URLS are rewritten to match those of the original.
|
String |
getSelfLink()
Link for this experiment.
|
Object |
getServingFramework()
The framework used to serve the experiment variations and evaluate the results.
|
String |
getSnippet()
The snippet of code to include on the control page(s).
|
DateTime |
getStartTime()
The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING).
|
String |
getStatus()
Experiment status.
|
Double |
getTrafficCoverage()
A floating-point number between 0 and 1.
|
DateTime |
getUpdated()
Time the experiment was last modified.
|
List<Experiment.Variations> |
getVariations()
Array of variations.
|
String |
getWebPropertyId()
Web property ID to which this experiment belongs.
|
Double |
getWinnerConfidenceLevel()
A floating-point number between 0 and 1.
|
Boolean |
getWinnerFound()
Boolean specifying whether a winner has been found for this experiment.
|
Experiment |
setAccountId(String accountId)
Account ID to which this experiment belongs.
|
Experiment |
setCreated(DateTime created)
Time the experiment was created.
|
Experiment |
setDescription(String description)
Notes about this experiment.
|
Experiment |
setEditableInGaUi(Object editableInGaUi)
If true, the end user will be able to edit the experiment via the Google Analytics user
interface.
|
Experiment |
setEndTime(DateTime endTime)
The ending time of the experiment (the time the status changed from RUNNING to ENDED).
|
Experiment |
setId(String id)
Experiment ID.
|
Experiment |
setInternalWebPropertyId(String internalWebPropertyId)
Internal ID for the web property to which this experiment belongs.
|
Experiment |
setKind(String kind)
Resource type for an Analytics experiment.
|
Experiment |
setMinimumExperimentLengthInDays(Integer minimumExperimentLengthInDays)
Specifies the minimum length of the experiment.
|
Experiment |
setName(String name)
Experiment name.
|
Experiment |
setObjectiveMetric(String objectiveMetric)
The metric that the experiment is optimizing.
|
Experiment |
setOptimizationType(String optimizationType)
Whether the objectiveMetric should be minimized or maximized.
|
Experiment |
setParentLink(Experiment.ParentLink parentLink)
Parent link for an experiment.
|
Experiment |
setProfileId(String profileId)
Profile ID to which this experiment belongs.
|
Experiment |
setReasonExperimentEnded(String reasonExperimentEnded)
Why the experiment ended.
|
Experiment |
setRewriteVariationUrlsAsOriginal(Boolean rewriteVariationUrlsAsOriginal)
Boolean specifying whether variations URLS are rewritten to match those of the original.
|
Experiment |
setSelfLink(String selfLink)
Link for this experiment.
|
Experiment |
setServingFramework(Object servingFramework)
The framework used to serve the experiment variations and evaluate the results.
|
Experiment |
setSnippet(String snippet)
The snippet of code to include on the control page(s).
|
Experiment |
setStartTime(DateTime startTime)
The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING).
|
Experiment |
setStatus(String status)
Experiment status.
|
Experiment |
setTrafficCoverage(Double trafficCoverage)
A floating-point number between 0 and 1.
|
Experiment |
setUpdated(DateTime updated)
Time the experiment was last modified.
|
Experiment |
setVariations(List<Experiment.Variations> variations)
Array of variations.
|
Experiment |
setWebPropertyId(String webPropertyId)
Web property ID to which this experiment belongs.
|
Experiment |
setWinnerConfidenceLevel(Double winnerConfidenceLevel)
A floating-point number between 0 and 1.
|
Experiment |
setWinnerFound(Boolean winnerFound)
Boolean specifying whether a winner has been found for this experiment.
|
clone, getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getAccountId()
null.public Experiment setAccountId(String accountId)
null.public DateTime getCreated()
null.public Experiment setCreated(DateTime created)
null.public String getDescription()
null.public Experiment setDescription(String description)
null.public Object getEditableInGaUi()
null.public Experiment setEditableInGaUi(Object editableInGaUi)
null.public DateTime getEndTime()
null.public Experiment setEndTime(DateTime endTime)
null.public String getId()
null.public Experiment setId(String id)
null.public String getInternalWebPropertyId()
null.public Experiment setInternalWebPropertyId(String internalWebPropertyId)
null.public String getKind()
null.public Experiment setKind(String kind)
null.public Integer getMinimumExperimentLengthInDays()
null.public Experiment setMinimumExperimentLengthInDays(Integer minimumExperimentLengthInDays)
null.public String getName()
null.public Experiment setName(String name)
null.public String getObjectiveMetric()
null.public Experiment setObjectiveMetric(String objectiveMetric)
null.public String getOptimizationType()
null.public Experiment setOptimizationType(String optimizationType)
null.public Experiment.ParentLink getParentLink()
null.public Experiment setParentLink(Experiment.ParentLink parentLink)
null.public String getProfileId()
null.public Experiment setProfileId(String profileId)
null.public String getReasonExperimentEnded()
null.public Experiment setReasonExperimentEnded(String reasonExperimentEnded)
null.public Boolean getRewriteVariationUrlsAsOriginal()
null.public Experiment setRewriteVariationUrlsAsOriginal(Boolean rewriteVariationUrlsAsOriginal)
null.public String getSelfLink()
null.public Experiment setSelfLink(String selfLink)
null.public Object getServingFramework()
null.public Experiment setServingFramework(Object servingFramework)
null.public String getSnippet()
null.public Experiment setSnippet(String snippet)
null.public DateTime getStartTime()
null.public Experiment setStartTime(DateTime startTime)
null.public String getStatus()
null.public Experiment setStatus(String status)
null.public Double getTrafficCoverage()
null.public Experiment setTrafficCoverage(Double trafficCoverage)
null.public DateTime getUpdated()
null.public Experiment setUpdated(DateTime updated)
null.public List<Experiment.Variations> getVariations()
null.public Experiment setVariations(List<Experiment.Variations> variations)
null.public String getWebPropertyId()
null.public Experiment setWebPropertyId(String webPropertyId)
null.public Double getWinnerConfidenceLevel()
null.public Experiment setWinnerConfidenceLevel(Double winnerConfidenceLevel)
null.public Boolean getWinnerFound()
null.public Experiment setWinnerFound(Boolean winnerFound)
null.