GoogleCloudRetailV2RulePinAction class
Pins one or more specified products to a specific position in the results.
- Rule Condition: Must specify non-empty Condition.query_terms (for search
only) or Condition.page_categories (for browse only), but can't specify
both. * Action Input: mapping of
[pin_position, product_id]
pairs (pin position uses 1-based indexing). * Action Result: Will pin products with matching ids to the position specified in the final result order. Example: Suppose the query isshoes
, the Condition.query_terms isshoes
and the pin_map has{1, "pid1"}
, then product withpid1
will be pinned to the top position in the final results. If multiple PinActions are matched to a single request the actions will be processed from most to least recently updated. Pins to positions larger than the max allowed page size of 120 are not allowed.
Constructors
-
GoogleCloudRetailV2RulePinAction.new({Map<
String, String> ? pinMap}) - GoogleCloudRetailV2RulePinAction.fromJson(Map json_)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited