public final class Experiment
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Experiment.ParentLink
Parent link for an experiment.
|
static class |
Experiment.Variations
Model definition for ExperimentVariations.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Experiment() |
| Modifier and Type | Method and Description |
|---|---|
Experiment |
clone() |
java.lang.String |
getAccountId()
Account ID to which this experiment belongs.
|
com.google.api.client.util.DateTime |
getCreated()
Time the experiment was created.
|
java.lang.String |
getDescription()
Notes about this experiment.
|
java.lang.Boolean |
getEditableInGaUi()
If true, the end user will be able to edit the experiment via the Google Analytics user
interface.
|
com.google.api.client.util.DateTime |
getEndTime()
The ending time of the experiment (the time the status changed from RUNNING to ENDED).
|
java.lang.Boolean |
getEqualWeighting()
Boolean specifying whether to distribute traffic evenly across all variations.
|
java.lang.String |
getId()
Experiment ID.
|
java.lang.String |
getInternalWebPropertyId()
Internal ID for the web property to which this experiment belongs.
|
java.lang.String |
getKind()
Resource type for an Analytics experiment.
|
java.lang.Integer |
getMinimumExperimentLengthInDays()
An integer number in [3, 90].
|
java.lang.String |
getName()
Experiment name.
|
java.lang.String |
getObjectiveMetric()
The metric that the experiment is optimizing.
|
java.lang.String |
getOptimizationType()
Whether the objectiveMetric should be minimized or maximized.
|
Experiment.ParentLink |
getParentLink()
Parent link for an experiment.
|
java.lang.String |
getProfileId()
View (Profile) ID to which this experiment belongs.
|
java.lang.String |
getReasonExperimentEnded()
Why the experiment ended.
|
java.lang.Boolean |
getRewriteVariationUrlsAsOriginal()
Boolean specifying whether variations URLS are rewritten to match those of the original.
|
java.lang.String |
getSelfLink()
Link for this experiment.
|
java.lang.String |
getServingFramework()
The framework used to serve the experiment variations and evaluate the results.
|
java.lang.String |
getSnippet()
The snippet of code to include on the control page(s).
|
com.google.api.client.util.DateTime |
getStartTime()
The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING).
|
java.lang.String |
getStatus()
Experiment status.
|
java.lang.Double |
getTrafficCoverage()
A floating-point number in (0, 1].
|
com.google.api.client.util.DateTime |
getUpdated()
Time the experiment was last modified.
|
java.util.List<Experiment.Variations> |
getVariations()
Array of variations.
|
java.lang.String |
getWebPropertyId()
Web property ID to which this experiment belongs.
|
java.lang.Double |
getWinnerConfidenceLevel()
A floating-point number in (0, 1).
|
java.lang.Boolean |
getWinnerFound()
Boolean specifying whether a winner has been found for this experiment.
|
Experiment |
set(java.lang.String fieldName,
java.lang.Object value) |
Experiment |
setAccountId(java.lang.String accountId)
Account ID to which this experiment belongs.
|
Experiment |
setCreated(com.google.api.client.util.DateTime created)
Time the experiment was created.
|
Experiment |
setDescription(java.lang.String description)
Notes about this experiment.
|
Experiment |
setEditableInGaUi(java.lang.Boolean editableInGaUi)
If true, the end user will be able to edit the experiment via the Google Analytics user
interface.
|
Experiment |
setEndTime(com.google.api.client.util.DateTime endTime)
The ending time of the experiment (the time the status changed from RUNNING to ENDED).
|
Experiment |
setEqualWeighting(java.lang.Boolean equalWeighting)
Boolean specifying whether to distribute traffic evenly across all variations.
|
Experiment |
setId(java.lang.String id)
Experiment ID.
|
Experiment |
setInternalWebPropertyId(java.lang.String internalWebPropertyId)
Internal ID for the web property to which this experiment belongs.
|
Experiment |
setKind(java.lang.String kind)
Resource type for an Analytics experiment.
|
Experiment |
setMinimumExperimentLengthInDays(java.lang.Integer minimumExperimentLengthInDays)
An integer number in [3, 90].
|
Experiment |
setName(java.lang.String name)
Experiment name.
|
Experiment |
setObjectiveMetric(java.lang.String objectiveMetric)
The metric that the experiment is optimizing.
|
Experiment |
setOptimizationType(java.lang.String optimizationType)
Whether the objectiveMetric should be minimized or maximized.
|
Experiment |
setParentLink(Experiment.ParentLink parentLink)
Parent link for an experiment.
|
Experiment |
setProfileId(java.lang.String profileId)
View (Profile) ID to which this experiment belongs.
|
Experiment |
setReasonExperimentEnded(java.lang.String reasonExperimentEnded)
Why the experiment ended.
|
Experiment |
setRewriteVariationUrlsAsOriginal(java.lang.Boolean rewriteVariationUrlsAsOriginal)
Boolean specifying whether variations URLS are rewritten to match those of the original.
|
Experiment |
setSelfLink(java.lang.String selfLink)
Link for this experiment.
|
Experiment |
setServingFramework(java.lang.String servingFramework)
The framework used to serve the experiment variations and evaluate the results.
|
Experiment |
setSnippet(java.lang.String snippet)
The snippet of code to include on the control page(s).
|
Experiment |
setStartTime(com.google.api.client.util.DateTime startTime)
The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING).
|
Experiment |
setStatus(java.lang.String status)
Experiment status.
|
Experiment |
setTrafficCoverage(java.lang.Double trafficCoverage)
A floating-point number in (0, 1].
|
Experiment |
setUpdated(com.google.api.client.util.DateTime updated)
Time the experiment was last modified.
|
Experiment |
setVariations(java.util.List<Experiment.Variations> variations)
Array of variations.
|
Experiment |
setWebPropertyId(java.lang.String webPropertyId)
Web property ID to which this experiment belongs.
|
Experiment |
setWinnerConfidenceLevel(java.lang.Double winnerConfidenceLevel)
A floating-point number in (0, 1).
|
Experiment |
setWinnerFound(java.lang.Boolean winnerFound)
Boolean specifying whether a winner has been found for this experiment.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getAccountId()
null for nonepublic Experiment setAccountId(java.lang.String accountId)
accountId - accountId or null for nonepublic com.google.api.client.util.DateTime getCreated()
null for nonepublic Experiment setCreated(com.google.api.client.util.DateTime created)
created - created or null for nonepublic java.lang.String getDescription()
null for nonepublic Experiment setDescription(java.lang.String description)
description - description or null for nonepublic java.lang.Boolean getEditableInGaUi()
null for nonepublic Experiment setEditableInGaUi(java.lang.Boolean editableInGaUi)
editableInGaUi - editableInGaUi or null for nonepublic com.google.api.client.util.DateTime getEndTime()
null for nonepublic Experiment setEndTime(com.google.api.client.util.DateTime endTime)
endTime - endTime or null for nonepublic java.lang.Boolean getEqualWeighting()
null for nonepublic Experiment setEqualWeighting(java.lang.Boolean equalWeighting)
equalWeighting - equalWeighting or null for nonepublic java.lang.String getId()
null for nonepublic Experiment setId(java.lang.String id)
id - id or null for nonepublic java.lang.String getInternalWebPropertyId()
null for nonepublic Experiment setInternalWebPropertyId(java.lang.String internalWebPropertyId)
internalWebPropertyId - internalWebPropertyId or null for nonepublic java.lang.String getKind()
null for nonepublic Experiment setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.Integer getMinimumExperimentLengthInDays()
null for nonepublic Experiment setMinimumExperimentLengthInDays(java.lang.Integer minimumExperimentLengthInDays)
minimumExperimentLengthInDays - minimumExperimentLengthInDays or null for nonepublic java.lang.String getName()
null for nonepublic Experiment setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getObjectiveMetric()
null for nonepublic Experiment setObjectiveMetric(java.lang.String objectiveMetric)
objectiveMetric - objectiveMetric or null for nonepublic java.lang.String getOptimizationType()
null for nonepublic Experiment setOptimizationType(java.lang.String optimizationType)
optimizationType - optimizationType or null for nonepublic Experiment.ParentLink getParentLink()
null for nonepublic Experiment setParentLink(Experiment.ParentLink parentLink)
parentLink - parentLink or null for nonepublic java.lang.String getProfileId()
null for nonepublic Experiment setProfileId(java.lang.String profileId)
profileId - profileId or null for nonepublic java.lang.String getReasonExperimentEnded()
null for nonepublic Experiment setReasonExperimentEnded(java.lang.String reasonExperimentEnded)
reasonExperimentEnded - reasonExperimentEnded or null for nonepublic java.lang.Boolean getRewriteVariationUrlsAsOriginal()
null for nonepublic Experiment setRewriteVariationUrlsAsOriginal(java.lang.Boolean rewriteVariationUrlsAsOriginal)
rewriteVariationUrlsAsOriginal - rewriteVariationUrlsAsOriginal or null for nonepublic java.lang.String getSelfLink()
null for nonepublic Experiment setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getServingFramework()
null for nonepublic Experiment setServingFramework(java.lang.String servingFramework)
servingFramework - servingFramework or null for nonepublic java.lang.String getSnippet()
null for nonepublic Experiment setSnippet(java.lang.String snippet)
snippet - snippet or null for nonepublic com.google.api.client.util.DateTime getStartTime()
null for nonepublic Experiment setStartTime(com.google.api.client.util.DateTime startTime)
startTime - startTime or null for nonepublic java.lang.String getStatus()
null for nonepublic Experiment setStatus(java.lang.String status)
status - status or null for nonepublic java.lang.Double getTrafficCoverage()
null for nonepublic Experiment setTrafficCoverage(java.lang.Double trafficCoverage)
trafficCoverage - trafficCoverage or null for nonepublic com.google.api.client.util.DateTime getUpdated()
null for nonepublic Experiment setUpdated(com.google.api.client.util.DateTime updated)
updated - updated or null for nonepublic java.util.List<Experiment.Variations> getVariations()
null for nonepublic Experiment setVariations(java.util.List<Experiment.Variations> variations)
variations - variations or null for nonepublic java.lang.String getWebPropertyId()
null for nonepublic Experiment setWebPropertyId(java.lang.String webPropertyId)
webPropertyId - webPropertyId or null for nonepublic java.lang.Double getWinnerConfidenceLevel()
null for nonepublic Experiment setWinnerConfidenceLevel(java.lang.Double winnerConfidenceLevel)
winnerConfidenceLevel - winnerConfidenceLevel or null for nonepublic java.lang.Boolean getWinnerFound()
null for nonepublic Experiment setWinnerFound(java.lang.Boolean winnerFound)
winnerFound - winnerFound or null for nonepublic Experiment set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Experiment clone()
clone in class com.google.api.client.json.GenericJson