Retail V2 API - Module Google::Cloud::Retail::V2::Model::ContextProductsType (v2.8.1)
Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-03 UTC."],[],[]]