Struct google_api_proto::google::ads::googleads::v17::resources::LocalServicesLead
source · pub struct LocalServicesLead {
pub resource_name: String,
pub id: i64,
pub category_id: String,
pub service_id: String,
pub contact_details: Option<ContactDetails>,
pub lead_type: i32,
pub lead_status: i32,
pub creation_date_time: String,
pub locale: String,
pub note: Option<Note>,
pub lead_charged: bool,
pub credit_details: Option<CreditDetails>,
}
Expand description
Data from Local Services Lead. Contains details of Lead which is generated when user calls, messages or books service from advertiser. More info: https://ads.google.com/local-services-ads
Fields§
§resource_name: String
Output only. The resource name of the local services lead data. Local Services Lead resource name have the form
customers/{customer_id}/localServicesLead/{local_services_lead_id}
id: i64
Output only. ID of this Lead.
category_id: String
Output only. Service category of the lead. For example:
xcat:service_area_business_hvac
,
xcat:service_area_business_real_estate_agent
, etc.
For more details see:
https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
service_id: String
Output only. Service for the category. For example: buyer_agent
,
seller_agent
for the category of
xcat:service_area_business_real_estate_agent
.
contact_details: Option<ContactDetails>
Output only. Lead’s contact details.
lead_type: i32
Output only. Type of Local Services lead: phone, message, booking, etc.
lead_status: i32
Output only. Current status of lead.
creation_date_time: String
Output only. The date time at which lead was created by Local Services Ads. The format is “YYYY-MM-DD HH:MM:SS” in the Google Ads account’s timezone. Examples: “2018-03-05 09:15:00” or “2018-02-01 14:34:30”
locale: String
Output only. Language used by the Local Services provider linked to lead. See https://developers.google.com/google-ads/api/data/codes-formats#locales
note: Option<Note>
Output only. Note added by advertiser for the lead.
lead_charged: bool
Output only. True if the advertiser was charged for the lead.
credit_details: Option<CreditDetails>
Output only. Credit details of the lead.
Implementations§
source§impl LocalServicesLead
impl LocalServicesLead
sourcepub fn lead_type(&self) -> LeadType
pub fn lead_type(&self) -> LeadType
Returns the enum value of lead_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_lead_type(&mut self, value: LeadType)
pub fn set_lead_type(&mut self, value: LeadType)
Sets lead_type
to the provided enum value.
sourcepub fn lead_status(&self) -> LeadStatus
pub fn lead_status(&self) -> LeadStatus
Returns the enum value of lead_status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_lead_status(&mut self, value: LeadStatus)
pub fn set_lead_status(&mut self, value: LeadStatus)
Sets lead_status
to the provided enum value.
Trait Implementations§
source§impl Clone for LocalServicesLead
impl Clone for LocalServicesLead
source§fn clone(&self) -> LocalServicesLead
fn clone(&self) -> LocalServicesLead
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocalServicesLead
impl Debug for LocalServicesLead
source§impl Default for LocalServicesLead
impl Default for LocalServicesLead
source§impl Message for LocalServicesLead
impl Message for LocalServicesLead
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 LocalServicesLead
impl PartialEq for LocalServicesLead
source§fn eq(&self, other: &LocalServicesLead) -> bool
fn eq(&self, other: &LocalServicesLead) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocalServicesLead
Auto Trait Implementations§
impl Freeze for LocalServicesLead
impl RefUnwindSafe for LocalServicesLead
impl Send for LocalServicesLead
impl Sync for LocalServicesLead
impl Unpin for LocalServicesLead
impl UnwindSafe for LocalServicesLead
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