Struct google_api_proto::google::ads::googleads::v17::common::CallFeedItem
source · pub struct CallFeedItem {
pub phone_number: Option<String>,
pub country_code: Option<String>,
pub call_tracking_enabled: Option<bool>,
pub call_conversion_action: Option<String>,
pub call_conversion_tracking_disabled: Option<bool>,
pub call_conversion_reporting_state: i32,
}
Expand description
Represents a Call extension.
Fields§
§phone_number: Option<String>
The advertiser’s phone number to append to the ad. This string must not be empty.
country_code: Option<String>
Uppercase two-letter country code of the advertiser’s phone number. This string must not be empty.
call_tracking_enabled: Option<bool>
Indicates whether call tracking is enabled. By default, call tracking is not enabled.
call_conversion_action: Option<String>
The conversion action to attribute a call conversion to. If not set a default conversion action is used. This field only has effect if call_tracking_enabled is set to true. Otherwise this field is ignored.
call_conversion_tracking_disabled: Option<bool>
If true, disable call conversion tracking. call_conversion_action should not be set if this is true. Optional.
call_conversion_reporting_state: i32
Enum value that indicates whether this call extension uses its own call conversion setting (or just have call conversion disabled), or following the account level setting.
Implementations§
source§impl CallFeedItem
impl CallFeedItem
sourcepub fn call_conversion_reporting_state(&self) -> CallConversionReportingState
pub fn call_conversion_reporting_state(&self) -> CallConversionReportingState
Returns the enum value of call_conversion_reporting_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_call_conversion_reporting_state(
&mut self,
value: CallConversionReportingState,
)
pub fn set_call_conversion_reporting_state( &mut self, value: CallConversionReportingState, )
Sets call_conversion_reporting_state
to the provided enum value.
sourcepub fn phone_number(&self) -> &str
pub fn phone_number(&self) -> &str
Returns the value of phone_number
, or the default value if phone_number
is unset.
sourcepub fn country_code(&self) -> &str
pub fn country_code(&self) -> &str
Returns the value of country_code
, or the default value if country_code
is unset.
sourcepub fn call_tracking_enabled(&self) -> bool
pub fn call_tracking_enabled(&self) -> bool
Returns the value of call_tracking_enabled
, or the default value if call_tracking_enabled
is unset.
sourcepub fn call_conversion_action(&self) -> &str
pub fn call_conversion_action(&self) -> &str
Returns the value of call_conversion_action
, or the default value if call_conversion_action
is unset.
sourcepub fn call_conversion_tracking_disabled(&self) -> bool
pub fn call_conversion_tracking_disabled(&self) -> bool
Returns the value of call_conversion_tracking_disabled
, or the default value if call_conversion_tracking_disabled
is unset.
Trait Implementations§
source§impl Clone for CallFeedItem
impl Clone for CallFeedItem
source§fn clone(&self) -> CallFeedItem
fn clone(&self) -> CallFeedItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CallFeedItem
impl Debug for CallFeedItem
source§impl Default for CallFeedItem
impl Default for CallFeedItem
source§impl Message for CallFeedItem
impl Message for CallFeedItem
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 CallFeedItem
impl PartialEq for CallFeedItem
source§fn eq(&self, other: &CallFeedItem) -> bool
fn eq(&self, other: &CallFeedItem) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CallFeedItem
Auto Trait Implementations§
impl Freeze for CallFeedItem
impl RefUnwindSafe for CallFeedItem
impl Send for CallFeedItem
impl Sync for CallFeedItem
impl Unpin for CallFeedItem
impl UnwindSafe for CallFeedItem
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