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.
8609 8610 8611 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8609 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
8552 8553 8554 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8552 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
8559 8560 8561 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8559 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
8566 8567 8568 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8566 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
8574 8575 8576 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8574 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
8581 8582 8583 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8581 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
8588 8589 8590 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8588 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
8596 8597 8598 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8596 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
8601 8602 8603 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8601 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
8607 8608 8609 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8607 def suggested_price_micros @suggested_price_micros end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8614 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 |