Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommendationengine_v1beta1/classes.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb,
lib/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.
1666 1667 1668 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1666 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
1627 1628 1629 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1627 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
1633 1634 1635 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1633 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
1639 1640 1641 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1639 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-viewUser viewing a shopping cart. *impressionList of items displayed. Used by Google Tag Manager. Corresponds to the JSON propertyeventType
1654 1655 1656 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1654 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
1659 1660 1661 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1659 def product_event_detail @product_event_detail end |
#user_info ⇒ Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserInfo
Information of end users.
Corresponds to the JSON property userInfo
1664 1665 1666 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1664 def user_info @user_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1671 1672 1673 1674 1675 1676 1677 1678 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1671 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 |