Show / Hide Table of Contents

Class GoogleCloudRecommendationengineV1beta1ProductEventDetail

ProductEventDetail captures user event information specific to retail products.

Inheritance
object
GoogleCloudRecommendationengineV1beta1ProductEventDetail
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.RecommendationsAI.v1beta1.Data
Assembly: Google.Apis.RecommendationsAI.v1beta1.dll
Syntax
public class GoogleCloudRecommendationengineV1beta1ProductEventDetail : IDirectResponseSchema

Properties

CartId

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, or shopping-cart-page-view events.

Declaration
[JsonProperty("cartId")]
public virtual string CartId { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

ListId

Required for add-to-list and remove-from-list events. 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.

Declaration
[JsonProperty("listId")]
public virtual string ListId { get; set; }
Property Value
Type Description
string

PageCategories

Required for category-page-view events. At least one of search_query or page_categories is required for search events. 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"].

Declaration
[JsonProperty("pageCategories")]
public virtual IList<GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy> PageCategories { get; set; }
Property Value
Type Description
IList<GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy>

ProductDetails

The main product details related to the event. This field is required for the following event types: * add-to-cart * add-to-list * checkout-start * detail-page-view * purchase-complete * refund * remove-from-cart * remove-from-list This field is optional for the following event types: * page-visit

  • shopping-cart-page-view - note that 'product_details' should be set for this unless the shopping cart is empty. * search (highly encouraged) In a search event, this field represents the products returned to the end user on the current page (the end user may have not finished broswing the whole page yet). When a new page is returned to the end user, after pagination/filtering/ordering even for the same query, a new SEARCH event with different product_details is desired. The end user may have not finished broswing the whole page yet. This field is not allowed for the following event types: * category-page-view * home-page-view
Declaration
[JsonProperty("productDetails")]
public virtual IList<GoogleCloudRecommendationengineV1beta1ProductDetail> ProductDetails { get; set; }
Property Value
Type Description
IList<GoogleCloudRecommendationengineV1beta1ProductDetail>

PurchaseTransaction

Optional. A transaction represents the entire purchase transaction. Required for purchase-complete events. Optional for checkout-start events. Other event types should not set this field.

Declaration
[JsonProperty("purchaseTransaction")]
public virtual GoogleCloudRecommendationengineV1beta1PurchaseTransaction PurchaseTransaction { get; set; }
Property Value
Type Description
GoogleCloudRecommendationengineV1beta1PurchaseTransaction

SearchQuery

At least one of search_query or page_categories is required for search events. 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.

Declaration
[JsonProperty("searchQuery")]
public virtual string SearchQuery { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX