Struct google_api_proto::google::ads::googleads::v15::common::UserAttribute
source · pub struct UserAttribute {
pub lifetime_value_micros: Option<i64>,
pub lifetime_value_bucket: Option<i32>,
pub last_purchase_date_time: String,
pub average_purchase_count: i32,
pub average_purchase_value_micros: i64,
pub acquisition_date_time: String,
pub shopping_loyalty: Option<ShoppingLoyalty>,
pub lifecycle_stage: String,
pub first_purchase_date_time: String,
pub event_attribute: Vec<EventAttribute>,
}
Expand description
User attribute, can only be used with CUSTOMER_MATCH_WITH_ATTRIBUTES job type.
Fields§
§lifetime_value_micros: Option<i64>
Advertiser defined lifetime value for the user.
lifetime_value_bucket: Option<i32>
Advertiser defined lifetime value bucket for the user. The valid range for a lifetime value bucket is from 1 (low) to 10 (high), except for remove operation where 0 will also be accepted.
last_purchase_date_time: String
Timestamp of the last purchase made by the user. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account’s timezone as default.
average_purchase_count: i32
Advertiser defined average number of purchases that are made by the user in a 30 day period.
average_purchase_value_micros: i64
Advertiser defined average purchase value in micros for the user.
acquisition_date_time: String
Timestamp when the user was acquired. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account’s timezone as default.
shopping_loyalty: Option<ShoppingLoyalty>
The shopping loyalty related data. Shopping utilizes this data to provide users with a better experience. Accessible only to merchants on the allow-list with the user’s consent.
lifecycle_stage: String
Optional. Advertiser defined lifecycle stage for the user. The accepted values are “Lead”, “Active” and “Churned”.
first_purchase_date_time: String
Optional. Timestamp of the first purchase made by the user. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account’s timezone as default.
event_attribute: Vec<EventAttribute>
Optional. Advertiser defined events and their attributes. All the values in the nested fields are required. Currently this field is in beta.
Implementations§
source§impl UserAttribute
impl UserAttribute
sourcepub fn lifetime_value_micros(&self) -> i64
pub fn lifetime_value_micros(&self) -> i64
Returns the value of lifetime_value_micros
, or the default value if lifetime_value_micros
is unset.
sourcepub fn lifetime_value_bucket(&self) -> i32
pub fn lifetime_value_bucket(&self) -> i32
Returns the value of lifetime_value_bucket
, or the default value if lifetime_value_bucket
is unset.
Trait Implementations§
source§impl Clone for UserAttribute
impl Clone for UserAttribute
source§fn clone(&self) -> UserAttribute
fn clone(&self) -> UserAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UserAttribute
impl Debug for UserAttribute
source§impl Default for UserAttribute
impl Default for UserAttribute
source§impl Message for UserAttribute
impl Message for UserAttribute
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 UserAttribute
impl PartialEq for UserAttribute
source§fn eq(&self, other: &UserAttribute) -> bool
fn eq(&self, other: &UserAttribute) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UserAttribute
Auto Trait Implementations§
impl Freeze for UserAttribute
impl RefUnwindSafe for UserAttribute
impl Send for UserAttribute
impl Sync for UserAttribute
impl Unpin for UserAttribute
impl UnwindSafe for UserAttribute
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