pub struct CallAsset {
pub country_code: String,
pub phone_number: String,
pub call_conversion_reporting_state: i32,
pub call_conversion_action: String,
pub ad_schedule_targets: Vec<AdScheduleInfo>,
}
Expand description
A Call asset.
Fields§
§country_code: String
Required. Two-letter country code of the phone number. Examples: ‘US’, ‘us’.
phone_number: String
Required. The advertiser’s raw phone number. Examples: ‘1234567890’, ‘(123)456-7890’
call_conversion_reporting_state: i32
Indicates whether this CallAsset should use its own call conversion setting, follow the account level setting, or disable call conversion.
call_conversion_action: String
The conversion action to attribute a call conversion to. If not set, the default conversion action is used. This field only has effect if call_conversion_reporting_state is set to USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION.
ad_schedule_targets: Vec<AdScheduleInfo>
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
Implementations§
Source§impl CallAsset
impl CallAsset
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.
Trait Implementations§
Source§impl Message for CallAsset
impl Message for CallAsset
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
.impl StructuralPartialEq for CallAsset
Auto Trait Implementations§
impl Freeze for CallAsset
impl RefUnwindSafe for CallAsset
impl Send for CallAsset
impl Sync for CallAsset
impl Unpin for CallAsset
impl UnwindSafe for CallAsset
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