class Google::Apis::ContentV2_1::RepricingRule
Represents a repricing rule. A repricing rule is used by shopping serving to adjust transactable offer prices if conditions are met. Next ID: 24
Attributes
A repricing rule that changes the sale price based on cost of goods sale. Corresponds to the JSON property `cogsBasedRule` @return [Google::Apis::ContentV2_1::RepricingRuleCostOfGoodsSaleRule]
Required. Immutable. [CLDR country code](www.unicode.org/repos/cldr/ tags/latest/common/main/en.xml) (e.g. “US”). Corresponds to the JSON property `countryCode` @return [String]
Required. Time period when the rule should take effect. Corresponds to the JSON property `effectiveTimePeriod` @return [Google::Apis::ContentV2_1::RepricingRuleEffectiveTime]
Matcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is selected, only the repricing_rule_id attribute on the product feed is used to specify offer-rule mapping. When the CUSTOM_FILTER option is selected, only the *_matcher fields are used to filter the offers for offer-rule mapping. If the CUSTOM_FILTER option is selected, an offer needs to satisfy each custom filter matcher to be eligible for a rule. Size limit: the sum of the number of entries in all the matchers should not exceed 20. For example, there can be 15 product ids and 5 brands, but not 10 product ids and 11 brands. Corresponds to the JSON property `eligibleOfferMatcher` @return [Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcher]
Required. Immutable. The two-letter ISO 639-1 language code associated with the repricing rule. Corresponds to the JSON property `languageCode` @return [String]
Output only. Immutable. Merchant that owns the repricing rule. Corresponds to the JSON property `merchantId` @return [Fixnum]
Represents whether a rule is paused. A paused rule will behave like a non- paused rule within CRUD operations, with the major difference that a paused rule will not be evaluated and will have no effect on offers. Corresponds to the JSON property `paused` @return [Boolean]
Represents whether a rule is paused. A paused rule will behave like a non- paused rule within CRUD operations, with the major difference that a paused rule will not be evaluated and will have no effect on offers. Corresponds to the JSON property `paused` @return [Boolean]
Definition of a rule restriction. At least one of the following needs to be true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3) floor.percentage_delta exists If floor.price_delta and floor.percentage_delta are both set on a rule, the highest value will be chosen by the Repricer. In other words, for a product with a price of $50, if the `floor.percentage_delta` is “-10” and the floor.price_delta is “-12”, the offer price will only be lowered $5 (10% lower than the original offer price). Corresponds to the JSON property `restriction` @return [Google::Apis::ContentV2_1::RepricingRuleRestriction]
Output only. Immutable. The ID to uniquely identify each repricing rule. Corresponds to the JSON property `ruleId` @return [String]
Definition of stats based rule. Corresponds to the JSON property `statsBasedRule` @return [Google::Apis::ContentV2_1::RepricingRuleStatsBasedRule]
The title for the rule. Corresponds to the JSON property `title` @return [String]
Required. Immutable. The type of the rule. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 12411 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 12416 def update!(**args) @cogs_based_rule = args[:cogs_based_rule] if args.key?(:cogs_based_rule) @country_code = args[:country_code] if args.key?(:country_code) @effective_time_period = args[:effective_time_period] if args.key?(:effective_time_period) @eligible_offer_matcher = args[:eligible_offer_matcher] if args.key?(:eligible_offer_matcher) @language_code = args[:language_code] if args.key?(:language_code) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @paused = args[:paused] if args.key?(:paused) @restriction = args[:restriction] if args.key?(:restriction) @rule_id = args[:rule_id] if args.key?(:rule_id) @stats_based_rule = args[:stats_based_rule] if args.key?(:stats_based_rule) @title = args[:title] if args.key?(:title) @type = args[:type] if args.key?(:type) end