Class: Google::Apis::MerchantapiReportsV1beta::PriceCompetitivenessProductView

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_priceGoogle::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

#brandString

Brand of the product. Corresponds to the JSON property brand

Returns:

  • (String)


827
828
829
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 827

def brand
  @brand
end

#category_l1String

Product category (1st level) in Google's product taxonomy. Corresponds to the JSON property categoryL1

Returns:

  • (String)


833
834
835
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 833

def category_l1
  @category_l1
end

#category_l2String

Product category (2nd level) in Google's product taxonomy. Corresponds to the JSON property categoryL2

Returns:

  • (String)


839
840
841
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 839

def category_l2
  @category_l2
end

#category_l3String

Product category (3rd level) in Google's product taxonomy. Corresponds to the JSON property categoryL3

Returns:

  • (String)


845
846
847
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 845

def category_l3
  @category_l3
end

#category_l4String

Product category (4th level) in Google's product taxonomy. Corresponds to the JSON property categoryL4

Returns:

  • (String)


851
852
853
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 851

def category_l4
  @category_l4
end

#category_l5String

Product category (5th level) in Google's product taxonomy. Corresponds to the JSON property categoryL5

Returns:

  • (String)


857
858
859
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 857

def category_l5
  @category_l5
end

#idString

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

Returns:

  • (String)


864
865
866
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 864

def id
  @id
end

#offer_idString

Merchant-provided id of the product. Corresponds to the JSON property offerId

Returns:

  • (String)


869
870
871
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 869

def offer_id
  @offer_id
end

#priceGoogle::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_l1String

Product type (1st level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL1

Returns:

  • (String)


880
881
882
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 880

def product_type_l1
  @product_type_l1
end

#product_type_l2String

Product type (2nd level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL2

Returns:

  • (String)


886
887
888
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 886

def product_type_l2
  @product_type_l2
end

#product_type_l3String

Product type (3rd level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL3

Returns:

  • (String)


892
893
894
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 892

def product_type_l3
  @product_type_l3
end

#product_type_l4String

Product type (4th level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL4

Returns:

  • (String)


898
899
900
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 898

def product_type_l4
  @product_type_l4
end

#product_type_l5String

Product type (5th level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL5

Returns:

  • (String)


904
905
906
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 904

def product_type_l5
  @product_type_l5
end

#report_country_codeString

Country of the price benchmark. Represented in the ISO 3166 format. Required in the SELECT clause. Corresponds to the JSON property reportCountryCode

Returns:

  • (String)


910
911
912
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 910

def report_country_code
  @report_country_code
end

#titleString

Title of the product. Corresponds to the JSON property title

Returns:

  • (String)


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