Content API for Shopping (content:v2.1)

2023-04-05

2 new methods

Additions

    Methods
  • content.recommendations.generate

      Path: {merchantId}/recommendations/generate

      Description: Generates recommendations for a merchant.

      Flat Path: {merchantId}/recommendations/generate

      Parameter Order: merchantId

      Scopes: https://www.googleapis.com/auth/content

      Parameters:

        allowedTag

          Location: query

          Type: string

          Repeated: Yes

          Description: Optional. List of allowed tags. Tags are a set of predefined strings that describe the category that individual recommendation types. User can specify zero or more tags in this field to indicate what group of recommendations they want to receive. Current list of supported tags: - TREND

        languageCode

          Description: Optional. Language code of the client. If not set, the result will be in default language (English). This language code affects all fields prefixed with "localized". This should be set to ISO 639-1 country code. List of currently verified supported language code: en, fr, cs, da, de, es, it, nl, no, pl, pt, pt, fi, sv, vi, tr, th, ko, zh-CN, zh-TW, ja, id, hi

          Location: query

          Type: string

        merchantId

          Location: path

          Format: int64

          Required: Yes

          Description: Required. The ID of the account to fetch recommendations for.

          Type: string

      HTTP Method: GET

  • content.recommendations.reportInteraction

      Path: {merchantId}/recommendations/reportInteraction

      Flat Path: {merchantId}/recommendations/reportInteraction

      Description: Reports an interaction on a recommendation for a merchant.

      Parameter Order: merchantId

      Parameters:

        merchantId

          Format: int64

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

          Type: string

          Required: Yes

          Location: path

      HTTP Method: POST

      Scopes: https://www.googleapis.com/auth/content