Struct google_api_proto::google::shopping::merchant::reports::v1beta::BestSellersProductClusterView
source · pub struct BestSellersProductClusterView {Show 19 fields
pub report_date: Option<Date>,
pub report_granularity: Option<i32>,
pub report_country_code: Option<String>,
pub report_category_id: Option<i64>,
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 variant_gtins: Vec<String>,
pub inventory_status: Option<i32>,
pub brand_inventory_status: Option<i32>,
pub rank: Option<i64>,
pub previous_rank: Option<i64>,
pub relative_demand: Option<i32>,
pub previous_relative_demand: Option<i32>,
pub relative_demand_change: Option<i32>,
}
Expand description
Fields available for query in best_sellers_product_cluster_view
table.
Best sellers report with top product clusters. A product cluster is a grouping for different offers and variants that represent the same product, for example, Google Pixel 7.
Values are only set for fields requested explicitly in the request’s search query.
Fields§
§report_date: Option<Date>
Report date. The value of this field can only be one of the following:
- The first day of the week (Monday) for weekly reports,
- The first day of the month for monthly reports.
Required in the SELECT
clause. If a WHERE
condition on report_date
is
not specified in the query, the latest available weekly or monthly report
is returned.
report_granularity: Option<i32>
Granularity of the report. The ranking can be done over a week or a month timeframe.
Required in the SELECT
clause. Condition on report_granularity
is
required in the WHERE
clause.
report_country_code: Option<String>
Country where the ranking is calculated. Represented in the ISO 3166 format.
Required in the SELECT
clause. Condition on report_country_code
is
required in the WHERE
clause.
report_category_id: Option<i64>
Google product category ID to calculate the ranking for, represented in Google’s product taxonomy.
Required in the SELECT
clause. If a WHERE
condition on
report_category_id
is not specified in the query, rankings for all
top-level categories are returned.
title: Option<String>
Title of the product cluster.
brand: Option<String>
Brand of the product cluster.
category_l1: Option<String>
Product category (1st level) of the product cluster, represented in Google’s product taxonomy.
category_l2: Option<String>
Product category (2nd level) of the product cluster, represented in Google’s product taxonomy.
category_l3: Option<String>
Product category (3rd level) of the product cluster, represented in Google’s product taxonomy.
category_l4: Option<String>
Product category (4th level) of the product cluster, represented in Google’s product taxonomy.
category_l5: Option<String>
Product category (5th level) of the product cluster, represented in Google’s product taxonomy.
variant_gtins: Vec<String>
GTINs of example variants of the product cluster.
inventory_status: Option<i32>
Whether the product cluster is IN_STOCK
in your product feed in at least
one of the countries, OUT_OF_STOCK
in your product feed in all countries,
or NOT_IN_INVENTORY
at all.
The field doesn’t take the Best sellers report country filter into account.
brand_inventory_status: Option<i32>
Whether there is at least one product of the brand currently IN_STOCK
in
your product feed in at least one of the countries, all products are
OUT_OF_STOCK
in your product feed in all countries, or
NOT_IN_INVENTORY
.
The field doesn’t take the Best sellers report country filter into account.
rank: Option<i64>
Popularity of the product cluster on Ads and organic surfaces, in the selected category and country, based on the estimated number of units sold.
previous_rank: Option<i64>
Popularity rank in the previous week or month.
relative_demand: Option<i32>
Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country.
previous_relative_demand: Option<i32>
Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country in the previous week or month.
relative_demand_change: Option<i32>
Change in the estimated demand. Whether it rose, sank or remained flat.
Implementations§
source§impl BestSellersProductClusterView
impl BestSellersProductClusterView
sourcepub fn report_granularity(&self) -> ReportGranularityEnum
pub fn report_granularity(&self) -> ReportGranularityEnum
Returns the enum value of report_granularity
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_report_granularity(&mut self, value: ReportGranularityEnum)
pub fn set_report_granularity(&mut self, value: ReportGranularityEnum)
Sets report_granularity
to the provided enum value.
sourcepub fn report_country_code(&self) -> &str
pub fn report_country_code(&self) -> &str
Returns the value of report_country_code
, or the default value if report_country_code
is unset.
sourcepub fn report_category_id(&self) -> i64
pub fn report_category_id(&self) -> i64
Returns the value of report_category_id
, or the default value if report_category_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 inventory_status(&self) -> InventoryStatus
pub fn inventory_status(&self) -> InventoryStatus
Returns the enum value of inventory_status
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_inventory_status(&mut self, value: InventoryStatus)
pub fn set_inventory_status(&mut self, value: InventoryStatus)
Sets inventory_status
to the provided enum value.
sourcepub fn brand_inventory_status(&self) -> InventoryStatus
pub fn brand_inventory_status(&self) -> InventoryStatus
Returns the enum value of brand_inventory_status
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_brand_inventory_status(&mut self, value: InventoryStatus)
pub fn set_brand_inventory_status(&mut self, value: InventoryStatus)
Sets brand_inventory_status
to the provided enum value.
sourcepub fn previous_rank(&self) -> i64
pub fn previous_rank(&self) -> i64
Returns the value of previous_rank
, or the default value if previous_rank
is unset.
sourcepub fn relative_demand(&self) -> RelativeDemandEnum
pub fn relative_demand(&self) -> RelativeDemandEnum
Returns the enum value of relative_demand
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_relative_demand(&mut self, value: RelativeDemandEnum)
pub fn set_relative_demand(&mut self, value: RelativeDemandEnum)
Sets relative_demand
to the provided enum value.
sourcepub fn previous_relative_demand(&self) -> RelativeDemandEnum
pub fn previous_relative_demand(&self) -> RelativeDemandEnum
Returns the enum value of previous_relative_demand
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_previous_relative_demand(&mut self, value: RelativeDemandEnum)
pub fn set_previous_relative_demand(&mut self, value: RelativeDemandEnum)
Sets previous_relative_demand
to the provided enum value.
sourcepub fn relative_demand_change(&self) -> RelativeDemandChangeTypeEnum
pub fn relative_demand_change(&self) -> RelativeDemandChangeTypeEnum
Returns the enum value of relative_demand_change
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_relative_demand_change(
&mut self,
value: RelativeDemandChangeTypeEnum
)
pub fn set_relative_demand_change( &mut self, value: RelativeDemandChangeTypeEnum )
Sets relative_demand_change
to the provided enum value.
Trait Implementations§
source§impl Clone for BestSellersProductClusterView
impl Clone for BestSellersProductClusterView
source§fn clone(&self) -> BestSellersProductClusterView
fn clone(&self) -> BestSellersProductClusterView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for BestSellersProductClusterView
impl Message for BestSellersProductClusterView
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 BestSellersProductClusterView
impl PartialEq for BestSellersProductClusterView
source§fn eq(&self, other: &BestSellersProductClusterView) -> bool
fn eq(&self, other: &BestSellersProductClusterView) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BestSellersProductClusterView
Auto Trait Implementations§
impl Freeze for BestSellersProductClusterView
impl RefUnwindSafe for BestSellersProductClusterView
impl Send for BestSellersProductClusterView
impl Sync for BestSellersProductClusterView
impl Unpin for BestSellersProductClusterView
impl UnwindSafe for BestSellersProductClusterView
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