pub struct AdGroupBidModifier {
pub resource_name: String,
pub ad_group: String,
pub criterion_id: i64,
pub bid_modifier: f64,
pub base_ad_group: 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: String
Immutable. The ad group to which this criterion belongs.
criterion_id: i64
Output only. The ID of the criterion to bid modify.
This field is ignored for mutates.
bid_modifier: 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: 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.
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<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 AdGroupBidModifier
impl PartialEq for AdGroupBidModifier
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
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