v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13125317428.7 KB
recommendations

Reports an interaction on a recommendation for a merchant.

post/{merchantId}/recommendations/reportInteraction

Path parameters

merchantIdstring required

Required. The ID of the account that wants to report an interaction.

Request body

interactionType'INTERACTION_TYPE_UNSPECIFIED' | 'INTERACTION_DISMISS' | 'INTERACTION_CLICK'

Required. Type of the interaction that is reported, for example INTERACTION_CLICK.

responseTokenstring

Required. Token of the response when recommendation was returned.

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.

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.

Response

Successful response