Class: Google::Apis::MerchantapiReportsV1beta::PriceInsightsProductView

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_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

Instance Method Summary collapse

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

#brandString

Brand of the product. Corresponds to the JSON property brand

Returns:

  • (String)


952
953
954
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 952

def brand
  @brand
end

#category_l1String

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

Returns:

  • (String)


958
959
960
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 958

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)


964
965
966
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 964

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)


970
971
972
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 970

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)


976
977
978
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 976

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)


982
983
984
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 982

def category_l5
  @category_l5
end

#effectivenessString

The predicted effectiveness of applying the price suggestion, bucketed. Corresponds to the JSON property effectiveness

Returns:

  • (String)


987
988
989
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 987

def effectiveness
  @effectiveness
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)


994
995
996
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 994

def id
  @id
end

#offer_idString

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

Returns:

  • (String)


999
1000
1001
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 999

def offer_id
  @offer_id
end

#predicted_clicks_change_fractionFloat

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

Returns:

  • (Float)


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_fractionFloat

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

Returns:

  • (Float)


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_fractionFloat

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

Returns:

  • (Float)


1020
1021
1022
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1020

def predicted_impressions_change_fraction
  @predicted_impressions_change_fraction
end

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

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

Returns:

  • (String)


1031
1032
1033
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1031

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)


1037
1038
1039
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1037

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)


1043
1044
1045
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1043

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)


1049
1050
1051
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1049

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)


1055
1056
1057
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1055

def product_type_l5
  @product_type_l5
end

#suggested_priceGoogle::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

#titleString

Title of the product. Corresponds to the JSON property title

Returns:

  • (String)


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