Class: Google::Apis::MerchantapiReportsV1beta::PriceCompetitivenessProductView
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiReportsV1beta::PriceCompetitivenessProductView
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_reports_v1beta/classes.rb,
lib/google/apis/merchantapi_reports_v1beta/representations.rb,
lib/google/apis/merchantapi_reports_v1beta/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#benchmark_price ⇒ Google::Apis::MerchantapiReportsV1beta::Price
The price represented as a number and currency.
-
#brand ⇒ String
Brand of the product.
-
#category_l1 ⇒ String
Product category (1st level) in Google's product taxonomy.
-
#category_l2 ⇒ String
Product category (2nd level) in Google's product taxonomy.
-
#category_l3 ⇒ String
Product category (3rd level) in Google's product taxonomy.
-
#category_l4 ⇒ String
Product category (4th level) in Google's product taxonomy.
-
#category_l5 ⇒ String
Product category (5th level) in Google's product taxonomy.
-
#id ⇒ String
REST ID of the product, in the form of
channel~languageCode~feedLabel~offerId
. -
#offer_id ⇒ String
Merchant-provided id of the product.
-
#price ⇒ Google::Apis::MerchantapiReportsV1beta::Price
The price represented as a number and currency.
-
#product_type_l1 ⇒ String
Product type (1st level) in merchant's own product taxonomy.
-
#product_type_l2 ⇒ String
Product type (2nd level) in merchant's own product taxonomy.
-
#product_type_l3 ⇒ String
Product type (3rd level) in merchant's own product taxonomy.
-
#product_type_l4 ⇒ String
Product type (4th level) in merchant's own product taxonomy.
-
#product_type_l5 ⇒ String
Product type (5th level) in merchant's own product taxonomy.
-
#report_country_code ⇒ String
Country of the price benchmark.
-
#title ⇒ String
Title of the product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PriceCompetitivenessProductView
constructor
A new instance of PriceCompetitivenessProductView.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PriceCompetitivenessProductView
Returns a new instance of PriceCompetitivenessProductView.
917 918 919 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 917 def initialize(**args) update!(**args) end |
Instance Attribute Details
#benchmark_price ⇒ Google::Apis::MerchantapiReportsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property benchmarkPrice
822 823 824 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 822 def benchmark_price @benchmark_price end |
#brand ⇒ String
Brand of the product.
Corresponds to the JSON property brand
827 828 829 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 827 def brand @brand end |
#category_l1 ⇒ String
Product category (1st level) in Google's product taxonomy.
Corresponds to the JSON property categoryL1
833 834 835 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 833 def category_l1 @category_l1 end |
#category_l2 ⇒ String
Product category (2nd level) in Google's product taxonomy.
Corresponds to the JSON property categoryL2
839 840 841 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 839 def category_l2 @category_l2 end |
#category_l3 ⇒ String
Product category (3rd level) in Google's product taxonomy.
Corresponds to the JSON property categoryL3
845 846 847 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 845 def category_l3 @category_l3 end |
#category_l4 ⇒ String
Product category (4th level) in Google's product taxonomy.
Corresponds to the JSON property categoryL4
851 852 853 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 851 def category_l4 @category_l4 end |
#category_l5 ⇒ String
Product category (5th level) in Google's product taxonomy.
Corresponds to the JSON property categoryL5
857 858 859 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 857 def category_l5 @category_l5 end |
#id ⇒ String
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.
Corresponds to the JSON property id
864 865 866 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 864 def id @id end |
#offer_id ⇒ String
Merchant-provided id of the product.
Corresponds to the JSON property offerId
869 870 871 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 869 def offer_id @offer_id end |
#price ⇒ Google::Apis::MerchantapiReportsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property price
874 875 876 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 874 def price @price end |
#product_type_l1 ⇒ String
Product type (1st level) in merchant's own product taxonomy.
Corresponds to the JSON property productTypeL1
880 881 882 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 880 def product_type_l1 @product_type_l1 end |
#product_type_l2 ⇒ String
Product type (2nd level) in merchant's own product taxonomy.
Corresponds to the JSON property productTypeL2
886 887 888 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 886 def product_type_l2 @product_type_l2 end |
#product_type_l3 ⇒ String
Product type (3rd level) in merchant's own product taxonomy.
Corresponds to the JSON property productTypeL3
892 893 894 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 892 def product_type_l3 @product_type_l3 end |
#product_type_l4 ⇒ String
Product type (4th level) in merchant's own product taxonomy.
Corresponds to the JSON property productTypeL4
898 899 900 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 898 def product_type_l4 @product_type_l4 end |
#product_type_l5 ⇒ String
Product type (5th level) in merchant's own product taxonomy.
Corresponds to the JSON property productTypeL5
904 905 906 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 904 def product_type_l5 @product_type_l5 end |
#report_country_code ⇒ String
Country of the price benchmark. Represented in the ISO 3166 format. Required
in the SELECT
clause.
Corresponds to the JSON property reportCountryCode
910 911 912 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 910 def report_country_code @report_country_code end |
#title ⇒ String
Title of the product.
Corresponds to the JSON property title
915 916 917 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 915 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 922 def update!(**args) @benchmark_price = args[:benchmark_price] if args.key?(:benchmark_price) @brand = args[:brand] if args.key?(:brand) @category_l1 = args[:category_l1] if args.key?(:category_l1) @category_l2 = args[:category_l2] if args.key?(:category_l2) @category_l3 = args[:category_l3] if args.key?(:category_l3) @category_l4 = args[:category_l4] if args.key?(:category_l4) @category_l5 = args[:category_l5] if args.key?(:category_l5) @id = args[:id] if args.key?(:id) @offer_id = args[:offer_id] if args.key?(:offer_id) @price = args[:price] if args.key?(:price) @product_type_l1 = args[:product_type_l1] if args.key?(:product_type_l1) @product_type_l2 = args[:product_type_l2] if args.key?(:product_type_l2) @product_type_l3 = args[:product_type_l3] if args.key?(:product_type_l3) @product_type_l4 = args[:product_type_l4] if args.key?(:product_type_l4) @product_type_l5 = args[:product_type_l5] if args.key?(:product_type_l5) @report_country_code = args[:report_country_code] if args.key?(:report_country_code) @title = args[:title] if args.key?(:title) end |