Constants
ReportService_Search_FullMethodName
const (
ReportService_Search_FullMethodName = "/google.shopping.merchant.reports.v1.ReportService/Search"
)Variables
ProductView_AggregatedReportingContextStatus_name, ProductView_AggregatedReportingContextStatus_value
var (
ProductView_AggregatedReportingContextStatus_name = map[int32]string{
0: "AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED",
1: "NOT_ELIGIBLE_OR_DISAPPROVED",
2: "PENDING",
3: "ELIGIBLE_LIMITED",
4: "ELIGIBLE",
}
ProductView_AggregatedReportingContextStatus_value = map[string]int32{
"AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED": 0,
"NOT_ELIGIBLE_OR_DISAPPROVED": 1,
"PENDING": 2,
"ELIGIBLE_LIMITED": 3,
"ELIGIBLE": 4,
}
)Enum value maps for ProductView_AggregatedReportingContextStatus.
ProductView_ClickPotential_name, ProductView_ClickPotential_value
var (
ProductView_ClickPotential_name = map[int32]string{
0: "CLICK_POTENTIAL_UNSPECIFIED",
1: "LOW",
2: "MEDIUM",
3: "HIGH",
}
ProductView_ClickPotential_value = map[string]int32{
"CLICK_POTENTIAL_UNSPECIFIED": 0,
"LOW": 1,
"MEDIUM": 2,
"HIGH": 3,
}
)Enum value maps for ProductView_ClickPotential.
ProductView_ItemIssue_ItemIssueResolution_name, ProductView_ItemIssue_ItemIssueResolution_value
var (
ProductView_ItemIssue_ItemIssueResolution_name = map[int32]string{
0: "ITEM_ISSUE_RESOLUTION_UNSPECIFIED",
1: "MERCHANT_ACTION",
2: "PENDING_PROCESSING",
}
ProductView_ItemIssue_ItemIssueResolution_value = map[string]int32{
"ITEM_ISSUE_RESOLUTION_UNSPECIFIED": 0,
"MERCHANT_ACTION": 1,
"PENDING_PROCESSING": 2,
}
)Enum value maps for ProductView_ItemIssue_ItemIssueResolution.
ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity_name, ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity_value
var (
ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity_name = map[int32]string{
0: "AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED",
1: "DISAPPROVED",
2: "DEMOTED",
3: "PENDING",
}
ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity_value = map[string]int32{
"AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED": 0,
"DISAPPROVED": 1,
"DEMOTED": 2,
"PENDING": 3,
}
)Enum value maps for ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity.
PriceInsightsProductView_Effectiveness_name, PriceInsightsProductView_Effectiveness_value
var (
PriceInsightsProductView_Effectiveness_name = map[int32]string{
0: "EFFECTIVENESS_UNSPECIFIED",
1: "LOW",
2: "MEDIUM",
3: "HIGH",
}
PriceInsightsProductView_Effectiveness_value = map[string]int32{
"EFFECTIVENESS_UNSPECIFIED": 0,
"LOW": 1,
"MEDIUM": 2,
"HIGH": 3,
}
)Enum value maps for PriceInsightsProductView_Effectiveness.
BestSellersProductClusterView_InventoryStatus_name, BestSellersProductClusterView_InventoryStatus_value
var (
BestSellersProductClusterView_InventoryStatus_name = map[int32]string{
0: "INVENTORY_STATUS_UNSPECIFIED",
1: "IN_STOCK",
2: "OUT_OF_STOCK",
3: "NOT_IN_INVENTORY",
}
BestSellersProductClusterView_InventoryStatus_value = map[string]int32{
"INVENTORY_STATUS_UNSPECIFIED": 0,
"IN_STOCK": 1,
"OUT_OF_STOCK": 2,
"NOT_IN_INVENTORY": 3,
}
)Enum value maps for BestSellersProductClusterView_InventoryStatus.
MarketingMethod_MarketingMethodEnum_name, MarketingMethod_MarketingMethodEnum_value
var (
MarketingMethod_MarketingMethodEnum_name = map[int32]string{
0: "MARKETING_METHOD_ENUM_UNSPECIFIED",
1: "ORGANIC",
2: "ADS",
}
MarketingMethod_MarketingMethodEnum_value = map[string]int32{
"MARKETING_METHOD_ENUM_UNSPECIFIED": 0,
"ORGANIC": 1,
"ADS": 2,
}
)Enum value maps for MarketingMethod_MarketingMethodEnum.
ReportGranularity_ReportGranularityEnum_name, ReportGranularity_ReportGranularityEnum_value
var (
ReportGranularity_ReportGranularityEnum_name = map[int32]string{
0: "REPORT_GRANULARITY_ENUM_UNSPECIFIED",
1: "WEEKLY",
2: "MONTHLY",
}
ReportGranularity_ReportGranularityEnum_value = map[string]int32{
"REPORT_GRANULARITY_ENUM_UNSPECIFIED": 0,
"WEEKLY": 1,
"MONTHLY": 2,
}
)Enum value maps for ReportGranularity_ReportGranularityEnum.
RelativeDemand_RelativeDemandEnum_name, RelativeDemand_RelativeDemandEnum_value
var (
RelativeDemand_RelativeDemandEnum_name = map[int32]string{
0: "RELATIVE_DEMAND_ENUM_UNSPECIFIED",
10: "VERY_LOW",
20: "LOW",
30: "MEDIUM",
40: "HIGH",
50: "VERY_HIGH",
}
RelativeDemand_RelativeDemandEnum_value = map[string]int32{
"RELATIVE_DEMAND_ENUM_UNSPECIFIED": 0,
"VERY_LOW": 10,
"LOW": 20,
"MEDIUM": 30,
"HIGH": 40,
"VERY_HIGH": 50,
}
)Enum value maps for RelativeDemand_RelativeDemandEnum.
RelativeDemandChangeType_RelativeDemandChangeTypeEnum_name, RelativeDemandChangeType_RelativeDemandChangeTypeEnum_value
var (
RelativeDemandChangeType_RelativeDemandChangeTypeEnum_name = map[int32]string{
0: "RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED",
1: "SINKER",
2: "FLAT",
3: "RISER",
}
RelativeDemandChangeType_RelativeDemandChangeTypeEnum_value = map[string]int32{
"RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED": 0,
"SINKER": 1,
"FLAT": 2,
"RISER": 3,
}
)Enum value maps for RelativeDemandChangeType_RelativeDemandChangeTypeEnum.
TrafficSource_TrafficSourceEnum_name, TrafficSource_TrafficSourceEnum_value
var (
TrafficSource_TrafficSourceEnum_name = map[int32]string{
0: "TRAFFIC_SOURCE_ENUM_UNSPECIFIED",
1: "ORGANIC",
2: "ADS",
3: "ALL",
}
TrafficSource_TrafficSourceEnum_value = map[string]int32{
"TRAFFIC_SOURCE_ENUM_UNSPECIFIED": 0,
"ORGANIC": 1,
"ADS": 2,
"ALL": 3,
}
)Enum value maps for TrafficSource_TrafficSourceEnum.
File_google_shopping_merchant_reports_v1_reports_proto
var File_google_shopping_merchant_reports_v1_reports_proto protoreflect.FileDescriptorReportService_ServiceDesc
var ReportService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.shopping.merchant.reports.v1.ReportService",
HandlerType: (*ReportServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Search",
Handler: _ReportService_Search_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/shopping/merchant/reports/v1/reports.proto",
}ReportService_ServiceDesc is the grpc.ServiceDesc for ReportService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterReportServiceServer
func RegisterReportServiceServer(s grpc.ServiceRegistrar, srv ReportServiceServer)BestSellersBrandView
type BestSellersBrandView struct {
// 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.
ReportDate *date.Date `protobuf:"bytes,1,opt,name=report_date,json=reportDate,proto3" json:"report_date,omitempty"`
// 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.
ReportGranularity *ReportGranularity_ReportGranularityEnum `protobuf:"varint,2,opt,name=report_granularity,json=reportGranularity,proto3,enum=google.shopping.merchant.reports.v1.ReportGranularity_ReportGranularityEnum,oneof" json:"report_granularity,omitempty"`
// 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.
ReportCountryCode *string `protobuf:"bytes,3,opt,name=report_country_code,json=reportCountryCode,proto3,oneof" json:"report_country_code,omitempty"`
// Google product category ID to calculate the ranking for, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
//
// 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.
ReportCategoryId *int64 `protobuf:"varint,4,opt,name=report_category_id,json=reportCategoryId,proto3,oneof" json:"report_category_id,omitempty"`
// Name of the brand.
Brand *string `protobuf:"bytes,6,opt,name=brand,proto3,oneof" json:"brand,omitempty"`
// Popularity of the brand on Ads and organic surfaces, in the selected
// category and country, based on the estimated number of units sold.
Rank *int64 `protobuf:"varint,7,opt,name=rank,proto3,oneof" json:"rank,omitempty"`
// Popularity rank in the previous week or month.
PreviousRank *int64 `protobuf:"varint,8,opt,name=previous_rank,json=previousRank,proto3,oneof" json:"previous_rank,omitempty"`
// Estimated demand in relation to the brand with the highest popularity rank
// in the same category and country.
RelativeDemand *RelativeDemand_RelativeDemandEnum `protobuf:"varint,9,opt,name=relative_demand,json=relativeDemand,proto3,enum=google.shopping.merchant.reports.v1.RelativeDemand_RelativeDemandEnum,oneof" json:"relative_demand,omitempty"`
// Estimated demand in relation to the brand with the highest popularity rank
// in the same category and country in the previous week or month.
PreviousRelativeDemand *RelativeDemand_RelativeDemandEnum `protobuf:"varint,10,opt,name=previous_relative_demand,json=previousRelativeDemand,proto3,enum=google.shopping.merchant.reports.v1.RelativeDemand_RelativeDemandEnum,oneof" json:"previous_relative_demand,omitempty"`
// Change in the estimated demand. Whether it rose, sank or remained flat.
RelativeDemandChange *RelativeDemandChangeType_RelativeDemandChangeTypeEnum `protobuf:"varint,11,opt,name=relative_demand_change,json=relativeDemandChange,proto3,enum=google.shopping.merchant.reports.v1.RelativeDemandChangeType_RelativeDemandChangeTypeEnum,oneof" json:"relative_demand_change,omitempty"`
// contains filtered or unexported fields
}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.
func (*BestSellersBrandView) Descriptor
func (*BestSellersBrandView) Descriptor() ([]byte, []int)Deprecated: Use BestSellersBrandView.ProtoReflect.Descriptor instead.
func (*BestSellersBrandView) GetBrand
func (x *BestSellersBrandView) GetBrand() stringfunc (*BestSellersBrandView) GetPreviousRank
func (x *BestSellersBrandView) GetPreviousRank() int64func (*BestSellersBrandView) GetPreviousRelativeDemand
func (x *BestSellersBrandView) GetPreviousRelativeDemand() RelativeDemand_RelativeDemandEnumfunc (*BestSellersBrandView) GetRank
func (x *BestSellersBrandView) GetRank() int64func (*BestSellersBrandView) GetRelativeDemand
func (x *BestSellersBrandView) GetRelativeDemand() RelativeDemand_RelativeDemandEnumfunc (*BestSellersBrandView) GetRelativeDemandChange
func (x *BestSellersBrandView) GetRelativeDemandChange() RelativeDemandChangeType_RelativeDemandChangeTypeEnumfunc (*BestSellersBrandView) GetReportCategoryId
func (x *BestSellersBrandView) GetReportCategoryId() int64func (*BestSellersBrandView) GetReportCountryCode
func (x *BestSellersBrandView) GetReportCountryCode() stringfunc (*BestSellersBrandView) GetReportDate
func (x *BestSellersBrandView) GetReportDate() *date.Datefunc (*BestSellersBrandView) GetReportGranularity
func (x *BestSellersBrandView) GetReportGranularity() ReportGranularity_ReportGranularityEnumfunc (*BestSellersBrandView) ProtoMessage
func (*BestSellersBrandView) ProtoMessage()func (*BestSellersBrandView) ProtoReflect
func (x *BestSellersBrandView) ProtoReflect() protoreflect.Messagefunc (*BestSellersBrandView) Reset
func (x *BestSellersBrandView) Reset()func (*BestSellersBrandView) String
func (x *BestSellersBrandView) String() stringBestSellersProductClusterView
type BestSellersProductClusterView struct {
// 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.
ReportDate *date.Date `protobuf:"bytes,1,opt,name=report_date,json=reportDate,proto3" json:"report_date,omitempty"`
// 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.
ReportGranularity *ReportGranularity_ReportGranularityEnum `protobuf:"varint,2,opt,name=report_granularity,json=reportGranularity,proto3,enum=google.shopping.merchant.reports.v1.ReportGranularity_ReportGranularityEnum,oneof" json:"report_granularity,omitempty"`
// 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.
ReportCountryCode *string `protobuf:"bytes,3,opt,name=report_country_code,json=reportCountryCode,proto3,oneof" json:"report_country_code,omitempty"`
// Google product category ID to calculate the ranking for, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
//
// 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.
ReportCategoryId *int64 `protobuf:"varint,4,opt,name=report_category_id,json=reportCategoryId,proto3,oneof" json:"report_category_id,omitempty"`
// Title of the product cluster.
Title *string `protobuf:"bytes,6,opt,name=title,proto3,oneof" json:"title,omitempty"`
// Brand of the product cluster.
Brand *string `protobuf:"bytes,7,opt,name=brand,proto3,oneof" json:"brand,omitempty"`
// Product category (1st level) of the product cluster, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL1 *string `protobuf:"bytes,8,opt,name=category_l1,json=categoryL1,proto3,oneof" json:"category_l1,omitempty"`
// Product category (2nd level) of the product cluster, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL2 *string `protobuf:"bytes,9,opt,name=category_l2,json=categoryL2,proto3,oneof" json:"category_l2,omitempty"`
// Product category (3rd level) of the product cluster, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL3 *string `protobuf:"bytes,10,opt,name=category_l3,json=categoryL3,proto3,oneof" json:"category_l3,omitempty"`
// Product category (4th level) of the product cluster, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL4 *string `protobuf:"bytes,11,opt,name=category_l4,json=categoryL4,proto3,oneof" json:"category_l4,omitempty"`
// Product category (5th level) of the product cluster, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL5 *string `protobuf:"bytes,12,opt,name=category_l5,json=categoryL5,proto3,oneof" json:"category_l5,omitempty"`
// GTINs of example variants of the product cluster.
VariantGtins []string `protobuf:"bytes,13,rep,name=variant_gtins,json=variantGtins,proto3" json:"variant_gtins,omitempty"`
// Whether the product cluster is `IN_STOCK` in your product data source in at
// least one of the countries, `OUT_OF_STOCK` in your product data source in
// all countries, or `NOT_IN_INVENTORY` at all.
//
// The field doesn't take the Best sellers report country filter into account.
InventoryStatus *BestSellersProductClusterView_InventoryStatus `protobuf:"varint,14,opt,name=inventory_status,json=inventoryStatus,proto3,enum=google.shopping.merchant.reports.v1.BestSellersProductClusterView_InventoryStatus,oneof" json:"inventory_status,omitempty"`
// Whether there is at least one product of the brand currently `IN_STOCK` in
// your product data source in at least one of the countries, all products are
// `OUT_OF_STOCK` in your product data source in all countries, or
// `NOT_IN_INVENTORY`.
//
// The field doesn't take the Best sellers report country filter into account.
BrandInventoryStatus *BestSellersProductClusterView_InventoryStatus `protobuf:"varint,15,opt,name=brand_inventory_status,json=brandInventoryStatus,proto3,enum=google.shopping.merchant.reports.v1.BestSellersProductClusterView_InventoryStatus,oneof" json:"brand_inventory_status,omitempty"`
// Popularity of the product cluster on Ads and organic surfaces, in the
// selected category and country, based on the estimated number of units sold.
Rank *int64 `protobuf:"varint,16,opt,name=rank,proto3,oneof" json:"rank,omitempty"`
// Popularity rank in the previous week or month.
PreviousRank *int64 `protobuf:"varint,17,opt,name=previous_rank,json=previousRank,proto3,oneof" json:"previous_rank,omitempty"`
// Estimated demand in relation to the product cluster with the highest
// popularity rank in the same category and country.
RelativeDemand *RelativeDemand_RelativeDemandEnum `protobuf:"varint,18,opt,name=relative_demand,json=relativeDemand,proto3,enum=google.shopping.merchant.reports.v1.RelativeDemand_RelativeDemandEnum,oneof" json:"relative_demand,omitempty"`
// 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.
PreviousRelativeDemand *RelativeDemand_RelativeDemandEnum `protobuf:"varint,19,opt,name=previous_relative_demand,json=previousRelativeDemand,proto3,enum=google.shopping.merchant.reports.v1.RelativeDemand_RelativeDemandEnum,oneof" json:"previous_relative_demand,omitempty"`
// Change in the estimated demand. Whether it rose, sank or remained flat.
RelativeDemandChange *RelativeDemandChangeType_RelativeDemandChangeTypeEnum `protobuf:"varint,20,opt,name=relative_demand_change,json=relativeDemandChange,proto3,enum=google.shopping.merchant.reports.v1.RelativeDemandChangeType_RelativeDemandChangeTypeEnum,oneof" json:"relative_demand_change,omitempty"`
// contains filtered or unexported fields
}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.
func (*BestSellersProductClusterView) Descriptor
func (*BestSellersProductClusterView) Descriptor() ([]byte, []int)Deprecated: Use BestSellersProductClusterView.ProtoReflect.Descriptor instead.
func (*BestSellersProductClusterView) GetBrand
func (x *BestSellersProductClusterView) GetBrand() stringfunc (*BestSellersProductClusterView) GetBrandInventoryStatus
func (x *BestSellersProductClusterView) GetBrandInventoryStatus() BestSellersProductClusterView_InventoryStatusfunc (*BestSellersProductClusterView) GetCategoryL1
func (x *BestSellersProductClusterView) GetCategoryL1() stringfunc (*BestSellersProductClusterView) GetCategoryL2
func (x *BestSellersProductClusterView) GetCategoryL2() stringfunc (*BestSellersProductClusterView) GetCategoryL3
func (x *BestSellersProductClusterView) GetCategoryL3() stringfunc (*BestSellersProductClusterView) GetCategoryL4
func (x *BestSellersProductClusterView) GetCategoryL4() stringfunc (*BestSellersProductClusterView) GetCategoryL5
func (x *BestSellersProductClusterView) GetCategoryL5() stringfunc (*BestSellersProductClusterView) GetInventoryStatus
func (x *BestSellersProductClusterView) GetInventoryStatus() BestSellersProductClusterView_InventoryStatusfunc (*BestSellersProductClusterView) GetPreviousRank
func (x *BestSellersProductClusterView) GetPreviousRank() int64func (*BestSellersProductClusterView) GetPreviousRelativeDemand
func (x *BestSellersProductClusterView) GetPreviousRelativeDemand() RelativeDemand_RelativeDemandEnumfunc (*BestSellersProductClusterView) GetRank
func (x *BestSellersProductClusterView) GetRank() int64func (*BestSellersProductClusterView) GetRelativeDemand
func (x *BestSellersProductClusterView) GetRelativeDemand() RelativeDemand_RelativeDemandEnumfunc (*BestSellersProductClusterView) GetRelativeDemandChange
func (x *BestSellersProductClusterView) GetRelativeDemandChange() RelativeDemandChangeType_RelativeDemandChangeTypeEnumfunc (*BestSellersProductClusterView) GetReportCategoryId
func (x *BestSellersProductClusterView) GetReportCategoryId() int64func (*BestSellersProductClusterView) GetReportCountryCode
func (x *BestSellersProductClusterView) GetReportCountryCode() stringfunc (*BestSellersProductClusterView) GetReportDate
func (x *BestSellersProductClusterView) GetReportDate() *date.Datefunc (*BestSellersProductClusterView) GetReportGranularity
func (x *BestSellersProductClusterView) GetReportGranularity() ReportGranularity_ReportGranularityEnumfunc (*BestSellersProductClusterView) GetTitle
func (x *BestSellersProductClusterView) GetTitle() stringfunc (*BestSellersProductClusterView) GetVariantGtins
func (x *BestSellersProductClusterView) GetVariantGtins() []stringfunc (*BestSellersProductClusterView) ProtoMessage
func (*BestSellersProductClusterView) ProtoMessage()func (*BestSellersProductClusterView) ProtoReflect
func (x *BestSellersProductClusterView) ProtoReflect() protoreflect.Messagefunc (*BestSellersProductClusterView) Reset
func (x *BestSellersProductClusterView) Reset()func (*BestSellersProductClusterView) String
func (x *BestSellersProductClusterView) String() stringBestSellersProductClusterView_InventoryStatus
type BestSellersProductClusterView_InventoryStatus int32Status of the product cluster or brand in your inventory.
BestSellersProductClusterView_INVENTORY_STATUS_UNSPECIFIED, BestSellersProductClusterView_IN_STOCK, BestSellersProductClusterView_OUT_OF_STOCK, BestSellersProductClusterView_NOT_IN_INVENTORY
const (
// Not specified.
BestSellersProductClusterView_INVENTORY_STATUS_UNSPECIFIED BestSellersProductClusterView_InventoryStatus = 0
// You have a product for this product cluster or brand in stock.
BestSellersProductClusterView_IN_STOCK BestSellersProductClusterView_InventoryStatus = 1
// You have a product for this product cluster or brand in inventory but it
// is currently out of stock.
BestSellersProductClusterView_OUT_OF_STOCK BestSellersProductClusterView_InventoryStatus = 2
// You do not have a product for this product cluster or brand in inventory.
BestSellersProductClusterView_NOT_IN_INVENTORY BestSellersProductClusterView_InventoryStatus = 3
)func (BestSellersProductClusterView_InventoryStatus) Descriptor
func (BestSellersProductClusterView_InventoryStatus) Descriptor() protoreflect.EnumDescriptorfunc (BestSellersProductClusterView_InventoryStatus) Enum
func (x BestSellersProductClusterView_InventoryStatus) Enum() *BestSellersProductClusterView_InventoryStatusfunc (BestSellersProductClusterView_InventoryStatus) EnumDescriptor
func (BestSellersProductClusterView_InventoryStatus) EnumDescriptor() ([]byte, []int)Deprecated: Use BestSellersProductClusterView_InventoryStatus.Descriptor instead.
func (BestSellersProductClusterView_InventoryStatus) Number
func (x BestSellersProductClusterView_InventoryStatus) Number() protoreflect.EnumNumberfunc (BestSellersProductClusterView_InventoryStatus) String
func (x BestSellersProductClusterView_InventoryStatus) String() stringfunc (BestSellersProductClusterView_InventoryStatus) Type
CompetitiveVisibilityBenchmarkView
type CompetitiveVisibilityBenchmarkView struct {
// Date of this row.
//
// Required in the `SELECT` clause. A condition on `date` is required in the
// `WHERE` clause.
Date *date.Date `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
// Country where impressions appeared.
//
// Required in the `SELECT` clause. A condition on `report_country_code` is
// required in the `WHERE` clause.
ReportCountryCode *string `protobuf:"bytes,2,opt,name=report_country_code,json=reportCountryCode,proto3,oneof" json:"report_country_code,omitempty"`
// Google product category ID to calculate the report for, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
//
// Required in the `SELECT` clause. A condition on `report_category_id` is
// required in the `WHERE` clause.
ReportCategoryId *int64 `protobuf:"varint,3,opt,name=report_category_id,json=reportCategoryId,proto3,oneof" json:"report_category_id,omitempty"`
// Traffic source of impressions.
//
// Required in the `SELECT` clause.
TrafficSource *TrafficSource_TrafficSourceEnum `protobuf:"varint,4,opt,name=traffic_source,json=trafficSource,proto3,enum=google.shopping.merchant.reports.v1.TrafficSource_TrafficSourceEnum,oneof" json:"traffic_source,omitempty"`
// Change in visibility based on impressions for your domain with respect to
// the start of the selected time range (or first day with non-zero
// impressions).
//
// Cannot be filtered on in the 'WHERE' clause.
YourDomainVisibilityTrend *float64 `protobuf:"fixed64,5,opt,name=your_domain_visibility_trend,json=yourDomainVisibilityTrend,proto3,oneof" json:"your_domain_visibility_trend,omitempty"`
// Change in visibility based on impressions with respect to the start of the
// selected time range (or first day with non-zero impressions) for a
// combined set of merchants with highest visibility approximating the
// market.
//
// Cannot be filtered on in the 'WHERE' clause.
CategoryBenchmarkVisibilityTrend *float64 `protobuf:"fixed64,6,opt,name=category_benchmark_visibility_trend,json=categoryBenchmarkVisibilityTrend,proto3,oneof" json:"category_benchmark_visibility_trend,omitempty"`
// contains filtered or unexported fields
}Fields available for query in competitive_visibility_benchmark_view table.
Competitive visibility report with the category benchmark.
Values are only set for fields requested explicitly in the request's search query.
func (*CompetitiveVisibilityBenchmarkView) Descriptor
func (*CompetitiveVisibilityBenchmarkView) Descriptor() ([]byte, []int)Deprecated: Use CompetitiveVisibilityBenchmarkView.ProtoReflect.Descriptor instead.
func (*CompetitiveVisibilityBenchmarkView) GetCategoryBenchmarkVisibilityTrend
func (x *CompetitiveVisibilityBenchmarkView) GetCategoryBenchmarkVisibilityTrend() float64func (*CompetitiveVisibilityBenchmarkView) GetDate
func (x *CompetitiveVisibilityBenchmarkView) GetDate() *date.Datefunc (*CompetitiveVisibilityBenchmarkView) GetReportCategoryId
func (x *CompetitiveVisibilityBenchmarkView) GetReportCategoryId() int64func (*CompetitiveVisibilityBenchmarkView) GetReportCountryCode
func (x *CompetitiveVisibilityBenchmarkView) GetReportCountryCode() stringfunc (*CompetitiveVisibilityBenchmarkView) GetTrafficSource
func (x *CompetitiveVisibilityBenchmarkView) GetTrafficSource() TrafficSource_TrafficSourceEnumfunc (*CompetitiveVisibilityBenchmarkView) GetYourDomainVisibilityTrend
func (x *CompetitiveVisibilityBenchmarkView) GetYourDomainVisibilityTrend() float64func (*CompetitiveVisibilityBenchmarkView) ProtoMessage
func (*CompetitiveVisibilityBenchmarkView) ProtoMessage()func (*CompetitiveVisibilityBenchmarkView) ProtoReflect
func (x *CompetitiveVisibilityBenchmarkView) ProtoReflect() protoreflect.Messagefunc (*CompetitiveVisibilityBenchmarkView) Reset
func (x *CompetitiveVisibilityBenchmarkView) Reset()func (*CompetitiveVisibilityBenchmarkView) String
func (x *CompetitiveVisibilityBenchmarkView) String() stringCompetitiveVisibilityCompetitorView
type CompetitiveVisibilityCompetitorView struct {
// Date of this row.
//
// A condition on `date` is required in the `WHERE` clause.
Date *date.Date `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
// Domain of your competitor or your domain, if 'is_your_domain' is true.
//
// Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
// clause.
Domain *string `protobuf:"bytes,2,opt,name=domain,proto3,oneof" json:"domain,omitempty"`
// True if this row contains data for your domain.
//
// Cannot be filtered on in the 'WHERE' clause.
IsYourDomain *bool `protobuf:"varint,3,opt,name=is_your_domain,json=isYourDomain,proto3,oneof" json:"is_your_domain,omitempty"`
// Country where impressions appeared.
//
// Required in the `SELECT` clause. A condition on `report_country_code` is
// required in the `WHERE` clause.
ReportCountryCode *string `protobuf:"bytes,4,opt,name=report_country_code,json=reportCountryCode,proto3,oneof" json:"report_country_code,omitempty"`
// Google product category ID to calculate the report for, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
//
// Required in the `SELECT` clause. A condition on `report_category_id` is
// required in the `WHERE` clause.
ReportCategoryId *int64 `protobuf:"varint,5,opt,name=report_category_id,json=reportCategoryId,proto3,oneof" json:"report_category_id,omitempty"`
// Traffic source of impressions.
//
// Required in the `SELECT` clause.
TrafficSource *TrafficSource_TrafficSourceEnum `protobuf:"varint,6,opt,name=traffic_source,json=trafficSource,proto3,enum=google.shopping.merchant.reports.v1.TrafficSource_TrafficSourceEnum,oneof" json:"traffic_source,omitempty"`
// Position of the domain in the similar businesses ranking for the selected
// keys (`date`, `report_category_id`, `report_country_code`,
// `traffic_source`) based on impressions. 1 is the highest.
//
// Cannot be filtered on in the 'WHERE' clause.
Rank *int64 `protobuf:"varint,7,opt,name=rank,proto3,oneof" json:"rank,omitempty"`
// [Ads / organic ratio]
// (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
// shows how often the domain receives impressions from Shopping ads compared
// to organic traffic. The number is rounded and bucketed.
//
// Cannot be filtered on in the 'WHERE' clause.
AdsOrganicRatio *float64 `protobuf:"fixed64,8,opt,name=ads_organic_ratio,json=adsOrganicRatio,proto3,oneof" json:"ads_organic_ratio,omitempty"`
// [Page overlap rate]
// (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
// shows how frequently competing retailers’ offers are shown together with
// your offers on the same page.
//
// Cannot be filtered on in the 'WHERE' clause.
PageOverlapRate *float64 `protobuf:"fixed64,9,opt,name=page_overlap_rate,json=pageOverlapRate,proto3,oneof" json:"page_overlap_rate,omitempty"`
// [Higher position rate]
// (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
// shows how often a competitor’s offer got placed in a higher position on the
// page than your offer.
//
// Cannot be filtered on in the 'WHERE' clause.
HigherPositionRate *float64 `protobuf:"fixed64,10,opt,name=higher_position_rate,json=higherPositionRate,proto3,oneof" json:"higher_position_rate,omitempty"`
// [Relative visibility]
// (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility)
// shows how often your competitors’ offers are shown compared to your offers.
// In other words, this is the number of displayed impressions of a competitor
// retailer divided by the number of your displayed impressions during a
// selected time range for a selected product category and country.
//
// Cannot be filtered on in the 'WHERE' clause.
RelativeVisibility *float64 `protobuf:"fixed64,11,opt,name=relative_visibility,json=relativeVisibility,proto3,oneof" json:"relative_visibility,omitempty"`
// contains filtered or unexported fields
}Fields available for query in competitive_visibility_competitor_view table.
Competitive visibility report with businesses with similar visibility.
Values are only set for fields requested explicitly in the request's search query.
func (*CompetitiveVisibilityCompetitorView) Descriptor
func (*CompetitiveVisibilityCompetitorView) Descriptor() ([]byte, []int)Deprecated: Use CompetitiveVisibilityCompetitorView.ProtoReflect.Descriptor instead.
func (*CompetitiveVisibilityCompetitorView) GetAdsOrganicRatio
func (x *CompetitiveVisibilityCompetitorView) GetAdsOrganicRatio() float64func (*CompetitiveVisibilityCompetitorView) GetDate
func (x *CompetitiveVisibilityCompetitorView) GetDate() *date.Datefunc (*CompetitiveVisibilityCompetitorView) GetDomain
func (x *CompetitiveVisibilityCompetitorView) GetDomain() stringfunc (*CompetitiveVisibilityCompetitorView) GetHigherPositionRate
func (x *CompetitiveVisibilityCompetitorView) GetHigherPositionRate() float64func (*CompetitiveVisibilityCompetitorView) GetIsYourDomain
func (x *CompetitiveVisibilityCompetitorView) GetIsYourDomain() boolfunc (*CompetitiveVisibilityCompetitorView) GetPageOverlapRate
func (x *CompetitiveVisibilityCompetitorView) GetPageOverlapRate() float64func (*CompetitiveVisibilityCompetitorView) GetRank
func (x *CompetitiveVisibilityCompetitorView) GetRank() int64func (*CompetitiveVisibilityCompetitorView) GetRelativeVisibility
func (x *CompetitiveVisibilityCompetitorView) GetRelativeVisibility() float64func (*CompetitiveVisibilityCompetitorView) GetReportCategoryId
func (x *CompetitiveVisibilityCompetitorView) GetReportCategoryId() int64func (*CompetitiveVisibilityCompetitorView) GetReportCountryCode
func (x *CompetitiveVisibilityCompetitorView) GetReportCountryCode() stringfunc (*CompetitiveVisibilityCompetitorView) GetTrafficSource
func (x *CompetitiveVisibilityCompetitorView) GetTrafficSource() TrafficSource_TrafficSourceEnumfunc (*CompetitiveVisibilityCompetitorView) ProtoMessage
func (*CompetitiveVisibilityCompetitorView) ProtoMessage()func (*CompetitiveVisibilityCompetitorView) ProtoReflect
func (x *CompetitiveVisibilityCompetitorView) ProtoReflect() protoreflect.Messagefunc (*CompetitiveVisibilityCompetitorView) Reset
func (x *CompetitiveVisibilityCompetitorView) Reset()func (*CompetitiveVisibilityCompetitorView) String
func (x *CompetitiveVisibilityCompetitorView) String() stringCompetitiveVisibilityTopMerchantView
type CompetitiveVisibilityTopMerchantView struct {
// Date of this row.
//
// Cannot be selected in the `SELECT` clause. A condition on `date` is
// required in the `WHERE` clause.
Date *date.Date `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
// Domain of your competitor or your domain, if 'is_your_domain' is true.
//
// Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
// clause.
Domain *string `protobuf:"bytes,2,opt,name=domain,proto3,oneof" json:"domain,omitempty"`
// True if this row contains data for your domain.
//
// Cannot be filtered on in the 'WHERE' clause.
IsYourDomain *bool `protobuf:"varint,3,opt,name=is_your_domain,json=isYourDomain,proto3,oneof" json:"is_your_domain,omitempty"`
// Country where impressions appeared.
//
// Required in the `SELECT` clause. A condition on `report_country_code` is
// required in the `WHERE` clause.
ReportCountryCode *string `protobuf:"bytes,4,opt,name=report_country_code,json=reportCountryCode,proto3,oneof" json:"report_country_code,omitempty"`
// Google product category ID to calculate the report for, represented in
// [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
//
// Required in the `SELECT` clause. A condition on `report_category_id` is
// required in the `WHERE` clause.
ReportCategoryId *int64 `protobuf:"varint,5,opt,name=report_category_id,json=reportCategoryId,proto3,oneof" json:"report_category_id,omitempty"`
// Traffic source of impressions.
//
// Required in the `SELECT` clause.
TrafficSource *TrafficSource_TrafficSourceEnum `protobuf:"varint,6,opt,name=traffic_source,json=trafficSource,proto3,enum=google.shopping.merchant.reports.v1.TrafficSource_TrafficSourceEnum,oneof" json:"traffic_source,omitempty"`
// Position of the domain in the top merchants ranking for the selected keys
// (`date`, `report_category_id`, `report_country_code`, `traffic_source`)
// based on impressions. 1 is the highest.
//
// Cannot be filtered on in the 'WHERE' clause.
Rank *int64 `protobuf:"varint,7,opt,name=rank,proto3,oneof" json:"rank,omitempty"`
// [Ads / organic ratio]
// (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
// shows how often the domain receives impressions from Shopping ads compared
// to organic traffic. The number is rounded and bucketed.
//
// Cannot be filtered on in the 'WHERE' clause.
AdsOrganicRatio *float64 `protobuf:"fixed64,8,opt,name=ads_organic_ratio,json=adsOrganicRatio,proto3,oneof" json:"ads_organic_ratio,omitempty"`
// [Page overlap rate]
// (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
// shows how frequently competing retailers’ offers are shown together with
// your offers on the same page.
//
// Cannot be filtered on in the 'WHERE' clause.
PageOverlapRate *float64 `protobuf:"fixed64,9,opt,name=page_overlap_rate,json=pageOverlapRate,proto3,oneof" json:"page_overlap_rate,omitempty"`
// [Higher position rate]
// (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
// shows how often a competitor’s offer got placed in a higher position on the
// page than your offer.
//
// Cannot be filtered on in the 'WHERE' clause.
HigherPositionRate *float64 `protobuf:"fixed64,10,opt,name=higher_position_rate,json=higherPositionRate,proto3,oneof" json:"higher_position_rate,omitempty"`
// contains filtered or unexported fields
}Fields available for query in competitive_visibility_top_merchant_view
table.
Competitive visibility report with business with highest visibility.
Values are only set for fields requested explicitly in the request's search query.
func (*CompetitiveVisibilityTopMerchantView) Descriptor
func (*CompetitiveVisibilityTopMerchantView) Descriptor() ([]byte, []int)Deprecated: Use CompetitiveVisibilityTopMerchantView.ProtoReflect.Descriptor instead.
func (*CompetitiveVisibilityTopMerchantView) GetAdsOrganicRatio
func (x *CompetitiveVisibilityTopMerchantView) GetAdsOrganicRatio() float64func (*CompetitiveVisibilityTopMerchantView) GetDate
func (x *CompetitiveVisibilityTopMerchantView) GetDate() *date.Datefunc (*CompetitiveVisibilityTopMerchantView) GetDomain
func (x *CompetitiveVisibilityTopMerchantView) GetDomain() stringfunc (*CompetitiveVisibilityTopMerchantView) GetHigherPositionRate
func (x *CompetitiveVisibilityTopMerchantView) GetHigherPositionRate() float64func (*CompetitiveVisibilityTopMerchantView) GetIsYourDomain
func (x *CompetitiveVisibilityTopMerchantView) GetIsYourDomain() boolfunc (*CompetitiveVisibilityTopMerchantView) GetPageOverlapRate
func (x *CompetitiveVisibilityTopMerchantView) GetPageOverlapRate() float64func (*CompetitiveVisibilityTopMerchantView) GetRank
func (x *CompetitiveVisibilityTopMerchantView) GetRank() int64func (*CompetitiveVisibilityTopMerchantView) GetReportCategoryId
func (x *CompetitiveVisibilityTopMerchantView) GetReportCategoryId() int64func (*CompetitiveVisibilityTopMerchantView) GetReportCountryCode
func (x *CompetitiveVisibilityTopMerchantView) GetReportCountryCode() stringfunc (*CompetitiveVisibilityTopMerchantView) GetTrafficSource
func (x *CompetitiveVisibilityTopMerchantView) GetTrafficSource() TrafficSource_TrafficSourceEnumfunc (*CompetitiveVisibilityTopMerchantView) ProtoMessage
func (*CompetitiveVisibilityTopMerchantView) ProtoMessage()func (*CompetitiveVisibilityTopMerchantView) ProtoReflect
func (x *CompetitiveVisibilityTopMerchantView) ProtoReflect() protoreflect.Messagefunc (*CompetitiveVisibilityTopMerchantView) Reset
func (x *CompetitiveVisibilityTopMerchantView) Reset()func (*CompetitiveVisibilityTopMerchantView) String
func (x *CompetitiveVisibilityTopMerchantView) String() stringMarketingMethod
type MarketingMethod struct {
// contains filtered or unexported fields
}Marketing method used to promote your products on Google (organic versus ads).
func (*MarketingMethod) Descriptor
func (*MarketingMethod) Descriptor() ([]byte, []int)Deprecated: Use MarketingMethod.ProtoReflect.Descriptor instead.
func (*MarketingMethod) ProtoMessage
func (*MarketingMethod) ProtoMessage()func (*MarketingMethod) ProtoReflect
func (x *MarketingMethod) ProtoReflect() protoreflect.Messagefunc (*MarketingMethod) Reset
func (x *MarketingMethod) Reset()func (*MarketingMethod) String
func (x *MarketingMethod) String() stringMarketingMethod_MarketingMethodEnum
type MarketingMethod_MarketingMethodEnum int32Marketing method values.
MarketingMethod_MARKETING_METHOD_ENUM_UNSPECIFIED, MarketingMethod_ORGANIC, MarketingMethod_ADS
const (
// Not specified.
MarketingMethod_MARKETING_METHOD_ENUM_UNSPECIFIED MarketingMethod_MarketingMethodEnum = 0
// Organic marketing.
MarketingMethod_ORGANIC MarketingMethod_MarketingMethodEnum = 1
// Ads-based marketing.
MarketingMethod_ADS MarketingMethod_MarketingMethodEnum = 2
)func (MarketingMethod_MarketingMethodEnum) Descriptor
func (MarketingMethod_MarketingMethodEnum) Descriptor() protoreflect.EnumDescriptorfunc (MarketingMethod_MarketingMethodEnum) Enum
func (x MarketingMethod_MarketingMethodEnum) Enum() *MarketingMethod_MarketingMethodEnumfunc (MarketingMethod_MarketingMethodEnum) EnumDescriptor
func (MarketingMethod_MarketingMethodEnum) EnumDescriptor() ([]byte, []int)Deprecated: Use MarketingMethod_MarketingMethodEnum.Descriptor instead.
func (MarketingMethod_MarketingMethodEnum) Number
func (x MarketingMethod_MarketingMethodEnum) Number() protoreflect.EnumNumberfunc (MarketingMethod_MarketingMethodEnum) String
func (x MarketingMethod_MarketingMethodEnum) String() stringfunc (MarketingMethod_MarketingMethodEnum) Type
func (MarketingMethod_MarketingMethodEnum) Type() protoreflect.EnumTypeNonProductPerformanceView
type NonProductPerformanceView struct {
// Date in the merchant timezone to which metrics apply. Segment.
//
// Condition on `date` is required in the `WHERE` clause.
Date *date.Date `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
// First day of the week (Monday) of the metrics date in the merchant
// timezone. Segment.
Week *date.Date `protobuf:"bytes,2,opt,name=week,proto3" json:"week,omitempty"`
// Number of clicks on images and online store links leading to your
// non-product pages. Metric.
Clicks *int64 `protobuf:"varint,3,opt,name=clicks,proto3,oneof" json:"clicks,omitempty"`
// Number of times images and online store links leading to your non-product
// pages were shown. Metric.
Impressions *int64 `protobuf:"varint,4,opt,name=impressions,proto3,oneof" json:"impressions,omitempty"`
// Click-through rate - the number of clicks (`clicks`) divided by the number
// of impressions (`impressions`) of images and online store links leading to
// your non-product pages. Metric.
ClickThroughRate *float64 `protobuf:"fixed64,5,opt,name=click_through_rate,json=clickThroughRate,proto3,oneof" json:"click_through_rate,omitempty"`
// contains filtered or unexported fields
}Fields available for query in non_product_performance_view table.
Performance data on images and online store links leading to your non-product
pages. This includes performance metrics (for example, clicks)
and dimensions according to which performance metrics are segmented (for
example, date).
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.
func (*NonProductPerformanceView) Descriptor
func (*NonProductPerformanceView) Descriptor() ([]byte, []int)Deprecated: Use NonProductPerformanceView.ProtoReflect.Descriptor instead.
func (*NonProductPerformanceView) GetClickThroughRate
func (x *NonProductPerformanceView) GetClickThroughRate() float64func (*NonProductPerformanceView) GetClicks
func (x *NonProductPerformanceView) GetClicks() int64func (*NonProductPerformanceView) GetDate
func (x *NonProductPerformanceView) GetDate() *date.Datefunc (*NonProductPerformanceView) GetImpressions
func (x *NonProductPerformanceView) GetImpressions() int64func (*NonProductPerformanceView) GetWeek
func (x *NonProductPerformanceView) GetWeek() *date.Datefunc (*NonProductPerformanceView) ProtoMessage
func (*NonProductPerformanceView) ProtoMessage()func (*NonProductPerformanceView) ProtoReflect
func (x *NonProductPerformanceView) ProtoReflect() protoreflect.Messagefunc (*NonProductPerformanceView) Reset
func (x *NonProductPerformanceView) Reset()func (*NonProductPerformanceView) String
func (x *NonProductPerformanceView) String() stringPriceCompetitivenessProductView
type PriceCompetitivenessProductView struct {
// Country of the price benchmark. Represented in the ISO 3166 format.
//
// Required in the `SELECT` clause.
ReportCountryCode *string `protobuf:"bytes,1,opt,name=report_country_code,json=reportCountryCode,proto3,oneof" json:"report_country_code,omitempty"`
// REST ID of the product, in the form of
// `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
// `product_view` table.
//
// Required in the `SELECT` clause.
Id *string `protobuf:"bytes,2,opt,name=id,proto3,oneof" json:"id,omitempty"`
// Merchant-provided id of the product.
OfferId *string `protobuf:"bytes,3,opt,name=offer_id,json=offerId,proto3,oneof" json:"offer_id,omitempty"`
// Title of the product.
Title *string `protobuf:"bytes,4,opt,name=title,proto3,oneof" json:"title,omitempty"`
// Brand of the product.
Brand *string `protobuf:"bytes,5,opt,name=brand,proto3,oneof" json:"brand,omitempty"`
// Product category (1st level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL1 *string `protobuf:"bytes,6,opt,name=category_l1,json=categoryL1,proto3,oneof" json:"category_l1,omitempty"`
// Product category (2nd level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL2 *string `protobuf:"bytes,7,opt,name=category_l2,json=categoryL2,proto3,oneof" json:"category_l2,omitempty"`
// Product category (3rd level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL3 *string `protobuf:"bytes,8,opt,name=category_l3,json=categoryL3,proto3,oneof" json:"category_l3,omitempty"`
// Product category (4th level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL4 *string `protobuf:"bytes,9,opt,name=category_l4,json=categoryL4,proto3,oneof" json:"category_l4,omitempty"`
// Product category (5th level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL5 *string `protobuf:"bytes,10,opt,name=category_l5,json=categoryL5,proto3,oneof" json:"category_l5,omitempty"`
// Product type (1st level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL1 *string `protobuf:"bytes,11,opt,name=product_type_l1,json=productTypeL1,proto3,oneof" json:"product_type_l1,omitempty"`
// Product type (2nd level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL2 *string `protobuf:"bytes,12,opt,name=product_type_l2,json=productTypeL2,proto3,oneof" json:"product_type_l2,omitempty"`
// Product type (3rd level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL3 *string `protobuf:"bytes,13,opt,name=product_type_l3,json=productTypeL3,proto3,oneof" json:"product_type_l3,omitempty"`
// Product type (4th level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL4 *string `protobuf:"bytes,14,opt,name=product_type_l4,json=productTypeL4,proto3,oneof" json:"product_type_l4,omitempty"`
// Product type (5th level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL5 *string `protobuf:"bytes,15,opt,name=product_type_l5,json=productTypeL5,proto3,oneof" json:"product_type_l5,omitempty"`
// Current price of the product.
Price *typepb.Price `protobuf:"bytes,16,opt,name=price,proto3" json:"price,omitempty"`
// Latest available price benchmark for the product's catalog in the benchmark
// country.
BenchmarkPrice *typepb.Price `protobuf:"bytes,17,opt,name=benchmark_price,json=benchmarkPrice,proto3" json:"benchmark_price,omitempty"`
// contains filtered or unexported fields
}Fields available for query in price_competitiveness_product_view table.
Price competitiveness report.
Values are only set for fields requested explicitly in the request's search query.
func (*PriceCompetitivenessProductView) Descriptor
func (*PriceCompetitivenessProductView) Descriptor() ([]byte, []int)Deprecated: Use PriceCompetitivenessProductView.ProtoReflect.Descriptor instead.
func (*PriceCompetitivenessProductView) GetBenchmarkPrice
func (x *PriceCompetitivenessProductView) GetBenchmarkPrice() *typepb.Pricefunc (*PriceCompetitivenessProductView) GetBrand
func (x *PriceCompetitivenessProductView) GetBrand() stringfunc (*PriceCompetitivenessProductView) GetCategoryL1
func (x *PriceCompetitivenessProductView) GetCategoryL1() stringfunc (*PriceCompetitivenessProductView) GetCategoryL2
func (x *PriceCompetitivenessProductView) GetCategoryL2() stringfunc (*PriceCompetitivenessProductView) GetCategoryL3
func (x *PriceCompetitivenessProductView) GetCategoryL3() stringfunc (*PriceCompetitivenessProductView) GetCategoryL4
func (x *PriceCompetitivenessProductView) GetCategoryL4() stringfunc (*PriceCompetitivenessProductView) GetCategoryL5
func (x *PriceCompetitivenessProductView) GetCategoryL5() stringfunc (*PriceCompetitivenessProductView) GetId
func (x *PriceCompetitivenessProductView) GetId() stringfunc (*PriceCompetitivenessProductView) GetOfferId
func (x *PriceCompetitivenessProductView) GetOfferId() stringfunc (*PriceCompetitivenessProductView) GetPrice
func (x *PriceCompetitivenessProductView) GetPrice() *typepb.Pricefunc (*PriceCompetitivenessProductView) GetProductTypeL1
func (x *PriceCompetitivenessProductView) GetProductTypeL1() stringfunc (*PriceCompetitivenessProductView) GetProductTypeL2
func (x *PriceCompetitivenessProductView) GetProductTypeL2() stringfunc (*PriceCompetitivenessProductView) GetProductTypeL3
func (x *PriceCompetitivenessProductView) GetProductTypeL3() stringfunc (*PriceCompetitivenessProductView) GetProductTypeL4
func (x *PriceCompetitivenessProductView) GetProductTypeL4() stringfunc (*PriceCompetitivenessProductView) GetProductTypeL5
func (x *PriceCompetitivenessProductView) GetProductTypeL5() stringfunc (*PriceCompetitivenessProductView) GetReportCountryCode
func (x *PriceCompetitivenessProductView) GetReportCountryCode() stringfunc (*PriceCompetitivenessProductView) GetTitle
func (x *PriceCompetitivenessProductView) GetTitle() stringfunc (*PriceCompetitivenessProductView) ProtoMessage
func (*PriceCompetitivenessProductView) ProtoMessage()func (*PriceCompetitivenessProductView) ProtoReflect
func (x *PriceCompetitivenessProductView) ProtoReflect() protoreflect.Messagefunc (*PriceCompetitivenessProductView) Reset
func (x *PriceCompetitivenessProductView) Reset()func (*PriceCompetitivenessProductView) String
func (x *PriceCompetitivenessProductView) String() stringPriceInsightsProductView
type PriceInsightsProductView struct {
// REST ID of the product, in the form of
// `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
// `product_view` table.
//
// Required in the `SELECT` clause.
Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
// Merchant-provided id of the product.
OfferId *string `protobuf:"bytes,2,opt,name=offer_id,json=offerId,proto3,oneof" json:"offer_id,omitempty"`
// Title of the product.
Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"`
// Brand of the product.
Brand *string `protobuf:"bytes,4,opt,name=brand,proto3,oneof" json:"brand,omitempty"`
// Product category (1st level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL1 *string `protobuf:"bytes,5,opt,name=category_l1,json=categoryL1,proto3,oneof" json:"category_l1,omitempty"`
// Product category (2nd level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL2 *string `protobuf:"bytes,6,opt,name=category_l2,json=categoryL2,proto3,oneof" json:"category_l2,omitempty"`
// Product category (3rd level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL3 *string `protobuf:"bytes,7,opt,name=category_l3,json=categoryL3,proto3,oneof" json:"category_l3,omitempty"`
// Product category (4th level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL4 *string `protobuf:"bytes,8,opt,name=category_l4,json=categoryL4,proto3,oneof" json:"category_l4,omitempty"`
// Product category (5th level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL5 *string `protobuf:"bytes,9,opt,name=category_l5,json=categoryL5,proto3,oneof" json:"category_l5,omitempty"`
// Product type (1st level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL1 *string `protobuf:"bytes,10,opt,name=product_type_l1,json=productTypeL1,proto3,oneof" json:"product_type_l1,omitempty"`
// Product type (2nd level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL2 *string `protobuf:"bytes,11,opt,name=product_type_l2,json=productTypeL2,proto3,oneof" json:"product_type_l2,omitempty"`
// Product type (3rd level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL3 *string `protobuf:"bytes,12,opt,name=product_type_l3,json=productTypeL3,proto3,oneof" json:"product_type_l3,omitempty"`
// Product type (4th level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL4 *string `protobuf:"bytes,13,opt,name=product_type_l4,json=productTypeL4,proto3,oneof" json:"product_type_l4,omitempty"`
// Product type (5th level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL5 *string `protobuf:"bytes,14,opt,name=product_type_l5,json=productTypeL5,proto3,oneof" json:"product_type_l5,omitempty"`
// Current price of the product.
Price *typepb.Price `protobuf:"bytes,15,opt,name=price,proto3" json:"price,omitempty"`
// Latest suggested price for the product.
SuggestedPrice *typepb.Price `protobuf:"bytes,16,opt,name=suggested_price,json=suggestedPrice,proto3" json:"suggested_price,omitempty"`
// Predicted change in impressions as a fraction after introducing the
// suggested price compared to current active price. For example, 0.05 is a 5%
// predicted increase in impressions.
PredictedImpressionsChangeFraction *float64 `protobuf:"fixed64,17,opt,name=predicted_impressions_change_fraction,json=predictedImpressionsChangeFraction,proto3,oneof" json:"predicted_impressions_change_fraction,omitempty"`
// Predicted change in clicks as a fraction after introducing the
// suggested price compared to current active price. For example, 0.05 is a 5%
// predicted increase in clicks.
PredictedClicksChangeFraction *float64 `protobuf:"fixed64,18,opt,name=predicted_clicks_change_fraction,json=predictedClicksChangeFraction,proto3,oneof" json:"predicted_clicks_change_fraction,omitempty"`
// Predicted change in conversions as a fraction after introducing the
// suggested price compared to current active price. For example, 0.05 is a 5%
// predicted increase in conversions).
PredictedConversionsChangeFraction *float64 `protobuf:"fixed64,19,opt,name=predicted_conversions_change_fraction,json=predictedConversionsChangeFraction,proto3,oneof" json:"predicted_conversions_change_fraction,omitempty"`
// The predicted effectiveness of applying the price suggestion, bucketed.
Effectiveness PriceInsightsProductView_Effectiveness `protobuf:"varint,22,opt,name=effectiveness,proto3,enum=google.shopping.merchant.reports.v1.PriceInsightsProductView_Effectiveness" json:"effectiveness,omitempty"`
// contains filtered or unexported fields
}Fields available for query in price_insights_product_view table.
Price insights report.
Values are only set for fields requested explicitly in the request's search query.
func (*PriceInsightsProductView) Descriptor
func (*PriceInsightsProductView) Descriptor() ([]byte, []int)Deprecated: Use PriceInsightsProductView.ProtoReflect.Descriptor instead.
func (*PriceInsightsProductView) GetBrand
func (x *PriceInsightsProductView) GetBrand() stringfunc (*PriceInsightsProductView) GetCategoryL1
func (x *PriceInsightsProductView) GetCategoryL1() stringfunc (*PriceInsightsProductView) GetCategoryL2
func (x *PriceInsightsProductView) GetCategoryL2() stringfunc (*PriceInsightsProductView) GetCategoryL3
func (x *PriceInsightsProductView) GetCategoryL3() stringfunc (*PriceInsightsProductView) GetCategoryL4
func (x *PriceInsightsProductView) GetCategoryL4() stringfunc (*PriceInsightsProductView) GetCategoryL5
func (x *PriceInsightsProductView) GetCategoryL5() stringfunc (*PriceInsightsProductView) GetEffectiveness
func (x *PriceInsightsProductView) GetEffectiveness() PriceInsightsProductView_Effectivenessfunc (*PriceInsightsProductView) GetId
func (x *PriceInsightsProductView) GetId() stringfunc (*PriceInsightsProductView) GetOfferId
func (x *PriceInsightsProductView) GetOfferId() stringfunc (*PriceInsightsProductView) GetPredictedClicksChangeFraction
func (x *PriceInsightsProductView) GetPredictedClicksChangeFraction() float64func (*PriceInsightsProductView) GetPredictedConversionsChangeFraction
func (x *PriceInsightsProductView) GetPredictedConversionsChangeFraction() float64func (*PriceInsightsProductView) GetPredictedImpressionsChangeFraction
func (x *PriceInsightsProductView) GetPredictedImpressionsChangeFraction() float64func (*PriceInsightsProductView) GetPrice
func (x *PriceInsightsProductView) GetPrice() *typepb.Pricefunc (*PriceInsightsProductView) GetProductTypeL1
func (x *PriceInsightsProductView) GetProductTypeL1() stringfunc (*PriceInsightsProductView) GetProductTypeL2
func (x *PriceInsightsProductView) GetProductTypeL2() stringfunc (*PriceInsightsProductView) GetProductTypeL3
func (x *PriceInsightsProductView) GetProductTypeL3() stringfunc (*PriceInsightsProductView) GetProductTypeL4
func (x *PriceInsightsProductView) GetProductTypeL4() stringfunc (*PriceInsightsProductView) GetProductTypeL5
func (x *PriceInsightsProductView) GetProductTypeL5() stringfunc (*PriceInsightsProductView) GetSuggestedPrice
func (x *PriceInsightsProductView) GetSuggestedPrice() *typepb.Pricefunc (*PriceInsightsProductView) GetTitle
func (x *PriceInsightsProductView) GetTitle() stringfunc (*PriceInsightsProductView) ProtoMessage
func (*PriceInsightsProductView) ProtoMessage()func (*PriceInsightsProductView) ProtoReflect
func (x *PriceInsightsProductView) ProtoReflect() protoreflect.Messagefunc (*PriceInsightsProductView) Reset
func (x *PriceInsightsProductView) Reset()func (*PriceInsightsProductView) String
func (x *PriceInsightsProductView) String() stringPriceInsightsProductView_Effectiveness
type PriceInsightsProductView_Effectiveness int32Predicted effectiveness bucket.
Effectiveness indicates which products would benefit most from price
changes. This rating takes into consideration the performance boost
predicted by adjusting the sale price and the difference between your
current price and the suggested price. Price suggestions with HIGH
effectiveness are predicted to drive the largest increase in performance.
PriceInsightsProductView_EFFECTIVENESS_UNSPECIFIED, PriceInsightsProductView_LOW, PriceInsightsProductView_MEDIUM, PriceInsightsProductView_HIGH
const (
// Effectiveness is unknown.
PriceInsightsProductView_EFFECTIVENESS_UNSPECIFIED PriceInsightsProductView_Effectiveness = 0
// Effectiveness is low.
PriceInsightsProductView_LOW PriceInsightsProductView_Effectiveness = 1
// Effectiveness is medium.
PriceInsightsProductView_MEDIUM PriceInsightsProductView_Effectiveness = 2
// Effectiveness is high.
PriceInsightsProductView_HIGH PriceInsightsProductView_Effectiveness = 3
)func (PriceInsightsProductView_Effectiveness) Descriptor
func (PriceInsightsProductView_Effectiveness) Descriptor() protoreflect.EnumDescriptorfunc (PriceInsightsProductView_Effectiveness) Enum
func (PriceInsightsProductView_Effectiveness) EnumDescriptor
func (PriceInsightsProductView_Effectiveness) EnumDescriptor() ([]byte, []int)Deprecated: Use PriceInsightsProductView_Effectiveness.Descriptor instead.
func (PriceInsightsProductView_Effectiveness) Number
func (x PriceInsightsProductView_Effectiveness) Number() protoreflect.EnumNumberfunc (PriceInsightsProductView_Effectiveness) String
func (x PriceInsightsProductView_Effectiveness) String() stringfunc (PriceInsightsProductView_Effectiveness) Type
func (PriceInsightsProductView_Effectiveness) Type() protoreflect.EnumTypeProductPerformanceView
type ProductPerformanceView struct {
// Marketing method to which metrics apply. Segment.
MarketingMethod *MarketingMethod_MarketingMethodEnum `protobuf:"varint,1,opt,name=marketing_method,json=marketingMethod,proto3,enum=google.shopping.merchant.reports.v1.MarketingMethod_MarketingMethodEnum,oneof" json:"marketing_method,omitempty"`
// Date in the merchant timezone to which metrics apply. Segment.
//
// Condition on `date` is required in the `WHERE` clause.
Date *date.Date `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
// First day of the week (Monday) of the metrics date in the merchant
// timezone. Segment.
Week *date.Date `protobuf:"bytes,3,opt,name=week,proto3" json:"week,omitempty"`
// 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.
CustomerCountryCode *string `protobuf:"bytes,4,opt,name=customer_country_code,json=customerCountryCode,proto3,oneof" json:"customer_country_code,omitempty"`
// Merchant-provided id of the product. Segment.
OfferId *string `protobuf:"bytes,5,opt,name=offer_id,json=offerId,proto3,oneof" json:"offer_id,omitempty"`
// Title of the product. Segment.
Title *string `protobuf:"bytes,6,opt,name=title,proto3,oneof" json:"title,omitempty"`
// Brand of the product. Segment.
Brand *string `protobuf:"bytes,7,opt,name=brand,proto3,oneof" json:"brand,omitempty"`
// [Product category (1st
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in Google's product taxonomy. Segment.
CategoryL1 *string `protobuf:"bytes,8,opt,name=category_l1,json=categoryL1,proto3,oneof" json:"category_l1,omitempty"`
// [Product category (2nd
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in Google's product taxonomy. Segment.
CategoryL2 *string `protobuf:"bytes,9,opt,name=category_l2,json=categoryL2,proto3,oneof" json:"category_l2,omitempty"`
// [Product category (3rd
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in Google's product taxonomy. Segment.
CategoryL3 *string `protobuf:"bytes,10,opt,name=category_l3,json=categoryL3,proto3,oneof" json:"category_l3,omitempty"`
// [Product category (4th
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in Google's product taxonomy. Segment.
CategoryL4 *string `protobuf:"bytes,11,opt,name=category_l4,json=categoryL4,proto3,oneof" json:"category_l4,omitempty"`
// [Product category (5th
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in Google's product taxonomy. Segment.
CategoryL5 *string `protobuf:"bytes,12,opt,name=category_l5,json=categoryL5,proto3,oneof" json:"category_l5,omitempty"`
// [Product type (1st
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in merchant's own product taxonomy. Segment.
ProductTypeL1 *string `protobuf:"bytes,13,opt,name=product_type_l1,json=productTypeL1,proto3,oneof" json:"product_type_l1,omitempty"`
// [Product type (2nd
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in merchant's own product taxonomy. Segment.
ProductTypeL2 *string `protobuf:"bytes,14,opt,name=product_type_l2,json=productTypeL2,proto3,oneof" json:"product_type_l2,omitempty"`
// [Product type (3rd
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in merchant's own product taxonomy. Segment.
ProductTypeL3 *string `protobuf:"bytes,15,opt,name=product_type_l3,json=productTypeL3,proto3,oneof" json:"product_type_l3,omitempty"`
// [Product type (4th
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in merchant's own product taxonomy. Segment.
ProductTypeL4 *string `protobuf:"bytes,16,opt,name=product_type_l4,json=productTypeL4,proto3,oneof" json:"product_type_l4,omitempty"`
// [Product type (5th
// level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
// in merchant's own product taxonomy. Segment.
ProductTypeL5 *string `protobuf:"bytes,17,opt,name=product_type_l5,json=productTypeL5,proto3,oneof" json:"product_type_l5,omitempty"`
// Custom label 0 for custom grouping of products. Segment.
CustomLabel0 *string `protobuf:"bytes,18,opt,name=custom_label0,json=customLabel0,proto3,oneof" json:"custom_label0,omitempty"`
// Custom label 1 for custom grouping of products. Segment.
CustomLabel1 *string `protobuf:"bytes,19,opt,name=custom_label1,json=customLabel1,proto3,oneof" json:"custom_label1,omitempty"`
// Custom label 2 for custom grouping of products. Segment.
CustomLabel2 *string `protobuf:"bytes,20,opt,name=custom_label2,json=customLabel2,proto3,oneof" json:"custom_label2,omitempty"`
// Custom label 3 for custom grouping of products. Segment.
CustomLabel3 *string `protobuf:"bytes,21,opt,name=custom_label3,json=customLabel3,proto3,oneof" json:"custom_label3,omitempty"`
// Custom label 4 for custom grouping of products. Segment.
CustomLabel4 *string `protobuf:"bytes,22,opt,name=custom_label4,json=customLabel4,proto3,oneof" json:"custom_label4,omitempty"`
// Number of clicks. Metric.
Clicks *int64 `protobuf:"varint,23,opt,name=clicks,proto3,oneof" json:"clicks,omitempty"`
// Number of times merchant's products are shown. Metric.
Impressions *int64 `protobuf:"varint,24,opt,name=impressions,proto3,oneof" json:"impressions,omitempty"`
// Click-through rate - the number of clicks merchant's products receive
// (clicks) divided by the number of times the products are shown
// (impressions). Metric.
ClickThroughRate *float64 `protobuf:"fixed64,25,opt,name=click_through_rate,json=clickThroughRate,proto3,oneof" json:"click_through_rate,omitempty"`
// 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.
Conversions *float64 `protobuf:"fixed64,26,opt,name=conversions,proto3,oneof" json:"conversions,omitempty"`
// Value of conversions attributed to the product, reported on the conversion
// date. Metric.
//
// Available only for the `FREE` traffic source.
ConversionValue *typepb.Price `protobuf:"bytes,27,opt,name=conversion_value,json=conversionValue,proto3" json:"conversion_value,omitempty"`
// Number of conversions divided by the number of clicks, reported on the
// impression date. Metric.
//
// Available only for the `FREE` traffic source.
ConversionRate *float64 `protobuf:"fixed64,28,opt,name=conversion_rate,json=conversionRate,proto3,oneof" json:"conversion_rate,omitempty"`
// contains filtered or unexported fields
}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.
func (*ProductPerformanceView) Descriptor
func (*ProductPerformanceView) Descriptor() ([]byte, []int)Deprecated: Use ProductPerformanceView.ProtoReflect.Descriptor instead.
func (*ProductPerformanceView) GetBrand
func (x *ProductPerformanceView) GetBrand() stringfunc (*ProductPerformanceView) GetCategoryL1
func (x *ProductPerformanceView) GetCategoryL1() stringfunc (*ProductPerformanceView) GetCategoryL2
func (x *ProductPerformanceView) GetCategoryL2() stringfunc (*ProductPerformanceView) GetCategoryL3
func (x *ProductPerformanceView) GetCategoryL3() stringfunc (*ProductPerformanceView) GetCategoryL4
func (x *ProductPerformanceView) GetCategoryL4() stringfunc (*ProductPerformanceView) GetCategoryL5
func (x *ProductPerformanceView) GetCategoryL5() stringfunc (*ProductPerformanceView) GetClickThroughRate
func (x *ProductPerformanceView) GetClickThroughRate() float64func (*ProductPerformanceView) GetClicks
func (x *ProductPerformanceView) GetClicks() int64func (*ProductPerformanceView) GetConversionRate
func (x *ProductPerformanceView) GetConversionRate() float64func (*ProductPerformanceView) GetConversionValue
func (x *ProductPerformanceView) GetConversionValue() *typepb.Pricefunc (*ProductPerformanceView) GetConversions
func (x *ProductPerformanceView) GetConversions() float64func (*ProductPerformanceView) GetCustomLabel0
func (x *ProductPerformanceView) GetCustomLabel0() stringfunc (*ProductPerformanceView) GetCustomLabel1
func (x *ProductPerformanceView) GetCustomLabel1() stringfunc (*ProductPerformanceView) GetCustomLabel2
func (x *ProductPerformanceView) GetCustomLabel2() stringfunc (*ProductPerformanceView) GetCustomLabel3
func (x *ProductPerformanceView) GetCustomLabel3() stringfunc (*ProductPerformanceView) GetCustomLabel4
func (x *ProductPerformanceView) GetCustomLabel4() stringfunc (*ProductPerformanceView) GetCustomerCountryCode
func (x *ProductPerformanceView) GetCustomerCountryCode() stringfunc (*ProductPerformanceView) GetDate
func (x *ProductPerformanceView) GetDate() *date.Datefunc (*ProductPerformanceView) GetImpressions
func (x *ProductPerformanceView) GetImpressions() int64func (*ProductPerformanceView) GetMarketingMethod
func (x *ProductPerformanceView) GetMarketingMethod() MarketingMethod_MarketingMethodEnumfunc (*ProductPerformanceView) GetOfferId
func (x *ProductPerformanceView) GetOfferId() stringfunc (*ProductPerformanceView) GetProductTypeL1
func (x *ProductPerformanceView) GetProductTypeL1() stringfunc (*ProductPerformanceView) GetProductTypeL2
func (x *ProductPerformanceView) GetProductTypeL2() stringfunc (*ProductPerformanceView) GetProductTypeL3
func (x *ProductPerformanceView) GetProductTypeL3() stringfunc (*ProductPerformanceView) GetProductTypeL4
func (x *ProductPerformanceView) GetProductTypeL4() stringfunc (*ProductPerformanceView) GetProductTypeL5
func (x *ProductPerformanceView) GetProductTypeL5() stringfunc (*ProductPerformanceView) GetTitle
func (x *ProductPerformanceView) GetTitle() stringfunc (*ProductPerformanceView) GetWeek
func (x *ProductPerformanceView) GetWeek() *date.Datefunc (*ProductPerformanceView) ProtoMessage
func (*ProductPerformanceView) ProtoMessage()func (*ProductPerformanceView) ProtoReflect
func (x *ProductPerformanceView) ProtoReflect() protoreflect.Messagefunc (*ProductPerformanceView) Reset
func (x *ProductPerformanceView) Reset()func (*ProductPerformanceView) String
func (x *ProductPerformanceView) String() stringProductView
type ProductView struct {
// REST ID of the product, in the form of
// `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
// on products take this as their `name` parameter.
//
// Required in the `SELECT` clause.
Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
// Channel of the product. Can be `ONLINE` or `LOCAL`.
Channel *typepb.Channel_ChannelEnum `protobuf:"varint,28,opt,name=channel,proto3,enum=google.shopping.type.Channel_ChannelEnum,oneof" json:"channel,omitempty"`
// Language code of the product in BCP 47 format.
LanguageCode *string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3,oneof" json:"language_code,omitempty"`
// Feed label of the product.
FeedLabel *string `protobuf:"bytes,3,opt,name=feed_label,json=feedLabel,proto3,oneof" json:"feed_label,omitempty"`
// Merchant-provided id of the product.
OfferId *string `protobuf:"bytes,4,opt,name=offer_id,json=offerId,proto3,oneof" json:"offer_id,omitempty"`
// Title of the product.
Title *string `protobuf:"bytes,5,opt,name=title,proto3,oneof" json:"title,omitempty"`
// Brand of the product.
Brand *string `protobuf:"bytes,6,opt,name=brand,proto3,oneof" json:"brand,omitempty"`
// Product category (1st level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL1 *string `protobuf:"bytes,7,opt,name=category_l1,json=categoryL1,proto3,oneof" json:"category_l1,omitempty"`
// Product category (2nd level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL2 *string `protobuf:"bytes,8,opt,name=category_l2,json=categoryL2,proto3,oneof" json:"category_l2,omitempty"`
// Product category (3rd level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL3 *string `protobuf:"bytes,9,opt,name=category_l3,json=categoryL3,proto3,oneof" json:"category_l3,omitempty"`
// Product category (4th level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL4 *string `protobuf:"bytes,10,opt,name=category_l4,json=categoryL4,proto3,oneof" json:"category_l4,omitempty"`
// Product category (5th level) in [Google's product
// taxonomy](https://support.google.com/merchants/answer/6324436).
CategoryL5 *string `protobuf:"bytes,11,opt,name=category_l5,json=categoryL5,proto3,oneof" json:"category_l5,omitempty"`
// Product type (1st level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL1 *string `protobuf:"bytes,12,opt,name=product_type_l1,json=productTypeL1,proto3,oneof" json:"product_type_l1,omitempty"`
// Product type (2nd level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL2 *string `protobuf:"bytes,13,opt,name=product_type_l2,json=productTypeL2,proto3,oneof" json:"product_type_l2,omitempty"`
// Product type (3rd level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL3 *string `protobuf:"bytes,14,opt,name=product_type_l3,json=productTypeL3,proto3,oneof" json:"product_type_l3,omitempty"`
// Product type (4th level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL4 *string `protobuf:"bytes,15,opt,name=product_type_l4,json=productTypeL4,proto3,oneof" json:"product_type_l4,omitempty"`
// Product type (5th level) in merchant's own [product
// taxonomy](https://support.google.com/merchants/answer/6324406).
ProductTypeL5 *string `protobuf:"bytes,16,opt,name=product_type_l5,json=productTypeL5,proto3,oneof" json:"product_type_l5,omitempty"`
// Product price. Absent if the information about the price of the product is
// not available.
Price *typepb.Price `protobuf:"bytes,17,opt,name=price,proto3" json:"price,omitempty"`
// [Condition](https://support.google.com/merchants/answer/6324469) of the
// product.
Condition *string `protobuf:"bytes,18,opt,name=condition,proto3,oneof" json:"condition,omitempty"`
// [Availability](https://support.google.com/merchants/answer/6324448) of the
// product.
Availability *string `protobuf:"bytes,19,opt,name=availability,proto3,oneof" json:"availability,omitempty"`
// Normalized [shipping
// label](https://support.google.com/merchants/answer/6324504) specified in
// the data source.
ShippingLabel *string `protobuf:"bytes,20,opt,name=shipping_label,json=shippingLabel,proto3,oneof" json:"shipping_label,omitempty"`
// List of Global Trade Item Numbers (GTINs) of the product.
Gtin []string `protobuf:"bytes,21,rep,name=gtin,proto3" json:"gtin,omitempty"`
// Item group id provided by the merchant for grouping variants together.
ItemGroupId *string `protobuf:"bytes,22,opt,name=item_group_id,json=itemGroupId,proto3,oneof" json:"item_group_id,omitempty"`
// Link to the processed image of the product, hosted on the Google
// infrastructure.
ThumbnailLink *string `protobuf:"bytes,23,opt,name=thumbnail_link,json=thumbnailLink,proto3,oneof" json:"thumbnail_link,omitempty"`
// The time the merchant created the product in timestamp seconds.
CreationTime *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
// Expiration date for the product, specified on insertion.
ExpirationDate *date.Date `protobuf:"bytes,25,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"`
// Aggregated status.
AggregatedReportingContextStatus *ProductView_AggregatedReportingContextStatus `protobuf:"varint,26,opt,name=aggregated_reporting_context_status,json=aggregatedReportingContextStatus,proto3,enum=google.shopping.merchant.reports.v1.ProductView_AggregatedReportingContextStatus,oneof" json:"aggregated_reporting_context_status,omitempty"`
// List of item issues for the product.
//
// **This field cannot be used for sorting the results.**
//
// **Only selected attributes of this field (for example,
// `item_issues.severity.aggregated_severity`) can be used for filtering the
// results.**
ItemIssues []*ProductView_ItemIssue `protobuf:"bytes,27,rep,name=item_issues,json=itemIssues,proto3" json:"item_issues,omitempty"`
// Estimated performance potential compared to highest performing products of
// the merchant.
ClickPotential ProductView_ClickPotential `protobuf:"varint,29,opt,name=click_potential,json=clickPotential,proto3,enum=google.shopping.merchant.reports.v1.ProductView_ClickPotential" json:"click_potential,omitempty"`
// Rank of the product based on its click potential. A product with
// `click_potential_rank` 1 has the highest click potential among the
// merchant's products that fulfill the search query conditions.
ClickPotentialRank *int64 `protobuf:"varint,30,opt,name=click_potential_rank,json=clickPotentialRank,proto3,oneof" json:"click_potential_rank,omitempty"`
// contains filtered or unexported fields
}Fields available for query in product_view table.
Products in the current inventory. Products in this table are the same as in
Products sub-API but not all product attributes from Products sub-API are
available for query in this table. In contrast to Products sub-API, this
table allows to filter the returned list of products by product attributes.
To retrieve a single product by id or list all products, Products sub-API
should be used.
Values are only set for fields requested explicitly in the request's search query.
func (*ProductView) Descriptor
func (*ProductView) Descriptor() ([]byte, []int)Deprecated: Use ProductView.ProtoReflect.Descriptor instead.
func (*ProductView) GetAggregatedReportingContextStatus
func (x *ProductView) GetAggregatedReportingContextStatus() ProductView_AggregatedReportingContextStatusfunc (*ProductView) GetAvailability
func (x *ProductView) GetAvailability() stringfunc (*ProductView) GetBrand
func (x *ProductView) GetBrand() stringfunc (*ProductView) GetCategoryL1
func (x *ProductView) GetCategoryL1() stringfunc (*ProductView) GetCategoryL2
func (x *ProductView) GetCategoryL2() stringfunc (*ProductView) GetCategoryL3
func (x *ProductView) GetCategoryL3() stringfunc (*ProductView) GetCategoryL4
func (x *ProductView) GetCategoryL4() stringfunc (*ProductView) GetCategoryL5
func (x *ProductView) GetCategoryL5() stringfunc (*ProductView) GetChannel
func (x *ProductView) GetChannel() typepb.Channel_ChannelEnumfunc (*ProductView) GetClickPotential
func (x *ProductView) GetClickPotential() ProductView_ClickPotentialfunc (*ProductView) GetClickPotentialRank
func (x *ProductView) GetClickPotentialRank() int64func (*ProductView) GetCondition
func (x *ProductView) GetCondition() stringfunc (*ProductView) GetCreationTime
func (x *ProductView) GetCreationTime() *timestamppb.Timestampfunc (*ProductView) GetExpirationDate
func (x *ProductView) GetExpirationDate() *date.Datefunc (*ProductView) GetFeedLabel
func (x *ProductView) GetFeedLabel() stringfunc (*ProductView) GetGtin
func (x *ProductView) GetGtin() []stringfunc (*ProductView) GetId
func (x *ProductView) GetId() stringfunc (*ProductView) GetItemGroupId
func (x *ProductView) GetItemGroupId() stringfunc (*ProductView) GetItemIssues
func (x *ProductView) GetItemIssues() []*ProductView_ItemIssuefunc (*ProductView) GetLanguageCode
func (x *ProductView) GetLanguageCode() stringfunc (*ProductView) GetOfferId
func (x *ProductView) GetOfferId() stringfunc (*ProductView) GetPrice
func (x *ProductView) GetPrice() *typepb.Pricefunc (*ProductView) GetProductTypeL1
func (x *ProductView) GetProductTypeL1() stringfunc (*ProductView) GetProductTypeL2
func (x *ProductView) GetProductTypeL2() stringfunc (*ProductView) GetProductTypeL3
func (x *ProductView) GetProductTypeL3() stringfunc (*ProductView) GetProductTypeL4
func (x *ProductView) GetProductTypeL4() stringfunc (*ProductView) GetProductTypeL5
func (x *ProductView) GetProductTypeL5() stringfunc (*ProductView) GetShippingLabel
func (x *ProductView) GetShippingLabel() stringfunc (*ProductView) GetThumbnailLink
func (x *ProductView) GetThumbnailLink() stringfunc (*ProductView) GetTitle
func (x *ProductView) GetTitle() stringfunc (*ProductView) ProtoMessage
func (*ProductView) ProtoMessage()func (*ProductView) ProtoReflect
func (x *ProductView) ProtoReflect() protoreflect.Messagefunc (*ProductView) Reset
func (x *ProductView) Reset()func (*ProductView) String
func (x *ProductView) String() stringProductView_AggregatedReportingContextStatus
type ProductView_AggregatedReportingContextStatus int32Status of the product aggregated for all reporting contexts.
Here's an example of how the aggregated status is computed:
| Free listings | Shopping ads | Status |
|---|---|---|
| Approved | Approved | ELIGIBLE |
| Approved | Pending | ELIGIBLE |
| Approved | Disapproved | ELIGIBLE_LIMITED |
| Pending | Pending | PENDING |
| Disapproved | Disapproved | NOT_ELIGIBLE_OR_DISAPPROVED |
ProductView_AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED, ProductView_NOT_ELIGIBLE_OR_DISAPPROVED, ProductView_PENDING, ProductView_ELIGIBLE_LIMITED, ProductView_ELIGIBLE
const (
// Not specified.
ProductView_AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED ProductView_AggregatedReportingContextStatus = 0
// Product is not eligible or is disapproved for all reporting contexts.
ProductView_NOT_ELIGIBLE_OR_DISAPPROVED ProductView_AggregatedReportingContextStatus = 1
// Product's status is pending in all reporting contexts.
ProductView_PENDING ProductView_AggregatedReportingContextStatus = 2
// Product is eligible for some (but not all) reporting contexts.
ProductView_ELIGIBLE_LIMITED ProductView_AggregatedReportingContextStatus = 3
// Product is eligible for all reporting contexts.
ProductView_ELIGIBLE ProductView_AggregatedReportingContextStatus = 4
)func (ProductView_AggregatedReportingContextStatus) Descriptor
func (ProductView_AggregatedReportingContextStatus) Descriptor() protoreflect.EnumDescriptorfunc (ProductView_AggregatedReportingContextStatus) Enum
func (x ProductView_AggregatedReportingContextStatus) Enum() *ProductView_AggregatedReportingContextStatusfunc (ProductView_AggregatedReportingContextStatus) EnumDescriptor
func (ProductView_AggregatedReportingContextStatus) EnumDescriptor() ([]byte, []int)Deprecated: Use ProductView_AggregatedReportingContextStatus.Descriptor instead.
func (ProductView_AggregatedReportingContextStatus) Number
func (x ProductView_AggregatedReportingContextStatus) Number() protoreflect.EnumNumberfunc (ProductView_AggregatedReportingContextStatus) String
func (x ProductView_AggregatedReportingContextStatus) String() stringfunc (ProductView_AggregatedReportingContextStatus) Type
func (ProductView_AggregatedReportingContextStatus) Type() protoreflect.EnumTypeProductView_ClickPotential
type ProductView_ClickPotential int32A product's click potential estimates its performance potential compared to highest performing products of the merchant. Click potential of a product helps merchants to prioritize which products to fix and helps them understand how products are performing against their potential.
ProductView_CLICK_POTENTIAL_UNSPECIFIED, ProductView_LOW, ProductView_MEDIUM, ProductView_HIGH
const (
// Unknown predicted clicks impact.
ProductView_CLICK_POTENTIAL_UNSPECIFIED ProductView_ClickPotential = 0
// Potential to receive a low number of clicks compared to the highest
// performing products of the merchant.
ProductView_LOW ProductView_ClickPotential = 1
// Potential to receive a moderate number of clicks compared to the highest
// performing products of the merchant.
ProductView_MEDIUM ProductView_ClickPotential = 2
// Potential to receive a similar number of clicks as the highest performing
// products of the merchant.
ProductView_HIGH ProductView_ClickPotential = 3
)func (ProductView_ClickPotential) Descriptor
func (ProductView_ClickPotential) Descriptor() protoreflect.EnumDescriptorfunc (ProductView_ClickPotential) Enum
func (x ProductView_ClickPotential) Enum() *ProductView_ClickPotentialfunc (ProductView_ClickPotential) EnumDescriptor
func (ProductView_ClickPotential) EnumDescriptor() ([]byte, []int)Deprecated: Use ProductView_ClickPotential.Descriptor instead.
func (ProductView_ClickPotential) Number
func (x ProductView_ClickPotential) Number() protoreflect.EnumNumberfunc (ProductView_ClickPotential) String
func (x ProductView_ClickPotential) String() stringfunc (ProductView_ClickPotential) Type
func (ProductView_ClickPotential) Type() protoreflect.EnumTypeProductView_ItemIssue
type ProductView_ItemIssue struct {
// Item issue type.
Type *ProductView_ItemIssue_ItemIssueType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// Item issue severity.
Severity *ProductView_ItemIssue_ItemIssueSeverity `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"`
// Item issue resolution.
Resolution *ProductView_ItemIssue_ItemIssueResolution `protobuf:"varint,3,opt,name=resolution,proto3,enum=google.shopping.merchant.reports.v1.ProductView_ItemIssue_ItemIssueResolution,oneof" json:"resolution,omitempty"`
// contains filtered or unexported fields
}Item issue associated with the product.
func (*ProductView_ItemIssue) Descriptor
func (*ProductView_ItemIssue) Descriptor() ([]byte, []int)Deprecated: Use ProductView_ItemIssue.ProtoReflect.Descriptor instead.
func (*ProductView_ItemIssue) GetResolution
func (x *ProductView_ItemIssue) GetResolution() ProductView_ItemIssue_ItemIssueResolutionfunc (*ProductView_ItemIssue) GetSeverity
func (x *ProductView_ItemIssue) GetSeverity() *ProductView_ItemIssue_ItemIssueSeverityfunc (*ProductView_ItemIssue) GetType
func (x *ProductView_ItemIssue) GetType() *ProductView_ItemIssue_ItemIssueTypefunc (*ProductView_ItemIssue) ProtoMessage
func (*ProductView_ItemIssue) ProtoMessage()func (*ProductView_ItemIssue) ProtoReflect
func (x *ProductView_ItemIssue) ProtoReflect() protoreflect.Messagefunc (*ProductView_ItemIssue) Reset
func (x *ProductView_ItemIssue) Reset()func (*ProductView_ItemIssue) String
func (x *ProductView_ItemIssue) String() stringProductView_ItemIssue_ItemIssueResolution
type ProductView_ItemIssue_ItemIssueResolution int32How to resolve the issue.
ProductView_ItemIssue_ITEM_ISSUE_RESOLUTION_UNSPECIFIED, ProductView_ItemIssue_MERCHANT_ACTION, ProductView_ItemIssue_PENDING_PROCESSING
const (
// Not specified.
ProductView_ItemIssue_ITEM_ISSUE_RESOLUTION_UNSPECIFIED ProductView_ItemIssue_ItemIssueResolution = 0
// The merchant has to fix the issue.
ProductView_ItemIssue_MERCHANT_ACTION ProductView_ItemIssue_ItemIssueResolution = 1
// The issue will be resolved automatically (for example, image crawl) or
// through a Google review. No merchant action is required now. Resolution
// might lead to another issue (for example, if crawl fails).
ProductView_ItemIssue_PENDING_PROCESSING ProductView_ItemIssue_ItemIssueResolution = 2
)func (ProductView_ItemIssue_ItemIssueResolution) Descriptor
func (ProductView_ItemIssue_ItemIssueResolution) Descriptor() protoreflect.EnumDescriptorfunc (ProductView_ItemIssue_ItemIssueResolution) Enum
func (x ProductView_ItemIssue_ItemIssueResolution) Enum() *ProductView_ItemIssue_ItemIssueResolutionfunc (ProductView_ItemIssue_ItemIssueResolution) EnumDescriptor
func (ProductView_ItemIssue_ItemIssueResolution) EnumDescriptor() ([]byte, []int)Deprecated: Use ProductView_ItemIssue_ItemIssueResolution.Descriptor instead.
func (ProductView_ItemIssue_ItemIssueResolution) Number
func (x ProductView_ItemIssue_ItemIssueResolution) Number() protoreflect.EnumNumberfunc (ProductView_ItemIssue_ItemIssueResolution) String
func (x ProductView_ItemIssue_ItemIssueResolution) String() stringfunc (ProductView_ItemIssue_ItemIssueResolution) Type
func (ProductView_ItemIssue_ItemIssueResolution) Type() protoreflect.EnumTypeProductView_ItemIssue_ItemIssueSeverity
type ProductView_ItemIssue_ItemIssueSeverity struct {
// Issue severity per reporting context.
SeverityPerReportingContext []*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext `protobuf:"bytes,1,rep,name=severity_per_reporting_context,json=severityPerReportingContext,proto3" json:"severity_per_reporting_context,omitempty"`
// Aggregated severity of the issue for all reporting contexts it affects.
//
// **This field can be used for filtering the results.**
AggregatedSeverity *ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity `protobuf:"varint,2,opt,name=aggregated_severity,json=aggregatedSeverity,proto3,enum=google.shopping.merchant.reports.v1.ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity,oneof" json:"aggregated_severity,omitempty"`
// contains filtered or unexported fields
}How the issue affects the serving of the product.
func (*ProductView_ItemIssue_ItemIssueSeverity) Descriptor
func (*ProductView_ItemIssue_ItemIssueSeverity) Descriptor() ([]byte, []int)Deprecated: Use ProductView_ItemIssue_ItemIssueSeverity.ProtoReflect.Descriptor instead.
func (*ProductView_ItemIssue_ItemIssueSeverity) GetAggregatedSeverity
func (x *ProductView_ItemIssue_ItemIssueSeverity) GetAggregatedSeverity() ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverityfunc (*ProductView_ItemIssue_ItemIssueSeverity) GetSeverityPerReportingContext
func (x *ProductView_ItemIssue_ItemIssueSeverity) GetSeverityPerReportingContext() []*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContextfunc (*ProductView_ItemIssue_ItemIssueSeverity) ProtoMessage
func (*ProductView_ItemIssue_ItemIssueSeverity) ProtoMessage()func (*ProductView_ItemIssue_ItemIssueSeverity) ProtoReflect
func (x *ProductView_ItemIssue_ItemIssueSeverity) ProtoReflect() protoreflect.Messagefunc (*ProductView_ItemIssue_ItemIssueSeverity) Reset
func (x *ProductView_ItemIssue_ItemIssueSeverity) Reset()func (*ProductView_ItemIssue_ItemIssueSeverity) String
func (x *ProductView_ItemIssue_ItemIssueSeverity) String() stringProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity
type ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity int32Issue severity aggregated for all reporting contexts.
ProductView_ItemIssue_ItemIssueSeverity_AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED, ProductView_ItemIssue_ItemIssueSeverity_DISAPPROVED, ProductView_ItemIssue_ItemIssueSeverity_DEMOTED, ProductView_ItemIssue_ItemIssueSeverity_PENDING
const (
// Not specified.
ProductView_ItemIssue_ItemIssueSeverity_AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity = 0
// Issue disapproves the product in at least one reporting context.
ProductView_ItemIssue_ItemIssueSeverity_DISAPPROVED ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity = 1
// Issue demotes the product in all reporting contexts it affects.
ProductView_ItemIssue_ItemIssueSeverity_DEMOTED ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity = 2
// Issue resolution is `PENDING_PROCESSING`.
ProductView_ItemIssue_ItemIssueSeverity_PENDING ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity = 3
)func (ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) Descriptor
func (ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) Descriptor() protoreflect.EnumDescriptorfunc (ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) Enum
func (x ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) Enum() *ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverityfunc (ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) EnumDescriptor
func (ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) EnumDescriptor() ([]byte, []int)Deprecated: Use ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity.Descriptor instead.
func (ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) Number
func (x ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) Number() protoreflect.EnumNumberfunc (ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) String
func (x ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) String() stringfunc (ProductView_ItemIssue_ItemIssueSeverity_AggregatedIssueSeverity) Type
ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext
type ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext struct {
// Reporting context the issue applies to.
ReportingContext *typepb.ReportingContext_ReportingContextEnum `protobuf:"varint,1,opt,name=reporting_context,json=reportingContext,proto3,enum=google.shopping.type.ReportingContext_ReportingContextEnum,oneof" json:"reporting_context,omitempty"`
// List of disapproved countries in the reporting context, represented
// in ISO 3166 format.
DisapprovedCountries []string `protobuf:"bytes,2,rep,name=disapproved_countries,json=disapprovedCountries,proto3" json:"disapproved_countries,omitempty"`
// List of demoted countries in the reporting context, represented in
// ISO 3166 format.
DemotedCountries []string `protobuf:"bytes,3,rep,name=demoted_countries,json=demotedCountries,proto3" json:"demoted_countries,omitempty"`
// contains filtered or unexported fields
}Issue severity per reporting context.
func (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) Descriptor
func (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) Descriptor() ([]byte, []int)Deprecated: Use ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext.ProtoReflect.Descriptor instead.
func (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) GetDemotedCountries
func (x *ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) GetDemotedCountries() []stringfunc (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) GetDisapprovedCountries
func (x *ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) GetDisapprovedCountries() []stringfunc (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) GetReportingContext
func (x *ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) GetReportingContext() typepb.ReportingContext_ReportingContextEnumfunc (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) ProtoMessage
func (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) ProtoMessage()func (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) ProtoReflect
func (x *ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) ProtoReflect() protoreflect.Messagefunc (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) Reset
func (x *ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) Reset()func (*ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) String
func (x *ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext) String() stringProductView_ItemIssue_ItemIssueType
type ProductView_ItemIssue_ItemIssueType struct {
// Error code of the issue, equivalent to the `code` of [Product
// issues](https://developers.google.com/shopping-content/guides/product-issues).
Code *string `protobuf:"bytes,1,opt,name=code,proto3,oneof" json:"code,omitempty"`
// Canonical attribute name for attribute-specific issues.
CanonicalAttribute *string `protobuf:"bytes,2,opt,name=canonical_attribute,json=canonicalAttribute,proto3,oneof" json:"canonical_attribute,omitempty"`
// contains filtered or unexported fields
}Issue type.
func (*ProductView_ItemIssue_ItemIssueType) Descriptor
func (*ProductView_ItemIssue_ItemIssueType) Descriptor() ([]byte, []int)Deprecated: Use ProductView_ItemIssue_ItemIssueType.ProtoReflect.Descriptor instead.
func (*ProductView_ItemIssue_ItemIssueType) GetCanonicalAttribute
func (x *ProductView_ItemIssue_ItemIssueType) GetCanonicalAttribute() stringfunc (*ProductView_ItemIssue_ItemIssueType) GetCode
func (x *ProductView_ItemIssue_ItemIssueType) GetCode() stringfunc (*ProductView_ItemIssue_ItemIssueType) ProtoMessage
func (*ProductView_ItemIssue_ItemIssueType) ProtoMessage()func (*ProductView_ItemIssue_ItemIssueType) ProtoReflect
func (x *ProductView_ItemIssue_ItemIssueType) ProtoReflect() protoreflect.Messagefunc (*ProductView_ItemIssue_ItemIssueType) Reset
func (x *ProductView_ItemIssue_ItemIssueType) Reset()func (*ProductView_ItemIssue_ItemIssueType) String
func (x *ProductView_ItemIssue_ItemIssueType) String() stringRelativeDemand
type RelativeDemand struct {
// contains filtered or unexported fields
}Relative demand of a product cluster or brand in the Best sellers report.
func (*RelativeDemand) Descriptor
func (*RelativeDemand) Descriptor() ([]byte, []int)Deprecated: Use RelativeDemand.ProtoReflect.Descriptor instead.
func (*RelativeDemand) ProtoMessage
func (*RelativeDemand) ProtoMessage()func (*RelativeDemand) ProtoReflect
func (x *RelativeDemand) ProtoReflect() protoreflect.Messagefunc (*RelativeDemand) Reset
func (x *RelativeDemand) Reset()func (*RelativeDemand) String
func (x *RelativeDemand) String() stringRelativeDemandChangeType
type RelativeDemandChangeType struct {
// contains filtered or unexported fields
}Relative demand of a product cluster or brand in the Best sellers report compared to the previous time period.
func (*RelativeDemandChangeType) Descriptor
func (*RelativeDemandChangeType) Descriptor() ([]byte, []int)Deprecated: Use RelativeDemandChangeType.ProtoReflect.Descriptor instead.
func (*RelativeDemandChangeType) ProtoMessage
func (*RelativeDemandChangeType) ProtoMessage()func (*RelativeDemandChangeType) ProtoReflect
func (x *RelativeDemandChangeType) ProtoReflect() protoreflect.Messagefunc (*RelativeDemandChangeType) Reset
func (x *RelativeDemandChangeType) Reset()func (*RelativeDemandChangeType) String
func (x *RelativeDemandChangeType) String() stringRelativeDemandChangeType_RelativeDemandChangeTypeEnum
type RelativeDemandChangeType_RelativeDemandChangeTypeEnum int32Relative demand change type values.
RelativeDemandChangeType_RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED, RelativeDemandChangeType_SINKER, RelativeDemandChangeType_FLAT, RelativeDemandChangeType_RISER
const (
// Not specified.
RelativeDemandChangeType_RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED RelativeDemandChangeType_RelativeDemandChangeTypeEnum = 0
// Relative demand is lower than the previous time period.
RelativeDemandChangeType_SINKER RelativeDemandChangeType_RelativeDemandChangeTypeEnum = 1
// Relative demand is equal to the previous time period.
RelativeDemandChangeType_FLAT RelativeDemandChangeType_RelativeDemandChangeTypeEnum = 2
// Relative demand is higher than the previous time period.
RelativeDemandChangeType_RISER RelativeDemandChangeType_RelativeDemandChangeTypeEnum = 3
)func (RelativeDemandChangeType_RelativeDemandChangeTypeEnum) Descriptor
func (RelativeDemandChangeType_RelativeDemandChangeTypeEnum) Descriptor() protoreflect.EnumDescriptorfunc (RelativeDemandChangeType_RelativeDemandChangeTypeEnum) Enum
func (x RelativeDemandChangeType_RelativeDemandChangeTypeEnum) Enum() *RelativeDemandChangeType_RelativeDemandChangeTypeEnumfunc (RelativeDemandChangeType_RelativeDemandChangeTypeEnum) EnumDescriptor
func (RelativeDemandChangeType_RelativeDemandChangeTypeEnum) EnumDescriptor() ([]byte, []int)Deprecated: Use RelativeDemandChangeType_RelativeDemandChangeTypeEnum.Descriptor instead.
func (RelativeDemandChangeType_RelativeDemandChangeTypeEnum) Number
func (x RelativeDemandChangeType_RelativeDemandChangeTypeEnum) Number() protoreflect.EnumNumberfunc (RelativeDemandChangeType_RelativeDemandChangeTypeEnum) String
func (x RelativeDemandChangeType_RelativeDemandChangeTypeEnum) String() stringfunc (RelativeDemandChangeType_RelativeDemandChangeTypeEnum) Type
RelativeDemand_RelativeDemandEnum
type RelativeDemand_RelativeDemandEnum int32Relative demand values.
RelativeDemand_RELATIVE_DEMAND_ENUM_UNSPECIFIED, RelativeDemand_VERY_LOW, RelativeDemand_LOW, RelativeDemand_MEDIUM, RelativeDemand_HIGH, RelativeDemand_VERY_HIGH
const (
// Not specified.
RelativeDemand_RELATIVE_DEMAND_ENUM_UNSPECIFIED RelativeDemand_RelativeDemandEnum = 0
// Demand is 0-5% of the demand of the highest ranked product cluster or
// brand.
RelativeDemand_VERY_LOW RelativeDemand_RelativeDemandEnum = 10
// Demand is 6-10% of the demand of the highest ranked product cluster or
// brand.
RelativeDemand_LOW RelativeDemand_RelativeDemandEnum = 20
// Demand is 11-20% of the demand of the highest ranked product cluster or
// brand.
RelativeDemand_MEDIUM RelativeDemand_RelativeDemandEnum = 30
// Demand is 21-50% of the demand of the highest ranked product cluster or
// brand.
RelativeDemand_HIGH RelativeDemand_RelativeDemandEnum = 40
// Demand is 51-100% of the demand of the highest ranked product cluster or
// brand.
RelativeDemand_VERY_HIGH RelativeDemand_RelativeDemandEnum = 50
)func (RelativeDemand_RelativeDemandEnum) Descriptor
func (RelativeDemand_RelativeDemandEnum) Descriptor() protoreflect.EnumDescriptorfunc (RelativeDemand_RelativeDemandEnum) Enum
func (x RelativeDemand_RelativeDemandEnum) Enum() *RelativeDemand_RelativeDemandEnumfunc (RelativeDemand_RelativeDemandEnum) EnumDescriptor
func (RelativeDemand_RelativeDemandEnum) EnumDescriptor() ([]byte, []int)Deprecated: Use RelativeDemand_RelativeDemandEnum.Descriptor instead.
func (RelativeDemand_RelativeDemandEnum) Number
func (x RelativeDemand_RelativeDemandEnum) Number() protoreflect.EnumNumberfunc (RelativeDemand_RelativeDemandEnum) String
func (x RelativeDemand_RelativeDemandEnum) String() stringfunc (RelativeDemand_RelativeDemandEnum) Type
func (RelativeDemand_RelativeDemandEnum) Type() protoreflect.EnumTypeReportGranularity
type ReportGranularity struct {
// contains filtered or unexported fields
}Granularity of the Best sellers report. Best sellers reports are computed over a week and a month timeframe.
func (*ReportGranularity) Descriptor
func (*ReportGranularity) Descriptor() ([]byte, []int)Deprecated: Use ReportGranularity.ProtoReflect.Descriptor instead.
func (*ReportGranularity) ProtoMessage
func (*ReportGranularity) ProtoMessage()func (*ReportGranularity) ProtoReflect
func (x *ReportGranularity) ProtoReflect() protoreflect.Messagefunc (*ReportGranularity) Reset
func (x *ReportGranularity) Reset()func (*ReportGranularity) String
func (x *ReportGranularity) String() stringReportGranularity_ReportGranularityEnum
type ReportGranularity_ReportGranularityEnum int32Report granularity values.
ReportGranularity_REPORT_GRANULARITY_ENUM_UNSPECIFIED, ReportGranularity_WEEKLY, ReportGranularity_MONTHLY
const (
// Not specified.
ReportGranularity_REPORT_GRANULARITY_ENUM_UNSPECIFIED ReportGranularity_ReportGranularityEnum = 0
// Report is computed over a week timeframe.
ReportGranularity_WEEKLY ReportGranularity_ReportGranularityEnum = 1
// Report is computed over a month timeframe.
ReportGranularity_MONTHLY ReportGranularity_ReportGranularityEnum = 2
)func (ReportGranularity_ReportGranularityEnum) Descriptor
func (ReportGranularity_ReportGranularityEnum) Descriptor() protoreflect.EnumDescriptorfunc (ReportGranularity_ReportGranularityEnum) Enum
func (ReportGranularity_ReportGranularityEnum) EnumDescriptor
func (ReportGranularity_ReportGranularityEnum) EnumDescriptor() ([]byte, []int)Deprecated: Use ReportGranularity_ReportGranularityEnum.Descriptor instead.
func (ReportGranularity_ReportGranularityEnum) Number
func (x ReportGranularity_ReportGranularityEnum) Number() protoreflect.EnumNumberfunc (ReportGranularity_ReportGranularityEnum) String
func (x ReportGranularity_ReportGranularityEnum) String() stringfunc (ReportGranularity_ReportGranularityEnum) Type
func (ReportGranularity_ReportGranularityEnum) Type() protoreflect.EnumTypeReportRow
type ReportRow struct {
// Fields available for query in `product_performance_view` table.
ProductPerformanceView *ProductPerformanceView `protobuf:"bytes,1,opt,name=product_performance_view,json=productPerformanceView,proto3" json:"product_performance_view,omitempty"`
// Fields available for query in `non_product_performance_view` table.
NonProductPerformanceView *NonProductPerformanceView `protobuf:"bytes,7,opt,name=non_product_performance_view,json=nonProductPerformanceView,proto3" json:"non_product_performance_view,omitempty"`
// Fields available for query in `product_view` table.
ProductView *ProductView `protobuf:"bytes,2,opt,name=product_view,json=productView,proto3" json:"product_view,omitempty"`
// Fields available for query in `price_competitiveness_product_view` table.
PriceCompetitivenessProductView *PriceCompetitivenessProductView `protobuf:"bytes,3,opt,name=price_competitiveness_product_view,json=priceCompetitivenessProductView,proto3" json:"price_competitiveness_product_view,omitempty"`
// Fields available for query in `price_insights_product_view` table.
PriceInsightsProductView *PriceInsightsProductView `protobuf:"bytes,4,opt,name=price_insights_product_view,json=priceInsightsProductView,proto3" json:"price_insights_product_view,omitempty"`
// Fields available for query in `best_sellers_product_cluster_view` table.
BestSellersProductClusterView *BestSellersProductClusterView `protobuf:"bytes,5,opt,name=best_sellers_product_cluster_view,json=bestSellersProductClusterView,proto3" json:"best_sellers_product_cluster_view,omitempty"`
// Fields available for query in `best_sellers_brand_view` table.
BestSellersBrandView *BestSellersBrandView `protobuf:"bytes,6,opt,name=best_sellers_brand_view,json=bestSellersBrandView,proto3" json:"best_sellers_brand_view,omitempty"`
// Fields available for query in `competitive_visibility_competitor_view`
// table.
CompetitiveVisibilityCompetitorView *CompetitiveVisibilityCompetitorView `protobuf:"bytes,8,opt,name=competitive_visibility_competitor_view,json=competitiveVisibilityCompetitorView,proto3" json:"competitive_visibility_competitor_view,omitempty"`
// Fields available for query in `competitive_visibility_top_merchant_view`
// table.
CompetitiveVisibilityTopMerchantView *CompetitiveVisibilityTopMerchantView `protobuf:"bytes,9,opt,name=competitive_visibility_top_merchant_view,json=competitiveVisibilityTopMerchantView,proto3" json:"competitive_visibility_top_merchant_view,omitempty"`
// Fields available for query in `competitive_visibility_benchmark_view`
// table.
CompetitiveVisibilityBenchmarkView *CompetitiveVisibilityBenchmarkView `protobuf:"bytes,10,opt,name=competitive_visibility_benchmark_view,json=competitiveVisibilityBenchmarkView,proto3" json:"competitive_visibility_benchmark_view,omitempty"`
// contains filtered or unexported fields
}Result row returned from the search query.
Only the message corresponding to the queried table is populated in the response. Within the populated message, only the fields requested explicitly in the query are populated.
func (*ReportRow) Descriptor
Deprecated: Use ReportRow.ProtoReflect.Descriptor instead.
func (*ReportRow) GetBestSellersBrandView
func (x *ReportRow) GetBestSellersBrandView() *BestSellersBrandViewfunc (*ReportRow) GetBestSellersProductClusterView
func (x *ReportRow) GetBestSellersProductClusterView() *BestSellersProductClusterViewfunc (*ReportRow) GetCompetitiveVisibilityBenchmarkView
func (x *ReportRow) GetCompetitiveVisibilityBenchmarkView() *CompetitiveVisibilityBenchmarkViewfunc (*ReportRow) GetCompetitiveVisibilityCompetitorView
func (x *ReportRow) GetCompetitiveVisibilityCompetitorView() *CompetitiveVisibilityCompetitorViewfunc (*ReportRow) GetCompetitiveVisibilityTopMerchantView
func (x *ReportRow) GetCompetitiveVisibilityTopMerchantView() *CompetitiveVisibilityTopMerchantViewfunc (*ReportRow) GetNonProductPerformanceView
func (x *ReportRow) GetNonProductPerformanceView() *NonProductPerformanceViewfunc (*ReportRow) GetPriceCompetitivenessProductView
func (x *ReportRow) GetPriceCompetitivenessProductView() *PriceCompetitivenessProductViewfunc (*ReportRow) GetPriceInsightsProductView
func (x *ReportRow) GetPriceInsightsProductView() *PriceInsightsProductViewfunc (*ReportRow) GetProductPerformanceView
func (x *ReportRow) GetProductPerformanceView() *ProductPerformanceViewfunc (*ReportRow) GetProductView
func (x *ReportRow) GetProductView() *ProductViewfunc (*ReportRow) ProtoMessage
func (*ReportRow) ProtoMessage()func (*ReportRow) ProtoReflect
func (x *ReportRow) ProtoReflect() protoreflect.Messagefunc (*ReportRow) Reset
func (x *ReportRow) Reset()func (*ReportRow) String
ReportServiceClient
type ReportServiceClient interface {
// Retrieves a report defined by a search query. The response might contain
// fewer rows than specified by `page_size`. Rely on `next_page_token` to
// determine if there are more rows to be requested.
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
}ReportServiceClient is the client API for ReportService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewReportServiceClient
func NewReportServiceClient(cc grpc.ClientConnInterface) ReportServiceClientReportServiceServer
type ReportServiceServer interface {
// Retrieves a report defined by a search query. The response might contain
// fewer rows than specified by `page_size`. Rely on `next_page_token` to
// determine if there are more rows to be requested.
Search(context.Context, *SearchRequest) (*SearchResponse, error)
}ReportServiceServer is the server API for ReportService service. All implementations should embed UnimplementedReportServiceServer for forward compatibility
SearchRequest
type SearchRequest struct {
// Required. Id of the account making the call. Must be a standalone account
// or an MCA subaccount. Format: accounts/{account}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Query that defines a report to be retrieved.
//
// For details on how to construct your query, see the [Query Language
// guide](/merchant/api/guides/reports/query-language). For the full list of
// available tables and fields, see the [Available
// fields](/merchant/api/reference/rest/reports_v1/accounts.reports).
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
// Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
// 1000. Values above 5000 are coerced to 5000.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. Token of the page to retrieve. If not specified, the first page
// of results is returned. In order to request the next page of results, the
// value obtained from `next_page_token` in the previous response should be
// used.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for the ReportService.Search method.
func (*SearchRequest) Descriptor
func (*SearchRequest) Descriptor() ([]byte, []int)Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetPageSize
func (x *SearchRequest) GetPageSize() int32func (*SearchRequest) GetPageToken
func (x *SearchRequest) GetPageToken() stringfunc (*SearchRequest) GetParent
func (x *SearchRequest) GetParent() stringfunc (*SearchRequest) GetQuery
func (x *SearchRequest) GetQuery() stringfunc (*SearchRequest) ProtoMessage
func (*SearchRequest) ProtoMessage()func (*SearchRequest) ProtoReflect
func (x *SearchRequest) ProtoReflect() protoreflect.Messagefunc (*SearchRequest) Reset
func (x *SearchRequest) Reset()func (*SearchRequest) String
func (x *SearchRequest) String() stringSearchResponse
type SearchResponse struct {
// Rows that matched the search query.
Results []*ReportRow `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// Token which can be sent as `page_token` to retrieve the next page. If
// omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for the ReportService.Search method.
func (*SearchResponse) Descriptor
func (*SearchResponse) Descriptor() ([]byte, []int)Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetNextPageToken
func (x *SearchResponse) GetNextPageToken() stringfunc (*SearchResponse) GetResults
func (x *SearchResponse) GetResults() []*ReportRowfunc (*SearchResponse) ProtoMessage
func (*SearchResponse) ProtoMessage()func (*SearchResponse) ProtoReflect
func (x *SearchResponse) ProtoReflect() protoreflect.Messagefunc (*SearchResponse) Reset
func (x *SearchResponse) Reset()func (*SearchResponse) String
func (x *SearchResponse) String() stringTrafficSource
type TrafficSource struct {
// contains filtered or unexported fields
}Traffic source of impressions in the Competitive visibility report.
func (*TrafficSource) Descriptor
func (*TrafficSource) Descriptor() ([]byte, []int)Deprecated: Use TrafficSource.ProtoReflect.Descriptor instead.
func (*TrafficSource) ProtoMessage
func (*TrafficSource) ProtoMessage()func (*TrafficSource) ProtoReflect
func (x *TrafficSource) ProtoReflect() protoreflect.Messagefunc (*TrafficSource) Reset
func (x *TrafficSource) Reset()func (*TrafficSource) String
func (x *TrafficSource) String() stringTrafficSource_TrafficSourceEnum
type TrafficSource_TrafficSourceEnum int32Traffic source values.
TrafficSource_TRAFFIC_SOURCE_ENUM_UNSPECIFIED, TrafficSource_ORGANIC, TrafficSource_ADS, TrafficSource_ALL
const (
// Not specified.
TrafficSource_TRAFFIC_SOURCE_ENUM_UNSPECIFIED TrafficSource_TrafficSourceEnum = 0
// Organic traffic.
TrafficSource_ORGANIC TrafficSource_TrafficSourceEnum = 1
// Traffic from ads.
TrafficSource_ADS TrafficSource_TrafficSourceEnum = 2
// Organic and ads traffic.
TrafficSource_ALL TrafficSource_TrafficSourceEnum = 3
)func (TrafficSource_TrafficSourceEnum) Descriptor
func (TrafficSource_TrafficSourceEnum) Descriptor() protoreflect.EnumDescriptorfunc (TrafficSource_TrafficSourceEnum) Enum
func (x TrafficSource_TrafficSourceEnum) Enum() *TrafficSource_TrafficSourceEnumfunc (TrafficSource_TrafficSourceEnum) EnumDescriptor
func (TrafficSource_TrafficSourceEnum) EnumDescriptor() ([]byte, []int)Deprecated: Use TrafficSource_TrafficSourceEnum.Descriptor instead.
func (TrafficSource_TrafficSourceEnum) Number
func (x TrafficSource_TrafficSourceEnum) Number() protoreflect.EnumNumberfunc (TrafficSource_TrafficSourceEnum) String
func (x TrafficSource_TrafficSourceEnum) String() stringfunc (TrafficSource_TrafficSourceEnum) Type
func (TrafficSource_TrafficSourceEnum) Type() protoreflect.EnumTypeUnimplementedReportServiceServer
type UnimplementedReportServiceServer struct {
}UnimplementedReportServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedReportServiceServer) Search
func (UnimplementedReportServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)UnsafeReportServiceServer
type UnsafeReportServiceServer interface {
// contains filtered or unexported methods
}UnsafeReportServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReportServiceServer will result in compilation errors.