Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/recommendationengine_v1beta1/classes.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb
Overview
UserEvent captures all metadata information recommendation engine needs to know about how end users interact with customers' website.
Instance Attribute Summary collapse
-
#event_detail ⇒ Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1EventDetail
User event details shared by all recommendation types.
-
#event_source ⇒ String
Optional.
-
#event_time ⇒ String
Optional.
-
#event_type ⇒ String
Required.
-
#product_event_detail ⇒ Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductEventDetail
ProductEventDetail captures user event information specific to retail products.
-
#user_info ⇒ Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserInfo
Information of end users.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1UserEvent
constructor
A new instance of GoogleCloudRecommendationengineV1beta1UserEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1UserEvent
Returns a new instance of GoogleCloudRecommendationengineV1beta1UserEvent.
1664 1665 1666 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1664 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_detail ⇒ Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1EventDetail
User event details shared by all recommendation types.
Corresponds to the JSON property eventDetail
1625 1626 1627 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1625 def event_detail @event_detail end |
#event_source ⇒ String
Optional. This field should not be set when using JavaScript pixel or the
Recommendations AI Tag. Defaults to EVENT_SOURCE_UNSPECIFIED
.
Corresponds to the JSON property eventSource
1631 1632 1633 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1631 def event_source @event_source end |
#event_time ⇒ String
Optional. Only required for ImportUserEvents method. Timestamp of user event
created.
Corresponds to the JSON property eventTime
1637 1638 1639 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1637 def event_time @event_time end |
#event_type ⇒ String
Required. User event type. Allowed values are: * add-to-cart
Products being
added to cart. * add-to-list
Items being added to a list (shopping list,
favorites etc). * category-page-view
Special pages such as sale or promotion
pages viewed. * checkout-start
User starting a checkout process. * detail-
page-view
Products detail page viewed. * home-page-view
Homepage viewed. *
page-visit
Generic page visits not included in the event types above. *
purchase-complete
User finishing a purchase. * refund
Purchased items being
refunded or returned. * remove-from-cart
Products being removed from cart. *
remove-from-list
Items being removed from a list. * search
Product search.
shopping-cart-page-view
User viewing a shopping cart. *impression
List of items displayed. Used by Google Tag Manager. Corresponds to the JSON propertyeventType
1652 1653 1654 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1652 def event_type @event_type end |
#product_event_detail ⇒ Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductEventDetail
ProductEventDetail captures user event information specific to retail products.
Corresponds to the JSON property productEventDetail
1657 1658 1659 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1657 def product_event_detail @product_event_detail end |
#user_info ⇒ Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserInfo
Information of end users.
Corresponds to the JSON property userInfo
1662 1663 1664 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1662 def user_info @user_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1669 1670 1671 1672 1673 1674 1675 1676 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1669 def update!(**args) @event_detail = args[:event_detail] if args.key?(:event_detail) @event_source = args[:event_source] if args.key?(:event_source) @event_time = args[:event_time] if args.key?(:event_time) @event_type = args[:event_type] if args.key?(:event_type) @product_event_detail = args[:product_event_detail] if args.key?(:product_event_detail) @user_info = args[:user_info] if args.key?(:user_info) end |