AI-generated Key Takeaways
-
Reports an interaction, such as a click or dismiss, on a product recommendation for a specific merchant.
-
Requires an HTTP POST request to the specified endpoint with necessary path and request body parameters.
-
The request body should contain information about the interaction type, response token, recommendation type, and optional subtype.
-
Successful requests will receive an empty response body, indicating the interaction was reported successfully.
-
Authorization is required using OAuth scopes, specifically
https://www.googleapis.com/auth/content
.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- InteractionType
- Try it!
Reports an interaction on a recommendation for a merchant.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/recommendations/reportInteraction
Path parameters
Parameters | |
---|---|
merchantId |
Required. The ID of the account that wants to report an interaction. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"interactionType": enum ( |
Fields | |
---|---|
interactionType |
Required. Type of the interaction that is reported, for example INTERACTION_CLICK. |
responseToken |
Required. Token of the response when recommendation was returned. |
type |
Required. Type of the recommendations on which this interaction happened. This field must be set only to the value that is returned by {@link |
subtype |
Optional. Subtype of the recommendations this interaction happened on. This field must be set only to the value that is returned by {@link |
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
InteractionType
Enum containing values for various types of interactions.
Enums | |
---|---|
INTERACTION_TYPE_UNSPECIFIED |
Default value. If provided, the service will throw ApiError with description "Required parameter: interactionType". |
INTERACTION_DISMISS |
When a recommendation is dismissed. |
INTERACTION_CLICK |
When a recommendation is clicked. |