Class: Google::Apis::ContentV2_1::PriceCompetitiveness
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::PriceCompetitiveness
- 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 competitiveness fields requested by the merchant in the query. Field
values are only set if the merchant queries PriceCompetitivenessProductView
.
https://support.google.com/merchants/answer/9626903
Instance Attribute Summary collapse
-
#benchmark_price_currency_code ⇒ String
The price benchmark currency (ISO 4217 code).
-
#benchmark_price_micros ⇒ Fixnum
The latest available price benchmark in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) for the product's catalog in the benchmark country.
-
#country_code ⇒ String
The country of the price benchmark (ISO 3166 code).
Instance Method Summary collapse
-
#initialize(**args) ⇒ PriceCompetitiveness
constructor
A new instance of PriceCompetitiveness.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PriceCompetitiveness
Returns a new instance of PriceCompetitiveness.
8531 8532 8533 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8531 def initialize(**args) update!(**args) end |
Instance Attribute Details
#benchmark_price_currency_code ⇒ String
The price benchmark currency (ISO 4217 code).
Corresponds to the JSON property benchmarkPriceCurrencyCode
8518 8519 8520 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8518 def benchmark_price_currency_code @benchmark_price_currency_code end |
#benchmark_price_micros ⇒ Fixnum
The latest available price benchmark in micros (1 millionth of a standard unit,
1 USD = 1000000 micros) for the product's catalog in the benchmark country.
Corresponds to the JSON property benchmarkPriceMicros
8524 8525 8526 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8524 def benchmark_price_micros @benchmark_price_micros end |
#country_code ⇒ String
The country of the price benchmark (ISO 3166 code).
Corresponds to the JSON property countryCode
8529 8530 8531 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8529 def country_code @country_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8536 8537 8538 8539 8540 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8536 def update!(**args) @benchmark_price_currency_code = args[:benchmark_price_currency_code] if args.key?(:benchmark_price_currency_code) @benchmark_price_micros = args[:benchmark_price_micros] if args.key?(:benchmark_price_micros) @country_code = args[:country_code] if args.key?(:country_code) end |