class Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPromotion
Promotion information.
Attributes
promotion_id[RW]
ID of the promotion. For example, “free gift”. The value value must be a UTF-8 encoded string with a length limit of 128 characters, and match the pattern: a- zA-Z*. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned. Google
Merchant Center property [promotion] (support.google.com/merchants/answer/7050148). Corresponds to the JSON property `promotionId` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/retail_v2alpha/classes.rb, line 2524 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/retail_v2alpha/classes.rb, line 2529 def update!(**args) @promotion_id = args[:promotion_id] if args.key?(:promotion_id) end