Struct google_api_proto::google::shopping::merchant::reports::v1beta::BestSellersBrandView
source · pub struct BestSellersBrandView {
pub report_date: Option<Date>,
pub report_granularity: Option<i32>,
pub report_country_code: Option<String>,
pub report_category_id: Option<i64>,
pub brand: Option<String>,
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_brand_view
table.
Best sellers report with top brands.
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.
brand: Option<String>
Name of the brand.
rank: Option<i64>
Popularity of the brand 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 brand with the highest popularity rank in the same category and country.
previous_relative_demand: Option<i32>
Estimated demand in relation to the brand 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 BestSellersBrandView
impl BestSellersBrandView
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 brand(&self) -> &str
pub fn brand(&self) -> &str
Returns the value of brand
, or the default value if brand
is unset.
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 BestSellersBrandView
impl Clone for BestSellersBrandView
source§fn clone(&self) -> BestSellersBrandView
fn clone(&self) -> BestSellersBrandView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BestSellersBrandView
impl Debug for BestSellersBrandView
source§impl Default for BestSellersBrandView
impl Default for BestSellersBrandView
source§impl Message for BestSellersBrandView
impl Message for BestSellersBrandView
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 BestSellersBrandView
impl PartialEq for BestSellersBrandView
source§fn eq(&self, other: &BestSellersBrandView) -> bool
fn eq(&self, other: &BestSellersBrandView) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BestSellersBrandView
Auto Trait Implementations§
impl Freeze for BestSellersBrandView
impl RefUnwindSafe for BestSellersBrandView
impl Send for BestSellersBrandView
impl Sync for BestSellersBrandView
impl Unpin for BestSellersBrandView
impl UnwindSafe for BestSellersBrandView
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