Class Audience (2.1.0)

public sealed class Audience : IMessage<Audience>, IEquatable<Audience>, IDeepCloneable<Audience>, IBufferMessage, IMessage

An intended audience of the [Product][google.cloud.retail.v2.Product] for whom it's sold.

Inheritance

Object > Audience

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

Audience()

public Audience()

Audience(Audience)

public Audience(Audience other)
Parameter
NameDescription
otherAudience

Properties

AgeGroups

public RepeatedField<string> AgeGroups { get; }

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.

Property Value
TypeDescription
RepeatedField<String>

Genders

public RepeatedField<string> Genders { get; }

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.

Property Value
TypeDescription
RepeatedField<String>