Struct google_api_proto::google::ads::googleads::v17::resources::CampaignBidModifier
source · pub struct CampaignBidModifier {
pub resource_name: String,
pub campaign: Option<String>,
pub criterion_id: Option<i64>,
pub bid_modifier: Option<f64>,
pub criterion: Option<Criterion>,
}
Expand description
Represents a bid-modifiable only criterion at the campaign level.
Fields§
§resource_name: String
Immutable. The resource name of the campaign bid modifier. Campaign bid modifier resource names have the form:
customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}
campaign: Option<String>
Output only. The campaign to which this criterion belongs.
criterion_id: Option<i64>
Output only. The ID of the criterion to bid modify.
This field is ignored for mutates.
bid_modifier: Option<f64>
The modifier for the bid when the criterion matches.
criterion: Option<Criterion>
The criterion of this campaign bid modifier.
Required in create operations starting in V5.
Implementations§
source§impl CampaignBidModifier
impl CampaignBidModifier
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) -> f64
pub fn bid_modifier(&self) -> f64
Returns the value of bid_modifier
, or the default value if bid_modifier
is unset.
Trait Implementations§
source§impl Clone for CampaignBidModifier
impl Clone for CampaignBidModifier
source§fn clone(&self) -> CampaignBidModifier
fn clone(&self) -> CampaignBidModifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignBidModifier
impl Debug for CampaignBidModifier
source§impl Default for CampaignBidModifier
impl Default for CampaignBidModifier
source§impl Message for CampaignBidModifier
impl Message for CampaignBidModifier
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 CampaignBidModifier
impl PartialEq for CampaignBidModifier
source§fn eq(&self, other: &CampaignBidModifier) -> bool
fn eq(&self, other: &CampaignBidModifier) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CampaignBidModifier
Auto Trait Implementations§
impl Freeze for CampaignBidModifier
impl RefUnwindSafe for CampaignBidModifier
impl Send for CampaignBidModifier
impl Sync for CampaignBidModifier
impl Unpin for CampaignBidModifier
impl UnwindSafe for CampaignBidModifier
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