Struct google_api_proto::google::ads::googleads::v17::services::apply_recommendation_operation::KeywordParameters
source · pub struct KeywordParameters {
pub ad_group: Option<String>,
pub match_type: i32,
pub cpc_bid_micros: Option<i64>,
}
Expand description
Parameters to use when applying keyword recommendation.
Fields§
§ad_group: Option<String>
The ad group resource to add keyword to. This is a required field.
match_type: i32
The match type of the keyword. This is a required field.
cpc_bid_micros: Option<i64>
Optional, CPC bid to set for the keyword. If not set, keyword will use bid based on bidding strategy used by target ad group.
Implementations§
source§impl KeywordParameters
impl KeywordParameters
sourcepub fn match_type(&self) -> KeywordMatchType
pub fn match_type(&self) -> KeywordMatchType
Returns the enum value of match_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_match_type(&mut self, value: KeywordMatchType)
pub fn set_match_type(&mut self, value: KeywordMatchType)
Sets match_type
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 cpc_bid_micros(&self) -> i64
pub fn cpc_bid_micros(&self) -> i64
Returns the value of cpc_bid_micros
, or the default value if cpc_bid_micros
is unset.
Trait Implementations§
source§impl Clone for KeywordParameters
impl Clone for KeywordParameters
source§fn clone(&self) -> KeywordParameters
fn clone(&self) -> KeywordParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeywordParameters
impl Debug for KeywordParameters
source§impl Default for KeywordParameters
impl Default for KeywordParameters
source§impl Message for KeywordParameters
impl Message for KeywordParameters
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for KeywordParameters
impl PartialEq for KeywordParameters
source§fn eq(&self, other: &KeywordParameters) -> bool
fn eq(&self, other: &KeywordParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeywordParameters
Auto Trait Implementations§
impl Freeze for KeywordParameters
impl RefUnwindSafe for KeywordParameters
impl Send for KeywordParameters
impl Sync for KeywordParameters
impl Unpin for KeywordParameters
impl UnwindSafe for KeywordParameters
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request