Retail V2 API - Class Google::Cloud::Retail::V2::Promotion (v0.11.0)

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

Promotion information.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#promotion_id

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

    Google Merchant Center property promotion.

#promotion_id=

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

    Google Merchant Center property promotion.

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

    Google Merchant Center property promotion.