Reference documentation and code samples for the Recommendations AI V1beta1 API class Google::Cloud::RecommendationEngine::V1beta1::ProductEventDetail.
ProductEventDetail captures user event information specific to retail products.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cart_id
def cart_id() -> ::String-
(::String) — Optional. The id or name of the associated shopping cart. This id is used
to associate multiple items added or present in the cart before purchase.
This can only be set for
add-to-cart,remove-from-cart,checkout-start,purchase-complete, orshopping-cart-page-viewevents.
#cart_id=
def cart_id=(value) -> ::String-
value (::String) — Optional. The id or name of the associated shopping cart. This id is used
to associate multiple items added or present in the cart before purchase.
This can only be set for
add-to-cart,remove-from-cart,checkout-start,purchase-complete, orshopping-cart-page-viewevents.
-
(::String) — Optional. The id or name of the associated shopping cart. This id is used
to associate multiple items added or present in the cart before purchase.
This can only be set for
add-to-cart,remove-from-cart,checkout-start,purchase-complete, orshopping-cart-page-viewevents.
#list_id
def list_id() -> ::String-
(::String) — Required for
add-to-listandremove-from-listevents. The id or name of the list that the item is being added to or removed from. Other event types should not set this field.
#list_id=
def list_id=(value) -> ::String-
value (::String) — Required for
add-to-listandremove-from-listevents. The id or name of the list that the item is being added to or removed from. Other event types should not set this field.
-
(::String) — Required for
add-to-listandremove-from-listevents. The id or name of the list that the item is being added to or removed from. Other event types should not set this field.
#page_categories
def page_categories() -> ::Array<::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem::CategoryHierarchy>-
(::Array<::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem::CategoryHierarchy>) — Required for
category-page-viewevents. Other event types should not set this field. The categories associated with a category page. Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: categories : ["Sales", "2017 Black Friday Deals"].
#page_categories=
def page_categories=(value) -> ::Array<::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem::CategoryHierarchy>-
value (::Array<::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem::CategoryHierarchy>) — Required for
category-page-viewevents. Other event types should not set this field. The categories associated with a category page. Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: categories : ["Sales", "2017 Black Friday Deals"].
-
(::Array<::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem::CategoryHierarchy>) — Required for
category-page-viewevents. Other event types should not set this field. The categories associated with a category page. Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: categories : ["Sales", "2017 Black Friday Deals"].
#product_details
def product_details() -> ::Array<::Google::Cloud::RecommendationEngine::V1beta1::ProductDetail>-
(::Array<::Google::Cloud::RecommendationEngine::V1beta1::ProductDetail>) —
The main product details related to the event.
This field is required for the following event types:
add-to-cartadd-to-listcheckout-startdetail-page-viewpurchase-completerefundremove-from-cartremove-from-list
This field is optional for the following event types:
page-visitshopping-cart-page-view- note that 'product_details' should be set for this unless the shopping cart is empty.
This field is not allowed for the following event types:
category-page-viewhome-page-viewsearch
#product_details=
def product_details=(value) -> ::Array<::Google::Cloud::RecommendationEngine::V1beta1::ProductDetail>-
value (::Array<::Google::Cloud::RecommendationEngine::V1beta1::ProductDetail>) —
The main product details related to the event.
This field is required for the following event types:
add-to-cartadd-to-listcheckout-startdetail-page-viewpurchase-completerefundremove-from-cartremove-from-list
This field is optional for the following event types:
page-visitshopping-cart-page-view- note that 'product_details' should be set for this unless the shopping cart is empty.
This field is not allowed for the following event types:
category-page-viewhome-page-viewsearch
-
(::Array<::Google::Cloud::RecommendationEngine::V1beta1::ProductDetail>) —
The main product details related to the event.
This field is required for the following event types:
add-to-cartadd-to-listcheckout-startdetail-page-viewpurchase-completerefundremove-from-cartremove-from-list
This field is optional for the following event types:
page-visitshopping-cart-page-view- note that 'product_details' should be set for this unless the shopping cart is empty.
This field is not allowed for the following event types:
category-page-viewhome-page-viewsearch
#purchase_transaction
def purchase_transaction() -> ::Google::Cloud::RecommendationEngine::V1beta1::PurchaseTransaction-
(::Google::Cloud::RecommendationEngine::V1beta1::PurchaseTransaction) — Optional. A transaction represents the entire purchase transaction.
Required for
purchase-completeevents. Optional forcheckout-startevents. Other event types should not set this field.
#purchase_transaction=
def purchase_transaction=(value) -> ::Google::Cloud::RecommendationEngine::V1beta1::PurchaseTransaction-
value (::Google::Cloud::RecommendationEngine::V1beta1::PurchaseTransaction) — Optional. A transaction represents the entire purchase transaction.
Required for
purchase-completeevents. Optional forcheckout-startevents. Other event types should not set this field.
-
(::Google::Cloud::RecommendationEngine::V1beta1::PurchaseTransaction) — Optional. A transaction represents the entire purchase transaction.
Required for
purchase-completeevents. Optional forcheckout-startevents. Other event types should not set this field.
#search_query
def search_query() -> ::String-
(::String) — Required for
searchevents. Other event types should not set this field. The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
#search_query=
def search_query=(value) -> ::String-
value (::String) — Required for
searchevents. Other event types should not set this field. The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
-
(::String) — Required for
searchevents. Other event types should not set this field. The user's search query as UTF-8 encoded text with a length limit of 5 KiB.