class Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcher
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.
Attributes
Matcher by string attributes. Corresponds to the JSON property `brandMatcher` @return [Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher]
Matcher by string attributes. Corresponds to the JSON property `itemGroupIdMatcher` @return [Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher]
Determines whether to use the custom matchers or the product feed attribute “ repricing_rule_id” to specify offer-rule mapping. Corresponds to the JSON property `matcherOption` @return [String]
Matcher by string attributes. Corresponds to the JSON property `offerIdMatcher` @return [Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher]
When true, the rule won't be applied to offers with active promotions. Corresponds to the JSON property `skipWhenOnPromotion` @return [Boolean]
When true, the rule won't be applied to offers with active promotions. Corresponds to the JSON property `skipWhenOnPromotion` @return [Boolean]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 12541 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 12546 def update!(**args) @brand_matcher = args[:brand_matcher] if args.key?(:brand_matcher) @item_group_id_matcher = args[:item_group_id_matcher] if args.key?(:item_group_id_matcher) @matcher_option = args[:matcher_option] if args.key?(:matcher_option) @offer_id_matcher = args[:offer_id_matcher] if args.key?(:offer_id_matcher) @skip_when_on_promotion = args[:skip_when_on_promotion] if args.key?(:skip_when_on_promotion) end