Retail v2 API - Class Promotion (2.12.0)

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

Reference documentation and code samples for the Retail v2 API class Promotion.

Promotion information.

Inheritance

object > Promotion

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

Promotion()

public Promotion()

Promotion(Promotion)

public Promotion(Promotion other)
Parameter
Name Description
other Promotion

Properties

PromotionId

public string PromotionId { get; set; }

ID of the promotion. For example, "free gift".

The value must be a UTF-8 encoded string with a length limit of 128 characters, and match the pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned.

Corresponds to Google Merchant Center property promotion_id.

Property Value
Type Description
string