Class: Google::Apis::ContentV2_1::ReportInteractionRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReportInteractionRequest
- 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
-
#interaction_type ⇒ String
Required.
-
#response_token ⇒ String
Required.
-
#subtype ⇒ String
Optional.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReportInteractionRequest
constructor
A new instance of ReportInteractionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_type ⇒ String
Required. Type of the interaction that is reported, for example
INTERACTION_CLICK.
Corresponds to the JSON property interactionType
12078 12079 12080 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12078 def interaction_type @interaction_type end |
#response_token ⇒ String
Required. Token of the response when recommendation was returned.
Corresponds to the JSON property responseToken
12083 12084 12085 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12083 def response_token @response_token end |
#subtype ⇒ String
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 property
subtype`
12090 12091 12092 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12090 def subtype @subtype end |
#type ⇒ String
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 property
type`
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 |