class Google::Apis::RetailV2::GoogleCloudRetailV2Audience
An intended audience of the Product for whom it's sold.
Attributes
The age groups of the audience. Strongly encouraged to use the standard values: “newborn” (up to 3 months old), “infant” (3–12 months old), “toddler” (1–5 years old), “kids” (5–13 years old), “adult” (typically teens or older). At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google
Merchant Center property [age_group](support.google. com/merchants/answer/6324463). Schema.org property [Product.audience. suggestedMinAge](schema.org/suggestedMinAge) and [Product.audience. suggestedMaxAge](schema.org/suggestedMaxAge). Corresponds to the JSON property `ageGroups` @return [Array<String>]
The genders of the audience. Strongly encouraged to use the standard values: “ male”, “female”, “unisex”. At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google
Merchant Center property [gender]( support.google.com/merchants/answer/6324479). Schema.org property [ Product.audience.suggestedGender](schema.org/suggestedGender). Corresponds to the JSON property `genders` @return [Array<String>]
Public Class Methods
# File lib/google/apis/retail_v2/classes.rb, line 394 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/retail_v2/classes.rb, line 399 def update!(**args) @age_groups = args[:age_groups] if args.key?(:age_groups) @genders = args[:genders] if args.key?(:genders) end