Struct google_api_proto::google::ads::googleads::v17::resources::CampaignCriterion
source · pub struct CampaignCriterion {
pub resource_name: String,
pub campaign: Option<String>,
pub criterion_id: Option<i64>,
pub display_name: String,
pub bid_modifier: Option<f32>,
pub negative: Option<bool>,
pub type: i32,
pub status: i32,
pub criterion: Option<Criterion>,
}
Expand description
A campaign criterion.
Fields§
§resource_name: String
Immutable. The resource name of the campaign criterion. Campaign criterion resource names have the form:
customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}
campaign: Option<String>
Immutable. The campaign to which the criterion belongs.
criterion_id: Option<i64>
Output only. The ID of the criterion.
This field is ignored during mutate.
display_name: String
Output only. The display name of the criterion.
This field is ignored for mutates.
bid_modifier: Option<f32>
The modifier for the bids when the criterion matches. The modifier must be in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. Use 0 to opt out of a Device type.
negative: Option<bool>
Immutable. Whether to target (false
) or exclude (true
) the criterion.
type: i32
Output only. The type of the criterion.
status: i32
The status of the criterion.
criterion: Option<Criterion>
The campaign criterion.
Exactly one must be set.
Implementations§
source§impl CampaignCriterion
impl CampaignCriterion
sourcepub fn type(&self) -> CriterionType
pub fn type(&self) -> CriterionType
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: CriterionType)
pub fn set_type(&mut self, value: CriterionType)
Sets type
to the provided enum value.
sourcepub fn status(&self) -> CampaignCriterionStatus
pub fn status(&self) -> CampaignCriterionStatus
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: CampaignCriterionStatus)
pub fn set_status(&mut self, value: CampaignCriterionStatus)
Sets status
to the provided enum value.
sourcepub fn campaign(&self) -> &str
pub fn campaign(&self) -> &str
Returns the value of campaign
, or the default value if campaign
is unset.
sourcepub fn criterion_id(&self) -> i64
pub fn criterion_id(&self) -> i64
Returns the value of criterion_id
, or the default value if criterion_id
is unset.
sourcepub fn bid_modifier(&self) -> f32
pub fn bid_modifier(&self) -> f32
Returns the value of bid_modifier
, or the default value if bid_modifier
is unset.
Trait Implementations§
source§impl Clone for CampaignCriterion
impl Clone for CampaignCriterion
source§fn clone(&self) -> CampaignCriterion
fn clone(&self) -> CampaignCriterion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignCriterion
impl Debug for CampaignCriterion
source§impl Default for CampaignCriterion
impl Default for CampaignCriterion
source§impl Message for CampaignCriterion
impl Message for CampaignCriterion
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 CampaignCriterion
impl PartialEq for CampaignCriterion
source§fn eq(&self, other: &CampaignCriterion) -> bool
fn eq(&self, other: &CampaignCriterion) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CampaignCriterion
Auto Trait Implementations§
impl Freeze for CampaignCriterion
impl RefUnwindSafe for CampaignCriterion
impl Send for CampaignCriterion
impl Sync for CampaignCriterion
impl Unpin for CampaignCriterion
impl UnwindSafe for CampaignCriterion
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