Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAudience
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAudience
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb
Overview
An intended audience of the Product for whom it's sold.
Instance Attribute Summary collapse
-
#age_groups ⇒ Array<String>
The age groups of the audience.
-
#genders ⇒ Array<String>
The genders of the audience.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaAudience
constructor
A new instance of GoogleCloudRetailV2betaAudience.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaAudience
Returns a new instance of GoogleCloudRetailV2betaAudience.
2701 2702 2703 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2701 def initialize(**args) update!(**args) end |
Instance Attribute Details
#age_groups ⇒ Array<String>
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. Schema.org property Product.audience.
suggestedMinAge and Product.audience.
suggestedMaxAge.
Corresponds to the JSON property ageGroups
2689 2690 2691 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2689 def age_groups @age_groups end |
#genders ⇒ 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. Schema.org property
Product.audience.suggestedGender.
Corresponds to the JSON property genders
2699 2700 2701 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2699 def genders @genders end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2706 2707 2708 2709 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2706 def update!(**args) @age_groups = args[:age_groups] if args.key?(:age_groups) @genders = args[:genders] if args.key?(:genders) end |