Retail V2 API - Module Google::Cloud::Retail::V2::Model::ContextProductsType (v0.21.0)

Reference documentation and code samples for the Retail V2 API module Google::Cloud::Retail::V2::Model::ContextProductsType.

Use single or multiple context products for recommendations.

Constants

CONTEXT_PRODUCTS_TYPE_UNSPECIFIED

value: 0
Unspecified default value, should never be explicitly set. Defaults to MULTIPLE_CONTEXT_PRODUCTS.

SINGLE_CONTEXT_PRODUCT

value: 1
Use only a single product as context for the recommendation. Typically used on pages like add-to-cart or product details.

MULTIPLE_CONTEXT_PRODUCTS

value: 2
Use one or multiple products as context for the recommendation. Typically used on shopping cart pages.