class Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAudience

An intended audience of the Product for whom it's sold.

Attributes

age_groups[RW]

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>]

genders[RW]

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

new(**args) click to toggle source
# File lib/google/apis/retail_v2alpha/classes.rb, line 733
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 738
def update!(**args)
  @age_groups = args[:age_groups] if args.key?(:age_groups)
  @genders = args[:genders] if args.key?(:genders)
end