Struct google_api_proto::google::ads::googleads::v16::resources::AdGroupBidModifier
source · pub struct AdGroupBidModifier {
pub resource_name: String,
pub ad_group: Option<String>,
pub criterion_id: Option<i64>,
pub bid_modifier: Option<f64>,
pub base_ad_group: Option<String>,
pub bid_modifier_source: i32,
pub criterion: Option<Criterion>,
}
Expand description
Represents an ad group bid modifier.
Fields§
§resource_name: String
Immutable. The resource name of the ad group bid modifier. Ad group bid modifier resource names have the form:
customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}
ad_group: Option<String>
Immutable. The ad group 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. The modifier must be in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent. Use 0 to opt out of a Device type.
base_ad_group: Option<String>
Output only. The base ad group from which this draft/trial adgroup bid modifier was created. If ad_group is a base ad group then this field will be equal to ad_group. If the ad group was created in the draft or trial and has no corresponding base ad group, then this field will be null. This field is readonly.
bid_modifier_source: i32
Output only. Bid modifier source.
criterion: Option<Criterion>
The criterion of this ad group bid modifier.
Required in create operations starting in V5.
Implementations§
source§impl AdGroupBidModifier
impl AdGroupBidModifier
sourcepub fn bid_modifier_source(&self) -> BidModifierSource
pub fn bid_modifier_source(&self) -> BidModifierSource
Returns the enum value of bid_modifier_source
, or the default if the field is set to an invalid enum value.
sourcepub fn set_bid_modifier_source(&mut self, value: BidModifierSource)
pub fn set_bid_modifier_source(&mut self, value: BidModifierSource)
Sets bid_modifier_source
to the provided enum value.
sourcepub fn ad_group(&self) -> &str
pub fn ad_group(&self) -> &str
Returns the value of ad_group
, or the default value if ad_group
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.
sourcepub fn base_ad_group(&self) -> &str
pub fn base_ad_group(&self) -> &str
Returns the value of base_ad_group
, or the default value if base_ad_group
is unset.
Trait Implementations§
source§impl Clone for AdGroupBidModifier
impl Clone for AdGroupBidModifier
source§fn clone(&self) -> AdGroupBidModifier
fn clone(&self) -> AdGroupBidModifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AdGroupBidModifier
impl Debug for AdGroupBidModifier
source§impl Default for AdGroupBidModifier
impl Default for AdGroupBidModifier
source§impl Message for AdGroupBidModifier
impl Message for AdGroupBidModifier
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 AdGroupBidModifier
impl PartialEq for AdGroupBidModifier
source§fn eq(&self, other: &AdGroupBidModifier) -> bool
fn eq(&self, other: &AdGroupBidModifier) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AdGroupBidModifier
Auto Trait Implementations§
impl Freeze for AdGroupBidModifier
impl RefUnwindSafe for AdGroupBidModifier
impl Send for AdGroupBidModifier
impl Sync for AdGroupBidModifier
impl Unpin for AdGroupBidModifier
impl UnwindSafe for AdGroupBidModifier
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