Class: Google::Apis::MerchantapiReportsV1beta::PriceInsightsProductView
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiReportsV1beta::PriceInsightsProductView
- 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_insights_product_view
table. Price
insights report. Values
are only set for fields requested explicitly in the request's search query.
Instance Attribute Summary collapse
-
#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.
-
#effectiveness ⇒ String
The predicted effectiveness of applying the price suggestion, bucketed.
-
#id ⇒ String
REST ID of the product, in the form of
channel~languageCode~feedLabel~offerId
. -
#offer_id ⇒ String
Merchant-provided id of the product.
-
#predicted_clicks_change_fraction ⇒ Float
Predicted change in clicks as a fraction after introducing the suggested price compared to current active price.
-
#predicted_conversions_change_fraction ⇒ Float
Predicted change in conversions as a fraction after introducing the suggested price compared to current active price.
-
#predicted_impressions_change_fraction ⇒ Float
Predicted change in impressions as a fraction after introducing the suggested price compared to current active price.
-
#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.
-
#suggested_price ⇒ Google::Apis::MerchantapiReportsV1beta::Price
The price represented as a number and currency.
-
#title ⇒ String
Title of the product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PriceInsightsProductView
constructor
A new instance of PriceInsightsProductView.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PriceInsightsProductView
Returns a new instance of PriceInsightsProductView.
1067 1068 1069 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1067 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brand ⇒ String
Brand of the product.
Corresponds to the JSON property brand
952 953 954 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 952 def brand @brand end |
#category_l1 ⇒ String
Product category (1st level) in Google's product taxonomy.
Corresponds to the JSON property categoryL1
958 959 960 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 958 def category_l1 @category_l1 end |
#category_l2 ⇒ String
Product category (2nd level) in Google's product taxonomy.
Corresponds to the JSON property categoryL2
964 965 966 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 964 def category_l2 @category_l2 end |
#category_l3 ⇒ String
Product category (3rd level) in Google's product taxonomy.
Corresponds to the JSON property categoryL3
970 971 972 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 970 def category_l3 @category_l3 end |
#category_l4 ⇒ String
Product category (4th level) in Google's product taxonomy.
Corresponds to the JSON property categoryL4
976 977 978 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 976 def category_l4 @category_l4 end |
#category_l5 ⇒ String
Product category (5th level) in Google's product taxonomy.
Corresponds to the JSON property categoryL5
982 983 984 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 982 def category_l5 @category_l5 end |
#effectiveness ⇒ String
The predicted effectiveness of applying the price suggestion, bucketed.
Corresponds to the JSON property effectiveness
987 988 989 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 987 def effectiveness @effectiveness 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
994 995 996 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 994 def id @id end |
#offer_id ⇒ String
Merchant-provided id of the product.
Corresponds to the JSON property offerId
999 1000 1001 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 999 def offer_id @offer_id end |
#predicted_clicks_change_fraction ⇒ Float
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.
Corresponds to the JSON property predictedClicksChangeFraction
1006 1007 1008 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1006 def predicted_clicks_change_fraction @predicted_clicks_change_fraction end |
#predicted_conversions_change_fraction ⇒ Float
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).
Corresponds to the JSON property predictedConversionsChangeFraction
1013 1014 1015 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1013 def predicted_conversions_change_fraction @predicted_conversions_change_fraction end |
#predicted_impressions_change_fraction ⇒ Float
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.
Corresponds to the JSON property predictedImpressionsChangeFraction
1020 1021 1022 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1020 def predicted_impressions_change_fraction @predicted_impressions_change_fraction end |
#price ⇒ Google::Apis::MerchantapiReportsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property price
1025 1026 1027 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1025 def price @price end |
#product_type_l1 ⇒ String
Product type (1st level) in merchant's own product taxonomy.
Corresponds to the JSON property productTypeL1
1031 1032 1033 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1031 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
1037 1038 1039 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1037 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
1043 1044 1045 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1043 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
1049 1050 1051 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1049 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
1055 1056 1057 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1055 def product_type_l5 @product_type_l5 end |
#suggested_price ⇒ Google::Apis::MerchantapiReportsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property suggestedPrice
1060 1061 1062 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1060 def suggested_price @suggested_price end |
#title ⇒ String
Title of the product.
Corresponds to the JSON property title
1065 1066 1067 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1065 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1072 def update!(**args) @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) @effectiveness = args[:effectiveness] if args.key?(:effectiveness) @id = args[:id] if args.key?(:id) @offer_id = args[:offer_id] if args.key?(:offer_id) @predicted_clicks_change_fraction = args[:predicted_clicks_change_fraction] if args.key?(:predicted_clicks_change_fraction) @predicted_conversions_change_fraction = args[:predicted_conversions_change_fraction] if args.key?(:predicted_conversions_change_fraction) @predicted_impressions_change_fraction = args[:predicted_impressions_change_fraction] if args.key?(:predicted_impressions_change_fraction) @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) @suggested_price = args[:suggested_price] if args.key?(:suggested_price) @title = args[:title] if args.key?(:title) end |