Retail V2 API - Class Google::Cloud::Retail::V2::Audience (v0.12.0)

Stay organized with collections Save and categorize content based on your preferences.

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::Audience.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#age_groups

def age_groups() -> ::Array<::String>
Returns
  • (::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.

#age_groups=

def age_groups=(value) -> ::Array<::String>
Parameter
  • value (::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.

Returns
  • (::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.

#genders

def genders() -> ::Array<::String>
Returns
  • (::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.

#genders=

def genders=(value) -> ::Array<::String>
Parameter
  • value (::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.

Returns
  • (::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.