pub struct CampaignCriterion {
pub resource_name: String,
pub campaign: String,
pub criterion_id: i64,
pub display_name: String,
pub bid_modifier: f32,
pub negative: 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: String
Immutable. The campaign to which the criterion belongs.
criterion_id: 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: 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: 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.
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<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 CampaignCriterion
impl PartialEq for CampaignCriterion
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
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