Class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
The PageOptimizationConfig for model training. This determines how many panels to optimize for, and which serving configs to consider for each panel. The purpose of this model is to optimize which ServingConfig to show on which panels in way that optimizes the visitors shopping journey.
Instance Attribute Summary collapse
-
#page_optimization_event_type ⇒ String
Required.
-
#panels ⇒ Array<Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel>
Required.
-
#restriction ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelPageOptimizationConfig
constructor
A new instance of GoogleCloudRetailV2alphaModelPageOptimizationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelPageOptimizationConfig
Returns a new instance of GoogleCloudRetailV2alphaModelPageOptimizationConfig.
6619 6620 6621 |
# File 'lib/google/apis/retail_v2/classes.rb', line 6619 def initialize(**args) update!(**args) end |
Instance Attribute Details
#page_optimization_event_type ⇒ String
Required. 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.
Corresponds to the JSON property pageOptimizationEventType
6605 6606 6607 |
# File 'lib/google/apis/retail_v2/classes.rb', line 6605 def page_optimization_event_type @page_optimization_event_type end |
#panels ⇒ Array<Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel>
Required. A list of panel configurations. Limit = 5.
Corresponds to the JSON property panels
6610 6611 6612 |
# File 'lib/google/apis/retail_v2/classes.rb', line 6610 def panels @panels end |
#restriction ⇒ String
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.
Corresponds to the JSON property restriction
6617 6618 6619 |
# File 'lib/google/apis/retail_v2/classes.rb', line 6617 def restriction @restriction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6624 6625 6626 6627 6628 |
# File 'lib/google/apis/retail_v2/classes.rb', line 6624 def update!(**args) @page_optimization_event_type = args[:page_optimization_event_type] if args.key?(:page_optimization_event_type) @panels = args[:panels] if args.key?(:panels) @restriction = args[:restriction] if args.key?(:restriction) end |