GoogleCloudRetailV2alphaModelPageOptimizationConfig constructor

const GoogleCloudRetailV2alphaModelPageOptimizationConfig({
  1. required Input<String> pageOptimizationEventType,
  2. required Input<List<GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel>> panels,
  3. Input<GoogleCloudRetailV2alphaModelPageOptimizationConfigRestriction>? restriction,
})

Creates a new GoogleCloudRetailV2alphaModelPageOptimizationConfig. pageOptimizationEventType The type of UserEvent this page optimization is shown for. Each page has an associated event type - this will be the corresponding event type for the page that the page optimization model is used on. Supported types: * add-to-cart: Products being added to cart. * detail-page-view: Products detail page viewed. * home-page-view: Homepage viewed * category-page-view: Homepage viewed * shopping-cart-page-view: User viewing a shopping cart. home-page-view only allows models with type recommended-for-you. All other page_optimization_event_type allow all Model.types. panels A list of panel configurations. Limit = 5. restriction Optional. How to restrict results across panels e.g. can the same ServingConfig be shown on multiple panels at once. If unspecified, default to UNIQUE_MODEL_RESTRICTION.

Implementation

const GoogleCloudRetailV2alphaModelPageOptimizationConfig({
  required this.pageOptimizationEventType,
  required this.panels,
  this.restriction,
});