Struct google_api_proto::google::ads::googleads::v16::resources::ConversionTrackingSetting
source · pub struct ConversionTrackingSetting {
pub conversion_tracking_id: Option<i64>,
pub cross_account_conversion_tracking_id: Option<i64>,
pub accepted_customer_data_terms: bool,
pub conversion_tracking_status: i32,
pub enhanced_conversions_for_leads_enabled: bool,
pub google_ads_conversion_customer: String,
}
Expand description
A collection of customer-wide settings related to Google Ads Conversion Tracking.
Fields§
§conversion_tracking_id: Option<i64>
Output only. The conversion tracking id used for this account. This id doesn’t indicate whether the customer uses conversion tracking (conversion_tracking_status does). This field is read-only.
cross_account_conversion_tracking_id: Option<i64>
Output only. The conversion tracking id of the customer’s manager. This is set when the customer is opted into cross account conversion tracking, and it overrides conversion_tracking_id. This field can only be managed through the Google Ads UI. This field is read-only.
accepted_customer_data_terms: bool
Output only. Whether the customer has accepted customer data terms. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only. For more information, see https://support.google.com/adspolicy/answer/7475709.
conversion_tracking_status: i32
Output only. Conversion tracking status. It indicates whether the customer
is using conversion tracking, and who is the conversion tracking owner of
this customer. If this customer is using cross-account conversion tracking,
the value returned will differ based on the login-customer-id
of the
request.
enhanced_conversions_for_leads_enabled: bool
Output only. Whether the customer is opted-in for enhanced conversions for leads. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only.
google_ads_conversion_customer: String
Output only. The resource name of the customer where conversions are created and managed. This field is read-only.
Implementations§
source§impl ConversionTrackingSetting
impl ConversionTrackingSetting
sourcepub fn conversion_tracking_id(&self) -> i64
pub fn conversion_tracking_id(&self) -> i64
Returns the value of conversion_tracking_id
, or the default value if conversion_tracking_id
is unset.
sourcepub fn cross_account_conversion_tracking_id(&self) -> i64
pub fn cross_account_conversion_tracking_id(&self) -> i64
Returns the value of cross_account_conversion_tracking_id
, or the default value if cross_account_conversion_tracking_id
is unset.
sourcepub fn conversion_tracking_status(&self) -> ConversionTrackingStatus
pub fn conversion_tracking_status(&self) -> ConversionTrackingStatus
Returns the enum value of conversion_tracking_status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_conversion_tracking_status(
&mut self,
value: ConversionTrackingStatus,
)
pub fn set_conversion_tracking_status( &mut self, value: ConversionTrackingStatus, )
Sets conversion_tracking_status
to the provided enum value.
Trait Implementations§
source§impl Clone for ConversionTrackingSetting
impl Clone for ConversionTrackingSetting
source§fn clone(&self) -> ConversionTrackingSetting
fn clone(&self) -> ConversionTrackingSetting
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConversionTrackingSetting
impl Debug for ConversionTrackingSetting
source§impl Default for ConversionTrackingSetting
impl Default for ConversionTrackingSetting
source§impl Message for ConversionTrackingSetting
impl Message for ConversionTrackingSetting
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 ConversionTrackingSetting
impl PartialEq for ConversionTrackingSetting
source§fn eq(&self, other: &ConversionTrackingSetting) -> bool
fn eq(&self, other: &ConversionTrackingSetting) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConversionTrackingSetting
Auto Trait Implementations§
impl Freeze for ConversionTrackingSetting
impl RefUnwindSafe for ConversionTrackingSetting
impl Send for ConversionTrackingSetting
impl Sync for ConversionTrackingSetting
impl Unpin for ConversionTrackingSetting
impl UnwindSafe for ConversionTrackingSetting
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