Enum google_api_proto::google::analytics::admin::v1alpha::attribution_settings::ReportingAttributionModel
source · #[repr(i32)]pub enum ReportingAttributionModel {
Unspecified = 0,
PaidAndOrganicChannelsDataDriven = 1,
PaidAndOrganicChannelsLastClick = 2,
GooglePaidChannelsLastClick = 7,
}
Expand description
The reporting attribution model used to calculate conversion credit in this property’s reports.
Variants§
Unspecified = 0
Reporting attribution model unspecified.
PaidAndOrganicChannelsDataDriven = 1
Data-driven attribution distributes credit for the conversion based on data for each conversion event. Each Data-driven model is specific to each advertiser and each conversion event. Previously CROSS_CHANNEL_DATA_DRIVEN
PaidAndOrganicChannelsLastClick = 2
Ignores direct traffic and attributes 100% of the conversion value to the last channel that the customer clicked through (or engaged view through for YouTube) before converting. Previously CROSS_CHANNEL_LAST_CLICK
GooglePaidChannelsLastClick = 7
Attributes 100% of the conversion value to the last Google Paid channel that the customer clicked through before converting. Previously ADS_PREFERRED_LAST_CLICK
Implementations§
source§impl ReportingAttributionModel
impl ReportingAttributionModel
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ReportingAttributionModel
.
sourcepub fn from_i32(value: i32) -> Option<ReportingAttributionModel>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ReportingAttributionModel>
Converts an i32
to a ReportingAttributionModel
, or None
if value
is not a valid variant.
source§impl ReportingAttributionModel
impl ReportingAttributionModel
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ReportingAttributionModel
impl Clone for ReportingAttributionModel
source§fn clone(&self) -> ReportingAttributionModel
fn clone(&self) -> ReportingAttributionModel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReportingAttributionModel
impl Debug for ReportingAttributionModel
source§impl Default for ReportingAttributionModel
impl Default for ReportingAttributionModel
source§fn default() -> ReportingAttributionModel
fn default() -> ReportingAttributionModel
source§impl From<ReportingAttributionModel> for i32
impl From<ReportingAttributionModel> for i32
source§fn from(value: ReportingAttributionModel) -> i32
fn from(value: ReportingAttributionModel) -> i32
source§impl Hash for ReportingAttributionModel
impl Hash for ReportingAttributionModel
source§impl Ord for ReportingAttributionModel
impl Ord for ReportingAttributionModel
source§fn cmp(&self, other: &ReportingAttributionModel) -> Ordering
fn cmp(&self, other: &ReportingAttributionModel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ReportingAttributionModel
impl PartialEq for ReportingAttributionModel
source§fn eq(&self, other: &ReportingAttributionModel) -> bool
fn eq(&self, other: &ReportingAttributionModel) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ReportingAttributionModel
impl PartialOrd for ReportingAttributionModel
source§fn partial_cmp(&self, other: &ReportingAttributionModel) -> Option<Ordering>
fn partial_cmp(&self, other: &ReportingAttributionModel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ReportingAttributionModel
impl TryFrom<i32> for ReportingAttributionModel
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ReportingAttributionModel, UnknownEnumValue>
fn try_from(value: i32) -> Result<ReportingAttributionModel, UnknownEnumValue>
impl Copy for ReportingAttributionModel
impl Eq for ReportingAttributionModel
impl StructuralPartialEq for ReportingAttributionModel
Auto Trait Implementations§
impl Freeze for ReportingAttributionModel
impl RefUnwindSafe for ReportingAttributionModel
impl Send for ReportingAttributionModel
impl Sync for ReportingAttributionModel
impl Unpin for ReportingAttributionModel
impl UnwindSafe for ReportingAttributionModel
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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