Struct google_api_proto::google::shopping::merchant::reports::v1beta::ProductPerformanceView
source · pub struct ProductPerformanceView {Show 28 fields
pub marketing_method: Option<i32>,
pub date: Option<Date>,
pub week: Option<Date>,
pub customer_country_code: Option<String>,
pub offer_id: Option<String>,
pub title: Option<String>,
pub brand: Option<String>,
pub category_l1: Option<String>,
pub category_l2: Option<String>,
pub category_l3: Option<String>,
pub category_l4: Option<String>,
pub category_l5: Option<String>,
pub product_type_l1: Option<String>,
pub product_type_l2: Option<String>,
pub product_type_l3: Option<String>,
pub product_type_l4: Option<String>,
pub product_type_l5: Option<String>,
pub custom_label0: Option<String>,
pub custom_label1: Option<String>,
pub custom_label2: Option<String>,
pub custom_label3: Option<String>,
pub custom_label4: Option<String>,
pub clicks: Option<i64>,
pub impressions: Option<i64>,
pub click_through_rate: Option<f64>,
pub conversions: Option<f64>,
pub conversion_value: Option<Price>,
pub conversion_rate: Option<f64>,
}
Expand description
Fields available for query in product_performance_view
table.
Product performance data for your account, including performance metrics (for
example, clicks
) and dimensions according to which performance metrics are
segmented (for example, offer_id
). Values of product dimensions, such as
offer_id
, reflect the state of a product at the time of the impression.
Segment fields cannot be selected in queries without also selecting at least one metric field.
Values are only set for fields requested explicitly in the request’s search query.
Fields§
§marketing_method: Option<i32>
Marketing method to which metrics apply. Segment.
date: Option<Date>
Date in the merchant timezone to which metrics apply. Segment.
Condition on date
is required in the WHERE
clause.
week: Option<Date>
First day of the week (Monday) of the metrics date in the merchant timezone. Segment.
customer_country_code: Option<String>
Code of the country where the customer is located at the time of the event. Represented in the ISO 3166 format. Segment.
If the customer country cannot be determined, a special ‘ZZ’ code is returned.
offer_id: Option<String>
Merchant-provided id of the product. Segment.
title: Option<String>
Title of the product. Segment.
brand: Option<String>
Brand of the product. Segment.
category_l1: Option<String>
Product category (1st level) in Google’s product taxonomy. Segment.
category_l2: Option<String>
Product category (2nd level) in Google’s product taxonomy. Segment.
category_l3: Option<String>
Product category (3rd level) in Google’s product taxonomy. Segment.
category_l4: Option<String>
Product category (4th level) in Google’s product taxonomy. Segment.
category_l5: Option<String>
Product category (5th level) in Google’s product taxonomy. Segment.
product_type_l1: Option<String>
Product type (1st level) in merchant’s own product taxonomy. Segment.
product_type_l2: Option<String>
Product type (2nd level) in merchant’s own product taxonomy. Segment.
product_type_l3: Option<String>
Product type (3rd level) in merchant’s own product taxonomy. Segment.
product_type_l4: Option<String>
Product type (4th level) in merchant’s own product taxonomy. Segment.
product_type_l5: Option<String>
Product type (5th level) in merchant’s own product taxonomy. Segment.
custom_label0: Option<String>
Custom label 0 for custom grouping of products. Segment.
custom_label1: Option<String>
Custom label 1 for custom grouping of products. Segment.
custom_label2: Option<String>
Custom label 2 for custom grouping of products. Segment.
custom_label3: Option<String>
Custom label 3 for custom grouping of products. Segment.
custom_label4: Option<String>
Custom label 4 for custom grouping of products. Segment.
clicks: Option<i64>
Number of clicks. Metric.
impressions: Option<i64>
Number of times merchant’s products are shown. Metric.
click_through_rate: Option<f64>
Click-through rate - the number of clicks merchant’s products receive (clicks) divided by the number of times the products are shown (impressions). Metric.
conversions: Option<f64>
Number of conversions attributed to the product, reported on the conversion date. Depending on the attribution model, a conversion might be distributed across multiple clicks, where each click gets its own credit assigned. This metric is a sum of all such credits. Metric.
Available only for the FREE
traffic source.
conversion_value: Option<Price>
Value of conversions attributed to the product, reported on the conversion date. Metric.
Available only for the FREE
traffic source.
conversion_rate: Option<f64>
Number of conversions divided by the number of clicks, reported on the impression date. Metric.
Available only for the FREE
traffic source.
Implementations§
source§impl ProductPerformanceView
impl ProductPerformanceView
sourcepub fn marketing_method(&self) -> MarketingMethodEnum
pub fn marketing_method(&self) -> MarketingMethodEnum
Returns the enum value of marketing_method
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_marketing_method(&mut self, value: MarketingMethodEnum)
pub fn set_marketing_method(&mut self, value: MarketingMethodEnum)
Sets marketing_method
to the provided enum value.
sourcepub fn customer_country_code(&self) -> &str
pub fn customer_country_code(&self) -> &str
Returns the value of customer_country_code
, or the default value if customer_country_code
is unset.
sourcepub fn offer_id(&self) -> &str
pub fn offer_id(&self) -> &str
Returns the value of offer_id
, or the default value if offer_id
is unset.
sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
Returns the value of title
, or the default value if title
is unset.
sourcepub fn brand(&self) -> &str
pub fn brand(&self) -> &str
Returns the value of brand
, or the default value if brand
is unset.
sourcepub fn category_l1(&self) -> &str
pub fn category_l1(&self) -> &str
Returns the value of category_l1
, or the default value if category_l1
is unset.
sourcepub fn category_l2(&self) -> &str
pub fn category_l2(&self) -> &str
Returns the value of category_l2
, or the default value if category_l2
is unset.
sourcepub fn category_l3(&self) -> &str
pub fn category_l3(&self) -> &str
Returns the value of category_l3
, or the default value if category_l3
is unset.
sourcepub fn category_l4(&self) -> &str
pub fn category_l4(&self) -> &str
Returns the value of category_l4
, or the default value if category_l4
is unset.
sourcepub fn category_l5(&self) -> &str
pub fn category_l5(&self) -> &str
Returns the value of category_l5
, or the default value if category_l5
is unset.
sourcepub fn product_type_l1(&self) -> &str
pub fn product_type_l1(&self) -> &str
Returns the value of product_type_l1
, or the default value if product_type_l1
is unset.
sourcepub fn product_type_l2(&self) -> &str
pub fn product_type_l2(&self) -> &str
Returns the value of product_type_l2
, or the default value if product_type_l2
is unset.
sourcepub fn product_type_l3(&self) -> &str
pub fn product_type_l3(&self) -> &str
Returns the value of product_type_l3
, or the default value if product_type_l3
is unset.
sourcepub fn product_type_l4(&self) -> &str
pub fn product_type_l4(&self) -> &str
Returns the value of product_type_l4
, or the default value if product_type_l4
is unset.
sourcepub fn product_type_l5(&self) -> &str
pub fn product_type_l5(&self) -> &str
Returns the value of product_type_l5
, or the default value if product_type_l5
is unset.
sourcepub fn custom_label0(&self) -> &str
pub fn custom_label0(&self) -> &str
Returns the value of custom_label0
, or the default value if custom_label0
is unset.
sourcepub fn custom_label1(&self) -> &str
pub fn custom_label1(&self) -> &str
Returns the value of custom_label1
, or the default value if custom_label1
is unset.
sourcepub fn custom_label2(&self) -> &str
pub fn custom_label2(&self) -> &str
Returns the value of custom_label2
, or the default value if custom_label2
is unset.
sourcepub fn custom_label3(&self) -> &str
pub fn custom_label3(&self) -> &str
Returns the value of custom_label3
, or the default value if custom_label3
is unset.
sourcepub fn custom_label4(&self) -> &str
pub fn custom_label4(&self) -> &str
Returns the value of custom_label4
, or the default value if custom_label4
is unset.
sourcepub fn clicks(&self) -> i64
pub fn clicks(&self) -> i64
Returns the value of clicks
, or the default value if clicks
is unset.
sourcepub fn impressions(&self) -> i64
pub fn impressions(&self) -> i64
Returns the value of impressions
, or the default value if impressions
is unset.
sourcepub fn click_through_rate(&self) -> f64
pub fn click_through_rate(&self) -> f64
Returns the value of click_through_rate
, or the default value if click_through_rate
is unset.
sourcepub fn conversions(&self) -> f64
pub fn conversions(&self) -> f64
Returns the value of conversions
, or the default value if conversions
is unset.
sourcepub fn conversion_rate(&self) -> f64
pub fn conversion_rate(&self) -> f64
Returns the value of conversion_rate
, or the default value if conversion_rate
is unset.
Trait Implementations§
source§impl Clone for ProductPerformanceView
impl Clone for ProductPerformanceView
source§fn clone(&self) -> ProductPerformanceView
fn clone(&self) -> ProductPerformanceView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProductPerformanceView
impl Debug for ProductPerformanceView
source§impl Default for ProductPerformanceView
impl Default for ProductPerformanceView
source§impl Message for ProductPerformanceView
impl Message for ProductPerformanceView
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for ProductPerformanceView
impl PartialEq for ProductPerformanceView
source§fn eq(&self, other: &ProductPerformanceView) -> bool
fn eq(&self, other: &ProductPerformanceView) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProductPerformanceView
Auto Trait Implementations§
impl Freeze for ProductPerformanceView
impl RefUnwindSafe for ProductPerformanceView
impl Send for ProductPerformanceView
impl Sync for ProductPerformanceView
impl Unpin for ProductPerformanceView
impl UnwindSafe for ProductPerformanceView
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