pub struct UserAttribute {
pub lifetime_value_micros: i64,
pub lifetime_value_bucket: 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: i64
Advertiser defined lifetime value for the user.
lifetime_value_bucket: 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.
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for UserAttribute
impl PartialEq for UserAttribute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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