Struct google_api_proto::google::analytics::admin::v1alpha::AttributionSettings
source · pub struct AttributionSettings {
pub name: String,
pub acquisition_conversion_event_lookback_window: i32,
pub other_conversion_event_lookback_window: i32,
pub reporting_attribution_model: i32,
pub ads_web_conversion_data_export_scope: i32,
}
Expand description
The attribution settings used for a given property. This is a singleton resource.
Fields§
§name: String
Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: “properties/1000/attributionSettings”
acquisition_conversion_event_lookback_window: i32
Required. The lookback window configuration for acquisition conversion events. The default window size is 30 days.
other_conversion_event_lookback_window: i32
Required. The lookback window for all other, non-acquisition conversion events. The default window size is 90 days.
reporting_attribution_model: i32
Required. The reporting attribution model used to calculate conversion credit in this property’s reports.
Changing the attribution model will apply to both historical and future data. These changes will be reflected in reports with conversion and revenue data. User and session data will be unaffected.
ads_web_conversion_data_export_scope: i32
Required. The Conversion Export Scope for data exported to linked Ads Accounts.
Implementations§
source§impl AttributionSettings
impl AttributionSettings
sourcepub fn acquisition_conversion_event_lookback_window(
&self,
) -> AcquisitionConversionEventLookbackWindow
pub fn acquisition_conversion_event_lookback_window( &self, ) -> AcquisitionConversionEventLookbackWindow
Returns the enum value of acquisition_conversion_event_lookback_window
, or the default if the field is set to an invalid enum value.
sourcepub fn set_acquisition_conversion_event_lookback_window(
&mut self,
value: AcquisitionConversionEventLookbackWindow,
)
pub fn set_acquisition_conversion_event_lookback_window( &mut self, value: AcquisitionConversionEventLookbackWindow, )
Sets acquisition_conversion_event_lookback_window
to the provided enum value.
sourcepub fn other_conversion_event_lookback_window(
&self,
) -> OtherConversionEventLookbackWindow
pub fn other_conversion_event_lookback_window( &self, ) -> OtherConversionEventLookbackWindow
Returns the enum value of other_conversion_event_lookback_window
, or the default if the field is set to an invalid enum value.
sourcepub fn set_other_conversion_event_lookback_window(
&mut self,
value: OtherConversionEventLookbackWindow,
)
pub fn set_other_conversion_event_lookback_window( &mut self, value: OtherConversionEventLookbackWindow, )
Sets other_conversion_event_lookback_window
to the provided enum value.
sourcepub fn reporting_attribution_model(&self) -> ReportingAttributionModel
pub fn reporting_attribution_model(&self) -> ReportingAttributionModel
Returns the enum value of reporting_attribution_model
, or the default if the field is set to an invalid enum value.
sourcepub fn set_reporting_attribution_model(
&mut self,
value: ReportingAttributionModel,
)
pub fn set_reporting_attribution_model( &mut self, value: ReportingAttributionModel, )
Sets reporting_attribution_model
to the provided enum value.
sourcepub fn ads_web_conversion_data_export_scope(
&self,
) -> AdsWebConversionDataExportScope
pub fn ads_web_conversion_data_export_scope( &self, ) -> AdsWebConversionDataExportScope
Returns the enum value of ads_web_conversion_data_export_scope
, or the default if the field is set to an invalid enum value.
sourcepub fn set_ads_web_conversion_data_export_scope(
&mut self,
value: AdsWebConversionDataExportScope,
)
pub fn set_ads_web_conversion_data_export_scope( &mut self, value: AdsWebConversionDataExportScope, )
Sets ads_web_conversion_data_export_scope
to the provided enum value.
Trait Implementations§
source§impl Clone for AttributionSettings
impl Clone for AttributionSettings
source§fn clone(&self) -> AttributionSettings
fn clone(&self) -> AttributionSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttributionSettings
impl Debug for AttributionSettings
source§impl Default for AttributionSettings
impl Default for AttributionSettings
source§impl Message for AttributionSettings
impl Message for AttributionSettings
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 AttributionSettings
impl PartialEq for AttributionSettings
source§fn eq(&self, other: &AttributionSettings) -> bool
fn eq(&self, other: &AttributionSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AttributionSettings
Auto Trait Implementations§
impl Freeze for AttributionSettings
impl RefUnwindSafe for AttributionSettings
impl Send for AttributionSettings
impl Sync for AttributionSettings
impl Unpin for AttributionSettings
impl UnwindSafe for AttributionSettings
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