Class: Google::Apis::ContentV2_1::PriceInsights
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::PriceInsights
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Price insights fields requested by the merchant in the query. Field values are
only set if the merchant queries PriceInsightsProductView. https://support.
google.com/merchants/answer/11916926
Instance Attribute Summary collapse
-
#effectiveness ⇒ String
The predicted effectiveness of applying the price suggestion, bucketed.
-
#predicted_clicks_change_fraction ⇒ Float
The predicted change in clicks as a fraction after introducing the suggested price compared to current active price.
-
#predicted_conversions_change_fraction ⇒ Float
The predicted change in conversions as a fraction after introducing the suggested price compared to current active price.
-
#predicted_gross_profit_change_fraction ⇒ Float
Deprecated: This field is no longer supported and will start returning 0.
-
#predicted_impressions_change_fraction ⇒ Float
The predicted change in impressions as a fraction after introducing the suggested price compared to current active price.
-
#predicted_monthly_gross_profit_change_currency_code ⇒ String
Deprecated: This field is no longer supported and will start returning USD for all requests.
-
#predicted_monthly_gross_profit_change_micros ⇒ Fixnum
Deprecated: This field is no longer supported and will start returning 0.
-
#suggested_price_currency_code ⇒ String
The suggested price currency (ISO 4217 code).
-
#suggested_price_micros ⇒ Fixnum
The latest suggested price in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) for the product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PriceInsights
constructor
A new instance of PriceInsights.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PriceInsights
Returns a new instance of PriceInsights.
8657 8658 8659 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8657 def initialize(**args) update!(**args) end |
Instance Attribute Details
#effectiveness ⇒ String
The predicted effectiveness of applying the price suggestion, bucketed.
Corresponds to the JSON property effectiveness
8600 8601 8602 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8600 def effectiveness @effectiveness end |
#predicted_clicks_change_fraction ⇒ Float
The 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
8607 8608 8609 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8607 def predicted_clicks_change_fraction @predicted_clicks_change_fraction end |
#predicted_conversions_change_fraction ⇒ Float
The 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
8614 8615 8616 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8614 def predicted_conversions_change_fraction @predicted_conversions_change_fraction end |
#predicted_gross_profit_change_fraction ⇒ Float
Deprecated: This field is no longer supported and will start returning 0.
The predicted change in gross profit as a fraction after introducing the
suggested price compared to current active price. For example, 0.05 is a 5%
predicted increase in gross profit.
Corresponds to the JSON property predictedGrossProfitChangeFraction
8622 8623 8624 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8622 def predicted_gross_profit_change_fraction @predicted_gross_profit_change_fraction end |
#predicted_impressions_change_fraction ⇒ Float
The 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
8629 8630 8631 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8629 def predicted_impressions_change_fraction @predicted_impressions_change_fraction end |
#predicted_monthly_gross_profit_change_currency_code ⇒ String
Deprecated: This field is no longer supported and will start returning USD
for all requests. The predicted monthly gross profit change currency (ISO 4217
code).
Corresponds to the JSON property predictedMonthlyGrossProfitChangeCurrencyCode
8636 8637 8638 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8636 def predicted_monthly_gross_profit_change_currency_code @predicted_monthly_gross_profit_change_currency_code end |
#predicted_monthly_gross_profit_change_micros ⇒ Fixnum
Deprecated: This field is no longer supported and will start returning 0.
The predicted change in gross profit in micros (1 millionth of a standard unit,
1 USD = 1000000 micros) after introducing the suggested price for a month
compared to current active price.
Corresponds to the JSON property predictedMonthlyGrossProfitChangeMicros
8644 8645 8646 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8644 def predicted_monthly_gross_profit_change_micros @predicted_monthly_gross_profit_change_micros end |
#suggested_price_currency_code ⇒ String
The suggested price currency (ISO 4217 code).
Corresponds to the JSON property suggestedPriceCurrencyCode
8649 8650 8651 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8649 def suggested_price_currency_code @suggested_price_currency_code end |
#suggested_price_micros ⇒ Fixnum
The latest suggested price in micros (1 millionth of a standard unit, 1 USD =
1000000 micros) for the product.
Corresponds to the JSON property suggestedPriceMicros
8655 8656 8657 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8655 def suggested_price_micros @suggested_price_micros end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8662 def update!(**args) @effectiveness = args[:effectiveness] if args.key?(:effectiveness) @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_gross_profit_change_fraction = args[:predicted_gross_profit_change_fraction] if args.key?(:predicted_gross_profit_change_fraction) @predicted_impressions_change_fraction = args[:predicted_impressions_change_fraction] if args.key?(:predicted_impressions_change_fraction) @predicted_monthly_gross_profit_change_currency_code = args[:predicted_monthly_gross_profit_change_currency_code] if args.key?(:predicted_monthly_gross_profit_change_currency_code) @predicted_monthly_gross_profit_change_micros = args[:predicted_monthly_gross_profit_change_micros] if args.key?(:predicted_monthly_gross_profit_change_micros) @suggested_price_currency_code = args[:suggested_price_currency_code] if args.key?(:suggested_price_currency_code) @suggested_price_micros = args[:suggested_price_micros] if args.key?(:suggested_price_micros) end |