Class: Google::Apis::ContentV2_1::ReportInteractionRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

Request to report interactions on a recommendation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportInteractionRequest

Returns a new instance of ReportInteractionRequest.



12090
12091
12092
# File 'lib/google/apis/content_v2_1/classes.rb', line 12090

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#interaction_typeString

Required. Type of the interaction that is reported, for example INTERACTION_CLICK. Corresponds to the JSON property interactionType

Returns:

  • (String)


12069
12070
12071
# File 'lib/google/apis/content_v2_1/classes.rb', line 12069

def interaction_type
  @interaction_type
end

#response_tokenString

Required. Token of the response when recommendation was returned. Corresponds to the JSON property responseToken

Returns:

  • (String)


12074
12075
12076
# File 'lib/google/apis/content_v2_1/classes.rb', line 12074

def response_token
  @response_token
end

#subtypeString

Optional. Subtype of the recommendations this interaction happened on. This field must be set only to the value that is returned by @link RecommendationsService.GenerateRecommendations`call. Corresponds to the JSON propertysubtype`

Returns:

  • (String)


12081
12082
12083
# File 'lib/google/apis/content_v2_1/classes.rb', line 12081

def subtype
  @subtype
end

#typeString

Required. Type of the recommendations on which this interaction happened. This field must be set only to the value that is returned by @link GenerateRecommendationsResponse`call. Corresponds to the JSON propertytype`

Returns:

  • (String)


12088
12089
12090
# File 'lib/google/apis/content_v2_1/classes.rb', line 12088

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12095
12096
12097
12098
12099
12100
# File 'lib/google/apis/content_v2_1/classes.rb', line 12095

def update!(**args)
  @interaction_type = args[:interaction_type] if args.key?(:interaction_type)
  @response_token = args[:response_token] if args.key?(:response_token)
  @subtype = args[:subtype] if args.key?(:subtype)
  @type = args[:type] if args.key?(:type)
end