pub struct CampaignSimulation {
pub resource_name: String,
pub campaign_id: i64,
pub type: i32,
pub modification_method: i32,
pub start_date: String,
pub end_date: String,
pub point_list: Option<PointList>,
}
Expand description
A campaign simulation. Supported combinations of advertising channel type, simulation type and simulation modification method is detailed below respectively.
- SEARCH - CPC_BID - UNIFORM
- SEARCH - CPC_BID - SCALING
- SEARCH - TARGET_CPA - UNIFORM
- SEARCH - TARGET_CPA - SCALING
- SEARCH - TARGET_ROAS - UNIFORM
- SEARCH - TARGET_IMPRESSION_SHARE - UNIFORM
- SEARCH - BUDGET - UNIFORM
- SHOPPING - BUDGET - UNIFORM
- SHOPPING - TARGET_ROAS - UNIFORM
- MULTI_CHANNEL - TARGET_CPA - UNIFORM
- MULTI_CHANNEL - TARGET_ROAS - UNIFORM
- DISCOVERY - TARGET_CPA - DEFAULT
- DISPLAY - TARGET_CPA - UNIFORM
- PERFORMANCE_MAX - TARGET_CPA - UNIFORM
- PERFORMANCE_MAX - TARGET_ROAS - UNIFORM
- PERFORMANCE_MAX - BUDGET - UNIFORM
Fields§
§resource_name: String
Output only. The resource name of the campaign simulation. Campaign simulation resource names have the form:
customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}
campaign_id: i64
Output only. Campaign id of the simulation.
type: i32
Output only. The field that the simulation modifies.
modification_method: i32
Output only. How the simulation modifies the field.
start_date: String
Output only. First day on which the simulation is based, in YYYY-MM-DD format.
end_date: String
Output only. Last day on which the simulation is based, in YYYY-MM-DD format
point_list: Option<PointList>
List of simulation points.
Implementations§
Source§impl CampaignSimulation
impl CampaignSimulation
Sourcepub fn type(&self) -> SimulationType
pub fn type(&self) -> SimulationType
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: SimulationType)
pub fn set_type(&mut self, value: SimulationType)
Sets type
to the provided enum value.
Sourcepub fn modification_method(&self) -> SimulationModificationMethod
pub fn modification_method(&self) -> SimulationModificationMethod
Returns the enum value of modification_method
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_modification_method(&mut self, value: SimulationModificationMethod)
pub fn set_modification_method(&mut self, value: SimulationModificationMethod)
Sets modification_method
to the provided enum value.
Trait Implementations§
Source§impl Clone for CampaignSimulation
impl Clone for CampaignSimulation
Source§fn clone(&self) -> CampaignSimulation
fn clone(&self) -> CampaignSimulation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CampaignSimulation
impl Debug for CampaignSimulation
Source§impl Default for CampaignSimulation
impl Default for CampaignSimulation
Source§impl Message for CampaignSimulation
impl Message for CampaignSimulation
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 CampaignSimulation
impl PartialEq for CampaignSimulation
impl StructuralPartialEq for CampaignSimulation
Auto Trait Implementations§
impl Freeze for CampaignSimulation
impl RefUnwindSafe for CampaignSimulation
impl Send for CampaignSimulation
impl Sync for CampaignSimulation
impl Unpin for CampaignSimulation
impl UnwindSafe for CampaignSimulation
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