pub struct Experiment {Show 13 fields
pub resource_name: String,
pub experiment_id: i64,
pub name: String,
pub description: String,
pub suffix: String,
pub type: i32,
pub status: i32,
pub start_date: String,
pub end_date: String,
pub goals: Vec<MetricGoal>,
pub long_running_operation: String,
pub promote_status: i32,
pub sync_enabled: bool,
}
Expand description
A Google ads experiment for users to experiment changes on multiple campaigns, compare the performance, and apply the effective changes.
Fields§
§resource_name: String
Immutable. The resource name of the experiment. Experiment resource names have the form:
customers/{customer_id}/experiments/{experiment_id}
experiment_id: i64
Output only. The ID of the experiment. Read only.
name: String
Required. The name of the experiment. It must have a minimum length of 1 and maximum length of 1024. It must be unique under a customer.
description: String
The description of the experiment. It must have a minimum length of 1 and maximum length of 2048.
suffix: String
For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated. The suffix will be appended to the in-design and experiment campaign names so that the name is base campaign name + suffix.
type: i32
Required. The product/feature that uses this experiment.
status: i32
The Advertiser-chosen status of this experiment.
start_date: String
Date when the experiment starts. By default, the experiment starts now or on the campaign’s start date, whichever is later. If this field is set, then the experiment starts at the beginning of the specified date in the customer’s time zone.
Format: YYYY-MM-DD Example: 2019-03-14
end_date: String
Date when the experiment ends. By default, the experiment ends on the campaign’s end date. If this field is set, then the experiment ends at the end of the specified date in the customer’s time zone.
Format: YYYY-MM-DD Example: 2019-04-18
goals: Vec<MetricGoal>
The goals of this experiment.
long_running_operation: String
Output only. The resource name of the long-running operation that can be used to poll for completion of experiment schedule or promote. The most recent long running operation is returned.
promote_status: i32
Output only. The status of the experiment promotion process.
sync_enabled: bool
Immutable. Set to true if changes to base campaigns should be synced to the trial campaigns. Any changes made directly to trial campaigns will be preserved. This field can only be set when the experiment is being created.
Implementations§
Source§impl Experiment
impl Experiment
Sourcepub fn type(&self) -> ExperimentType
pub fn type(&self) -> ExperimentType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: ExperimentType)
pub fn set_type(&mut self, value: ExperimentType)
Sets type
to the provided enum value.
Sourcepub fn status(&self) -> ExperimentStatus
pub fn status(&self) -> ExperimentStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: ExperimentStatus)
pub fn set_status(&mut self, value: ExperimentStatus)
Sets status
to the provided enum value.
Sourcepub fn promote_status(&self) -> AsyncActionStatus
pub fn promote_status(&self) -> AsyncActionStatus
Returns the enum value of promote_status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_promote_status(&mut self, value: AsyncActionStatus)
pub fn set_promote_status(&mut self, value: AsyncActionStatus)
Sets promote_status
to the provided enum value.
Trait Implementations§
Source§impl Clone for Experiment
impl Clone for Experiment
Source§fn clone(&self) -> Experiment
fn clone(&self) -> Experiment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Experiment
impl Debug for Experiment
Source§impl Default for Experiment
impl Default for Experiment
Source§impl Message for Experiment
impl Message for Experiment
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for Experiment
impl PartialEq for Experiment
impl StructuralPartialEq for Experiment
Auto Trait Implementations§
impl Freeze for Experiment
impl RefUnwindSafe for Experiment
impl Send for Experiment
impl Sync for Experiment
impl Unpin for Experiment
impl UnwindSafe for Experiment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request