recommendations

POST /{merchantId}/recommendations/reportInteraction

Reports an interaction on a recommendation for a merchant.

Request

  • Base URL
    https://shoppingcontent.googleapis.com/content/v2.1
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/content
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/content
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

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

Changes

No recorded changes to this operation across all 1 revision of this API.