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.



12099
12100
12101
# File 'lib/google/apis/content_v2_1/classes.rb', line 12099

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)


12078
12079
12080
# File 'lib/google/apis/content_v2_1/classes.rb', line 12078

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)


12083
12084
12085
# File 'lib/google/apis/content_v2_1/classes.rb', line 12083

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)


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

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)


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

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12104
12105
12106
12107
12108
12109
# File 'lib/google/apis/content_v2_1/classes.rb', line 12104

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