Struct google_api_proto::google::ads::googleads::v15::resources::Experiment
source · pub struct Experiment {
pub resource_name: String,
pub experiment_id: Option<i64>,
pub name: String,
pub description: String,
pub suffix: String,
pub type: i32,
pub status: i32,
pub start_date: Option<String>,
pub end_date: Option<String>,
pub goals: Vec<MetricGoal>,
pub long_running_operation: Option<String>,
pub promote_status: i32,
}
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: Option<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: Option<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: Option<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: Option<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.
Implementations§
source§impl Experiment
impl Experiment
sourcepub fn experiment_id(&self) -> i64
pub fn experiment_id(&self) -> i64
Returns the value of experiment_id
, or the default value if experiment_id
is unset.
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 start_date(&self) -> &str
pub fn start_date(&self) -> &str
Returns the value of start_date
, or the default value if start_date
is unset.
sourcepub fn end_date(&self) -> &str
pub fn end_date(&self) -> &str
Returns the value of end_date
, or the default value if end_date
is unset.
sourcepub fn long_running_operation(&self) -> &str
pub fn long_running_operation(&self) -> &str
Returns the value of long_running_operation
, or the default value if long_running_operation
is unset.
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Experiment
impl PartialEq for Experiment
source§fn eq(&self, other: &Experiment) -> bool
fn eq(&self, other: &Experiment) -> bool
self
and other
values to be equal, and is used
by ==
.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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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