Статусы товаров

Вы можете использовать ресурс Product для просмотра подробного статуса ваших продуктов «Покупки».

С помощью Content API вы можете получить статус продукта, вызвав метод ProductStatuses.get . С помощью Merchant API вы можете получить статус продукта, получив ресурс Accounts.Products .

Вы несете ответственность за соблюдение правил в отношении товарных объявлений и бесплатных предложений . Товарные объявления оставляют за собой право обеспечивать соблюдение этих политик и реагировать соответствующим образом, если мы обнаружим контент или поведение, нарушающие эти правила.

Требования

Чтобы увидеть статусы товаров, необходимо сделать следующее:

  • Зарегистрируйте свою учетную запись в пункте назначения.
  • Укажите действительный код страны одним из следующих способов:
    • Поле feedLabel .
    • Поле shipping .
    • На уровне корма.
    • Настройки доставки вашего аккаунта.

Получить статус продукта

Получите ресурс Accounts.Products , чтобы просмотреть состояние продукта.

Вот пример запроса GET :

GET https://merchantapi.googleapis.com/products/v1beta/{name=accounts/*/products/*}

Все ответы от products.get включают следующие поля:

  • creationDate : дата создания продукта.
  • lastUpdateDate : время последнего обновления продукта.
  • googleExpirationDate : дата истечения срока действия продукта.
  • destinationStatuses : предполагаемые пункты назначения продукта.
  • itemLevelIssues : список всех проблем, связанных с продуктом.

Вы увидите поле itemLevelIssues в ответе только в том случае, если на момент вашего запроса у продукта возникли проблемы на уровне элемента.

Вот пример ответа в формате JSON:

{
"name": "accounts/123/products/online~en~US~1",
"channel": "ONLINE",
"offerId": "1",
"contentLanguage": "en",
"feedLabel": "US",
"dataSource": "accounts/123/dataSources/456",
"attributes": {
  "title": "Color Headphones",
  "description": "A light and elegant design and super sound quality make these over-ear headphones a constant companion. Foldable to save space, and printed with the white Google logo on one earpiece.",
  "imageLink": "http://tmp53317.purecake.com/images/headphones.jpg",
  "availability": "in stock",
  "brand": "Google",
  "condition": "new",
  "googleProductCategory": "Electronics \u003e Audio \u003e Audio Components \u003e Headphones",
  "gtin": "00050644632143",
  "mpn": "90000007101",
  "price": {
    "amountMicros": "288000",
    "currencyCode": "USD"
  }
},
"productStatus": {
  "destinationStatuses": [
    {
      "reportingContext": "FREE_LISTINGS",
      "disapprovedCountries": [
        "US"
      ]
    }
  ],
  "itemLevelIssues": [
    {
      "code": "pending_phone_verification",
      "severity": "NOT_IMPACTED",
      "resolution": "merchant_action",
      "reportingContext": "FREE_LISTINGS",
      "description": "Unverified phone number",
      "detail": "Go to the Business information page to verify your business phone number",
      "documentation": "https://support.google.com/merchants/answer/10139041",
      "applicableCountries": [
        "US"
      ]
    },
    {
      "code": "pending_initial_policy_review_free_listings",
      "severity": "DISAPPROVED",
      "resolution": "pending_processing",
      "reportingContext": "FREE_LISTINGS",
      "description": "Pending initial review",
      "detail": "Please wait up to 3 business days for the review to be completed",
      "documentation": "https://support.google.com/merchants/answer/2948694",
      "applicableCountries": [
        "US"
      ]
    },
    {
      "code": "url_does_not_match_homepage",
      "severity": "DISAPPROVED",
      "resolution": "merchant_action",
      "attribute": "link",
      "reportingContext": "FREE_LISTINGS",
      "description": "Mismatched domains [link]",
      "detail": "Use the same domain for product landing page URLs as in your Merchant Center website setting",
      "documentation": "https://support.google.com/merchants/answer/160050",
      "applicableCountries": [
        "US"
      ]
    }
  ],
  "creationDate": "2024-05-27T16:15:31.791730Z",
  "lastUpdateDate": "2024-05-27T16:15:31.791730Z",
  "googleExpirationDate": "2024-06-26T16:15:31.791730Z"
}

Перечислить все статусы продуктов

Используйте products.list для просмотра всех ваших продуктов и их статусов.

Для уточнения запроса вы можете использовать следующие параметры:

  • pageToken : используется для получения последующих страниц результатов. У каждой страницы есть токен nextPageToken , который можно использовать для перехода к следующей странице в последовательности.
  • maxResults : максимальное количество результатов на странице.

Вот пример запроса list с дополнительными параметрами запроса:

GET https://merchantapi.googleapis.com/products/v1beta/{parent}/products?maxResults=1&pageToken=5108b52782905aa9

Вот пример ответа в формате JSON:

{
"nextPageToken": "632fd090c95712c6",
"products": [
 {
  "name": "accounts/123/products/online~en~US~1",
  "channel": "ONLINE",
  "offerId": "1",
  "contentLanguage": "en",
  "feedLabel": "US",
  "dataSource": "accounts/123/dataSources/10355371287",
  "attributes": {
    "title": "Color Headphones",
    "description": "A light and elegant design and super sound quality make these over-ear headphones a constant companion. Foldable to save space, and printed with the white Google logo on one earpiece.",
    "imageLink": "http://tmp53317.purecake.com/images/headphones.jpg",
    "availability": "in stock",
    "brand": "Google",
    "condition": "new",
    "googleProductCategory": "Electronics \u003e Audio \u003e Audio Components \u003e Headphones",
    "gtin": "00050644632143",
    "mpn": "90000007101",
    "price": {
      "amountMicros": "28800000",
      "currencyCode": "USD"
    }
  },
  "productStatus": {
    "destinationStatuses": [
      {
        "reportingContext": "FREE_LISTINGS",
        "disapprovedCountries": [
          "US"
        ]
      }
    ],
    "itemLevelIssues": [
      {
        "code": "pending_phone_verification",
        "severity": "NOT_IMPACTED",
        "resolution": "merchant_action",
        "reportingContext": "FREE_LISTINGS",
        "description": "Unverified phone number",
        "detail": "Go to the Business information page to verify your business phone number",
        "documentation": "https://support.google.com/merchants/answer/10139041",
        "applicableCountries": [
          "US"
        ]
      },
      {
        "code": "pending_initial_policy_review_free_listings",
        "severity": "DISAPPROVED",
        "resolution": "pending_processing",
        "reportingContext": "FREE_LISTINGS",
        "description": "Pending initial review",
        "detail": "Please wait up to 3 business days for the review to be completed",
        "documentation": "https://support.google.com/merchants/answer/2948694",
        "applicableCountries": [
          "US"
        ]
      },
      {
        "code": "url_does_not_match_homepage",
        "severity": "DISAPPROVED",
        "resolution": "merchant_action",
        "attribute": "link",
        "reportingContext": "FREE_LISTINGS",
        "description": "Mismatched domains [link]",
        "detail": "Use the same domain for product landing page URLs as in your Merchant Center website setting",
        "documentation": "https://support.google.com/merchants/answer/160050",
        "applicableCountries": [
          "US"
        ]
      }
    ],
    "creationDate": "2024-05-27T16:15:31.791730Z",
    "lastUpdateDate": "2024-05-27T16:15:31.791730Z",
    "googleExpirationDate": "2024-06-26T16:15:31.791730Z"
  }
]
}

Вызов productstatuses.list можно безопасно тестировать в рабочей среде, поскольку он не вносит никаких изменений в ваши данные.

Проблемы на уровне элемента

Каждая проблема на уровне элемента включает в себя следующие поля:

  • code : Код ошибки, связанной с проблемой.
  • severity : серьезность проблемы.
  • resolution : сообщает, может ли продавец решить проблему.
  • attribute : имя атрибута, на который влияет.
  • reportingContext : контекст отчетности, к которому относится проблема.
  • description : описание проблемы.
  • detail : дает дополнительную информацию о проблеме.
  • documentation : URL-адрес документации по проблеме.
  • applicableCountries : указывает, в каких странах проблема затрагивает продукт.