analytics
v3
|
#include <experiment.h>
Classes | |
class | ExperimentParentLink |
class | ExperimentVariations |
Public Member Functions | |
Experiment (const Json::Value &storage) | |
Experiment (Json::Value *storage) | |
virtual | ~Experiment () |
const StringPiece | GetTypeName () const |
bool | has_account_id () const |
void | clear_account_id () |
const StringPiece | get_account_id () const |
void | set_account_id (const StringPiece &value) |
bool | has_created () const |
void | clear_created () |
client::DateTime | get_created () const |
void | set_created (client::DateTime value) |
bool | has_description () const |
void | clear_description () |
const StringPiece | get_description () const |
void | set_description (const StringPiece &value) |
bool | has_editable_in_ga_ui () const |
void | clear_editable_in_ga_ui () |
bool | get_editable_in_ga_ui () const |
void | set_editable_in_ga_ui (bool value) |
bool | has_end_time () const |
void | clear_end_time () |
client::DateTime | get_end_time () const |
void | set_end_time (client::DateTime value) |
bool | has_equal_weighting () const |
void | clear_equal_weighting () |
bool | get_equal_weighting () const |
void | set_equal_weighting (bool value) |
bool | has_id () const |
void | clear_id () |
const StringPiece | get_id () const |
void | set_id (const StringPiece &value) |
bool | has_internal_web_property_id () const |
void | clear_internal_web_property_id () |
const StringPiece | get_internal_web_property_id () const |
void | set_internal_web_property_id (const StringPiece &value) |
bool | has_kind () const |
void | clear_kind () |
const StringPiece | get_kind () const |
void | set_kind (const StringPiece &value) |
bool | has_minimum_experiment_length_in_days () const |
void | clear_minimum_experiment_length_in_days () |
int32 | get_minimum_experiment_length_in_days () const |
void | set_minimum_experiment_length_in_days (int32 value) |
bool | has_name () const |
void | clear_name () |
const StringPiece | get_name () const |
void | set_name (const StringPiece &value) |
bool | has_objective_metric () const |
void | clear_objective_metric () |
const StringPiece | get_objective_metric () const |
void | set_objective_metric (const StringPiece &value) |
bool | has_optimization_type () const |
void | clear_optimization_type () |
const StringPiece | get_optimization_type () const |
void | set_optimization_type (const StringPiece &value) |
bool | has_parent_link () const |
void | clear_parent_link () |
const ExperimentParentLink | get_parent_link () const |
ExperimentParentLink | mutable_parentLink () |
bool | has_profile_id () const |
void | clear_profile_id () |
const StringPiece | get_profile_id () const |
void | set_profile_id (const StringPiece &value) |
bool | has_reason_experiment_ended () const |
void | clear_reason_experiment_ended () |
const StringPiece | get_reason_experiment_ended () const |
void | set_reason_experiment_ended (const StringPiece &value) |
bool | has_rewrite_variation_urls_as_original () const |
void | clear_rewrite_variation_urls_as_original () |
bool | get_rewrite_variation_urls_as_original () const |
void | set_rewrite_variation_urls_as_original (bool value) |
bool | has_self_link () const |
void | clear_self_link () |
const StringPiece | get_self_link () const |
void | set_self_link (const StringPiece &value) |
bool | has_serving_framework () const |
void | clear_serving_framework () |
const StringPiece | get_serving_framework () const |
void | set_serving_framework (const StringPiece &value) |
bool | has_snippet () const |
void | clear_snippet () |
const StringPiece | get_snippet () const |
void | set_snippet (const StringPiece &value) |
bool | has_start_time () const |
void | clear_start_time () |
client::DateTime | get_start_time () const |
void | set_start_time (client::DateTime value) |
bool | has_status () const |
void | clear_status () |
const StringPiece | get_status () const |
void | set_status (const StringPiece &value) |
bool | has_traffic_coverage () const |
void | clear_traffic_coverage () |
double | get_traffic_coverage () const |
void | set_traffic_coverage (double value) |
bool | has_updated () const |
void | clear_updated () |
client::DateTime | get_updated () const |
void | set_updated (client::DateTime value) |
bool | has_variations () const |
void | clear_variations () |
const client::JsonCppArray< ExperimentVariations > | get_variations () const |
client::JsonCppArray< ExperimentVariations > | mutable_variations () |
bool | has_web_property_id () const |
void | clear_web_property_id () |
const StringPiece | get_web_property_id () const |
void | set_web_property_id (const StringPiece &value) |
bool | has_winner_confidence_level () const |
void | clear_winner_confidence_level () |
double | get_winner_confidence_level () const |
void | set_winner_confidence_level (double value) |
bool | has_winner_found () const |
void | clear_winner_found () |
bool | get_winner_found () const |
void | set_winner_found (bool value) |
Static Public Member Functions | |
static Experiment * | New () |
JSON template for Analytics experiment resource.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'accountId
' attribute.
|
inline |
Clears the 'created
' attribute.
|
inline |
Clears the 'description
' attribute.
|
inline |
Clears the 'editableInGaUi
' attribute.
|
inline |
Clears the 'endTime
' attribute.
|
inline |
Clears the 'equalWeighting
' attribute.
|
inline |
Clears the 'id
' attribute.
|
inline |
Clears the 'internalWebPropertyId
' attribute.
|
inline |
Clears the 'kind
' attribute.
|
inline |
Clears the 'minimumExperimentLengthInDays
' attribute.
|
inline |
Clears the 'name
' attribute.
|
inline |
Clears the 'objectiveMetric
' attribute.
|
inline |
Clears the 'optimizationType
' attribute.
|
inline |
Clears the 'parentLink
' attribute.
|
inline |
Clears the 'profileId
' attribute.
|
inline |
Clears the 'reasonExperimentEnded
' attribute.
|
inline |
Clears the 'rewriteVariationUrlsAsOriginal
' attribute.
|
inline |
Clears the 'selfLink
' attribute.
|
inline |
Clears the 'servingFramework
' attribute.
|
inline |
Clears the 'snippet
' attribute.
|
inline |
Clears the 'startTime
' attribute.
|
inline |
Clears the 'status
' attribute.
|
inline |
Clears the 'trafficCoverage
' attribute.
|
inline |
Clears the 'updated
' attribute.
|
inline |
Clears the 'variations
' attribute.
|
inline |
Clears the 'webPropertyId
' attribute.
|
inline |
Clears the 'winnerConfidenceLevel
' attribute.
|
inline |
Clears the 'winnerFound
' attribute.
|
inline |
Get the value of the 'accountId
' attribute.
|
inline |
Get the value of the 'created
' attribute.
|
inline |
Get the value of the 'description
' attribute.
|
inline |
Get the value of the 'editableInGaUi
' attribute.
|
inline |
Get the value of the 'endTime
' attribute.
|
inline |
Get the value of the 'equalWeighting
' attribute.
|
inline |
Get the value of the 'id
' attribute.
|
inline |
Get the value of the 'internalWebPropertyId
' attribute.
|
inline |
Get the value of the 'kind
' attribute.
|
inline |
Get the value of the 'minimumExperimentLengthInDays
' attribute.
|
inline |
Get the value of the 'name
' attribute.
|
inline |
Get the value of the 'objectiveMetric
' attribute.
|
inline |
Get the value of the 'optimizationType
' attribute.
|
inline |
Get a reference to the value of the 'parentLink
' attribute.
|
inline |
Get the value of the 'profileId
' attribute.
|
inline |
Get the value of the 'reasonExperimentEnded
' attribute.
|
inline |
Get the value of the 'rewriteVariationUrlsAsOriginal
' attribute.
|
inline |
Get the value of the 'selfLink
' attribute.
|
inline |
Get the value of the 'servingFramework
' attribute.
|
inline |
Get the value of the 'snippet
' attribute.
|
inline |
Get the value of the 'startTime
' attribute.
|
inline |
Get the value of the 'status
' attribute.
|
inline |
Get the value of the 'trafficCoverage
' attribute.
|
inline |
Get the value of the 'updated
' attribute.
|
inline |
Get a reference to the value of the 'variations
' attribute.
|
inline |
Get the value of the 'webPropertyId
' attribute.
|
inline |
Get the value of the 'winnerConfidenceLevel
' attribute.
|
inline |
Get the value of the 'winnerFound
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'accountId
' attribute was set.
accountId
' attribute was set.
|
inline |
Determine if the 'created
' attribute was set.
created
' attribute was set.
|
inline |
Determine if the 'description
' attribute was set.
description
' attribute was set.
|
inline |
Determine if the 'editableInGaUi
' attribute was set.
editableInGaUi
' attribute was set.
|
inline |
Determine if the 'endTime
' attribute was set.
endTime
' attribute was set.
|
inline |
Determine if the 'equalWeighting
' attribute was set.
equalWeighting
' attribute was set.
|
inline |
Determine if the 'id
' attribute was set.
id
' attribute was set.
|
inline |
Determine if the 'internalWebPropertyId
' attribute was set.
internalWebPropertyId
' attribute was set.
|
inline |
Determine if the 'kind
' attribute was set.
kind
' attribute was set.
|
inline |
Determine if the 'minimumExperimentLengthInDays
' attribute was set.
minimumExperimentLengthInDays
' attribute was set.
|
inline |
Determine if the 'name
' attribute was set.
name
' attribute was set.
|
inline |
Determine if the 'objectiveMetric
' attribute was set.
objectiveMetric
' attribute was set.
|
inline |
Determine if the 'optimizationType
' attribute was set.
optimizationType
' attribute was set.
|
inline |
Determine if the 'parentLink
' attribute was set.
parentLink
' attribute was set.
|
inline |
Determine if the 'profileId
' attribute was set.
profileId
' attribute was set.
|
inline |
Determine if the 'reasonExperimentEnded
' attribute was set.
reasonExperimentEnded
' attribute was set.
|
inline |
Determine if the 'rewriteVariationUrlsAsOriginal
' attribute was set.
rewriteVariationUrlsAsOriginal
' attribute was set.
|
inline |
Determine if the 'selfLink
' attribute was set.
selfLink
' attribute was set.
|
inline |
Determine if the 'servingFramework
' attribute was set.
servingFramework
' attribute was set.
|
inline |
Determine if the 'snippet
' attribute was set.
snippet
' attribute was set.
|
inline |
Determine if the 'startTime
' attribute was set.
startTime
' attribute was set.
|
inline |
Determine if the 'status
' attribute was set.
status
' attribute was set.
|
inline |
Determine if the 'trafficCoverage
' attribute was set.
trafficCoverage
' attribute was set.
|
inline |
Determine if the 'updated
' attribute was set.
updated
' attribute was set.
|
inline |
Determine if the 'variations
' attribute was set.
variations
' attribute was set.
|
inline |
Determine if the 'webPropertyId
' attribute was set.
webPropertyId
' attribute was set.
|
inline |
Determine if the 'winnerConfidenceLevel
' attribute was set.
winnerConfidenceLevel
' attribute was set.
|
inline |
Determine if the 'winnerFound
' attribute was set.
winnerFound
' attribute was set.
|
inline |
Gets a reference to a mutable value of the 'parentLink
' property.
Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
|
inline |
Gets a reference to a mutable value of the 'variations
' property.
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.
|
static |
Creates a new default instance.
|
inline |
Change the 'accountId
' attribute.
Account ID to which this experiment belongs. This field is read-only.
[in] | value | The new value. |
|
inline |
Change the 'created
' attribute.
Time the experiment was created. This field is read-only.
[in] | value | The new value. |
|
inline |
Change the 'description
' attribute.
Notes about this experiment.
[in] | value | The new value. |
|
inline |
Change the 'editableInGaUi
' attribute.
If true, the end user will be able to edit the experiment via the Google Analytics user interface.
[in] | value | The new value. |
|
inline |
Change the 'endTime
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'equalWeighting
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'id
' attribute.
Experiment ID. Required for patch and update. Disallowed for create.
[in] | value | The new value. |
|
inline |
Change the 'internalWebPropertyId
' attribute.
Internal ID for the web property to which this experiment belongs. This field is read-only.
[in] | value | The new value. |
|
inline |
Change the 'kind
' attribute.
Resource type for an Analytics experiment. This field is read-only.
[in] | value | The new value. |
|
inline |
Change the 'minimumExperimentLengthInDays
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'name
' attribute.
Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.
[in] | value | The new value. |
|
inline |
Change the 'objectiveMetric
' attribute.
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".
[in] | value | The new value. |
|
inline |
Change the 'optimizationType
' attribute.
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".
[in] | value | The new value. |
|
inline |
Change the 'profileId
' attribute.
View (Profile) ID to which this experiment belongs. This field is read- only.
[in] | value | The new value. |
|
inline |
Change the 'reasonExperimentEnded
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'rewriteVariationUrlsAsOriginal
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'selfLink
' attribute.
Link for this experiment. This field is read-only.
[in] | value | The new value. |
|
inline |
Change the 'servingFramework
' attribute.
The framework used to serve the experiment variations and evaluate the results. One of:
The caller is responsible for serving the selected variation and evaluating the results.
[in] | value | The new value. |
|
inline |
Change the 'snippet
' attribute.
The snippet of code to include on the control page(s). This field is read- only.
[in] | value | The new value. |
|
inline |
Change the 'startTime
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'status
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'trafficCoverage
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'updated
' attribute.
Time the experiment was last modified. This field is read-only.
[in] | value | The new value. |
|
inline |
Change the 'webPropertyId
' attribute.
Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
[in] | value | The new value. |
|
inline |
Change the 'winnerConfidenceLevel
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'winnerFound
' attribute.
Boolean specifying whether a winner has been found for this experiment. This field is read-only.
[in] | value | The new value. |