Статус аккаунта

Вы можете использовать ресурс accountstatuses , чтобы просмотреть статус вашей учетной записи Merchant Center или многоклиентской учетной записи (MCA) и всех связанных с ней субсчетов.

Торговцы, имеющие несколько интернет-магазинов или брендов, продающихся на разных веб-сайтах, могут выбрать создание субсчетов в рамках MCA (Master of Account).

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

Подробную информацию о распространенных проблемах с учетной записью см. в справочнике по проблемам с учетной записью.

accountstatuses.get

Вы можете использовать accountstatuses.get для просмотра информации о состоянии учетной записи отдельного продавца.

Параметр destination позволяет управлять тем, какие именно проблемы с товарами будут возвращаться. Если параметр destination не указан, в ответе по умолчанию будут отображаться статусы для destination: Shopping .

Вот пример запроса, где merchantId — это идентификатор учетной записи MCA, а accountId — это субсчет этой учетной записи MCA:

GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses/accountId

Чтобы получить информацию о состоянии учетной записи для автономной учетной записи, вызовите метод accountstatuses.get , указав одинаковый идентификатор учетной записи для merchantId и accountId .

Этот метод возвращает ошибки на уровне учетной записи и товара. Вы можете использовать ресурсы «Товарные объявления» и «Бесплатные объявления» , чтобы исправить accountLevelIssues возвращаемые в ответе от accountstatuses.get .

Вот пример ответа для дополнительного аккаунта, заблокированного за нарушение, связанное с "неработающей целевой страницей".

{
 "kind": "content#accountStatus",
 "accountId": "123456789",
 "websiteClaimed": true,
 "accountLevelIssues": [
  {
   "id": "editorial_and_professional_standards_destination_url_down_policy",
   "title": "Account suspended due to policy violation: landing page not working",
   "country": "US",
   "severity": "critical",
   "documentation": "https://support.google.com/merchants/answer/6150244#wycd-usefulness"
  },
  {
   "id": "missing_ad_words_link",
   "title": "No Google Ads account linked",
   "severity": "error",
   "documentation": "https://support.google.com/merchants/answer/6159060"
  }
 ],
 "products": [
  {
   "channel": "online",
   "destination": "Shopping",
   "country": "US",
   "statistics": {
    "active": "0",
    "pending": "0",
    "disapproved": "5",
    "expiring": "0"
   },
   "itemLevelIssues": [
    {
     "code": "image_link_broken",
     "servability": "disapproved",
     "resolution": "merchant_action",
     "attributeName": "image link",
     "description": "Invalid image [image link]",
     "detail": "Ensure the image is accessible and uses an accepted image format (JPEG, PNG, GIF)",
     "documentation": "https://support.google.com/merchants/answer/6098289",
     "numItems": "2"
    },
    {
     "code": "landing_page_error",
     "servability": "disapproved",
     "resolution": "merchant_action",
     "attributeName": "link",
     "description": "Unavailable desktop landing page",
     "detail": "Update your website or landing page URL to enable access from desktop devices",
     "documentation": "https://support.google.com/merchants/answer/6098155",
     "numItems": "5"
    },
    {
     "code": "missing_condition_microdata",
     "servability": "unaffected",
     "resolution": "merchant_action",
     "description": "Missing or invalid data [condition]",
     "detail": "Add valid structured data markup to your landing page",
     "documentation": "https://support.google.com/merchants/answer/6183460",
     "numItems": "5"
    },
    {
     "code": "mobile_landing_page_error",
     "servability": "disapproved",
     "resolution": "merchant_action",
     "attributeName": "link",
     "description": "Unavailable mobile landing page",
     "detail": "Update your website or landing page URL to enable access from mobile devices",
     "documentation": "https://support.google.com/merchants/answer/6098296",
     "numItems": "3"
    }
   ]
  }
 ]
}

accountstatuses.list

С помощью accountstatuses.list можно просмотреть информацию о состоянии всех дочерних учетных записей вашего MCA.

Вы можете использовать фильтры с accountstatuses.list для фильтрации проблем с товарами по месту назначения. Если место назначения не указано, в ответе будут указаны статусы для destination: Shopping .

Вот пример запроса для получения информации о состоянии всех субсчетов под merchantId MCA:

GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses

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

{
 "kind": "content#accountstatusesListResponse",
 "resources": [
  {
   "kind": "content#accountStatus",
   "accountId": "1234567",
   "websiteClaimed": true,
   "accountLevelIssues": [
    {
     "id": "editorial_and_professional_standards_destination_url_down_policy",
     "title": "Account suspended due to policy violation: landing page not working",
     "country": "US",
     "severity": "critical",
     "documentation": "https://support.google.com/merchants/answer/6150244#wycd-usefulness"
    },
    {
     "id": "missing_ad_words_link",
     "title": "No Google Ads account linked",
     "severity": "error",
     "documentation": "https://support.google.com/merchants/answer/6159060"
    }
   ],
   "products": [
    {
     "channel": "online",
     "destination": "Shopping",
     "country": "US",
     "statistics": {
      "active": "0",
      "pending": "0",
      "disapproved": "0",
      "expiring": "0"
     }
    }
   ]
  },
  {
   "kind": "content#accountStatus",
   "accountId": "123456789",
   "websiteClaimed": true,
   "accountLevelIssues": [
    {
     "id": "home_page_issue",
     "title": "Website URL not provided",
     "severity": "critical",
     "documentation": "https://support.google.com/merchants/answer/176793"
    },
    {
     "id": "missing_ad_words_link",
     "title": "No Google Ads account linked",
     "severity": "error",
     "documentation": "https://support.google.com/merchants/answer/6159060"
    }
   ],
   "products": [
    {
     "channel": "online",
     "destination": "Shopping",
     "country": "US",
     "statistics": {
      "active": "0",
      "pending": "0",
      "disapproved": "0",
      "expiring": "0"
     }
    }
   ]
  }
 ]
}

При обращении к файлу accountstatuses.list для учетной записи, не использующей MCA (например, для автономной учетной записи Merchant Center), возвращается ошибка 403 .

Вот пример ответа на запрос accountstatuses.list для автономной учетной записи:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "forbidden",
    "message": "111111111 is not a multi-client account (MCA). The only account
                service operations allowed on non-MCAs are 'get', 'update',
                'authinfo' and 'claimwebsite'."
   }
  ],
  "code": 403,
  "message": "111111111 is not a multi-client account (MCA). The only account
              service operations allowed on non-MCAs are 'get', 'update',
              'authinfo' and 'claimwebsite'."
 }
}

Пакетный режим

Метод accountstatuses.custombatch с методом GET возвращает информацию о статусе учетной записи для нескольких субсчетов в многоклиентской учетной записи.

JSON-запрос включает в себя merchantId номера счета MCA, accountId субсчета, уникальный batchId и method установленный для get .

POST https://shoppingcontent.googleapis.com/content/v2.1/accountstatuses/batch

Ниже приведён пример JSON-тела запроса:

{
  "entries": [
    {
      "accountId": 1212121212,
      "merchantId": 4444444444,
      "method": "get",
      "batchId": 9
    },
    {
      "accountId": 1313131313,
      "merchantId": 4444444444,
      "method": "get",
      "batchId": 99
    }
  ]
}

Ниже приведён пример JSON-ответа:

{
 "kind": "content#accountstatusesCustomBatchResponse",
 "entries": [
  {
   "batchId": 9,
   "accountStatus": {
    "kind": "content#accountStatus",
    "accountId": "1212121212",
    "websiteClaimed": true,
    "accountLevelIssues": [
     {
      "id": "home_page_issue",
      "title": "Website URL not provided",
      "severity": "critical",
      "documentation": "https://support.google.com/merchants/answer/176793"
     },
     {
      "id": "missing_ad_words_link",
      "title": "No Google Ads account linked",
      "severity": "error",
      "documentation": "https://support.google.com/merchants/answer/6159060"
     }
    ],
    "products": [
     {
      "channel": "online",
      "destination": "Shopping",
      "country": "US",
      "statistics": {
       "active": "0",
       "pending": "0",
       "disapproved": "0",
       "expiring": "0"
      }
     }
    ]
   }
  },
  {
   "batchId": 99,
   "accountStatus": {
    "kind": "content#accountStatus",
    "accountId": "1313131313",
    "websiteClaimed": true,
    "accountLevelIssues": [
     {
      "id": "editorial_and_professional_standards_destination_url_down_policy",
      "title": "Account suspended due to policy violation: landing page not working",
      "country": "US",
      "severity": "critical",
      "documentation": "https://support.google.com/merchants/answer/6150244#wycd-usefulness"
     },
     {
      "id": "missing_ad_words_link",
      "title": "No Google Ads account linked",
      "severity": "error",
      "documentation": "https://support.google.com/merchants/answer/6159060"
     }
    ],
    "products": [
     {
      "channel": "online",
      "destination": "Shopping",
      "country": "US",
      "statistics": {
       "active": "0",
       "pending": "0",
       "disapproved": "0",
       "expiring": "0"
      }
     }
    ]
   }
  }
 ]
}

Проверьте ресурс «Статусы учетных записей».

В следующем примере мы получаем, перечисляем и custombatch.get для получения статуса учетной записи MCA:

  1. Получите статус субсчета для MCA, используя accountstatuses.get .

    1. Получите merchantId и accountId , выполнив GET к конечной точке API:

      GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses/accountId
      
    2. В случае успешного выполнения операции вы должны получить код состояния HTTP 200 , а также список статусов учетных записей в формате JSON.

  2. Просмотрите все статусы субсчетов для MCA, используя accountstatuses.list .

    1. Выполните GET-запрос к конечной точке API, указав свой merchantId :

      GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses
      
    2. В случае успешного выполнения операции вы должны получить код состояния HTTP 200 , а также список статусов учетных записей в формате JSON для указанного merchantId .

  3. Просмотр нескольких субсчетов для MCA в пакетном режиме с помощью accountstatuses.custombatch .

    1. Создайте корректный JSON, используя ваш accountID , merchant ID и метод get .

    2. Выполните POST-запрос к конечной точке API:

      POST https://shoppingcontent.googleapis.com/content/v2.1/accountstatuses/batch
      
    3. В случае успешного выполнения операции вы должны получить код состояния HTTP 200 , а также список статусов учетных записей в формате JSON.