accountstatuses
リソースを使用すると、Merchant
Center アカウント、または MCA(マルチクライアント アカウント)とその MCA に関連付けられたすべてのサブアカウントのステータスを確認できます。
複数のオンライン ストアや、別々のウェブサイトで販売されているブランドをお持ちの販売者は、MCA のサブアカウントを使用することを選択できます。
販売者は、ショッピング 広告と無料 リスティングのポリシーを遵守する責任があります。Google ショッピングは、これらのポリシーを施行し、ポリシーに違反するコンテンツや行為が認められた場合は、適切に対応する権利を有します。

一般的なアカウントの問題について詳しくは、アカウントの問題に関するリファレンス をご覧ください。
accountstatuses.get
accountstatuses.get を使用すると、単一の販売者アカウントのアカウント ステータス情報を確認できます。
destination パラメータを使用すると、返される商品の問題を制御できます。移行先が指定されていない場合、デフォルトのレスポンスには destination: Shopping のステータスが含まれます。
リクエストの例を次に示します。ここで、merchantId は MCA アカウント ID、accountId はその MCA のサブアカウントです。
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses/accountId
スタンドアロン アカウントのアカウント ステータス情報を取得するには、merchantId と accountId に同じアカウント ID を指定して accountstatuses.get を呼び出します。
このメソッドは、アカウント レベルと商品アイテム レベルの問題を返します。ショッピング
広告と無料
リスティングのリソースを使用すると、
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 のステータスが含まれます。
MCA merchantId のすべてのサブアカウントのアカウント ステータス情報を取得するリクエストの例を次に示します。
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"
}
}
]
}
]
}
MCA アカウント以外の(たとえば、スタンドアロンの Merchant Center アカウント)に対して accountstatuses.list を呼び出すと、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'."
}
}
バッチモード
GET メソッドを使用する accountstatuses.custombatch は、マルチクライアント
アカウントの複数のサブアカウントのアカウント ステータス情報を返します。
リクエスト JSON には、MCA アカウント番号の merchantId、サブアカウントの 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"
}
}
]
}
}
]
}
Account Statuses リソースをテストする
次の例では、MCA アカウントのアカウント ステータスを取得、一覧表示、custombatch.get します。
accountstatuses.getを使用して、MCA のサブアカウントのステータスを取得します。API エンドポイントに対して
GETを実行して、merchantIdとaccountIdを取得します。GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses/accountId成功すると
HTTP 200ステータス コードが返され、アカウント ステータスのリストが JSON で返されます。
accountstatuses.listを使用して、MCA のすべてのサブアカウントのステータスを表示します。merchantIdを指定して API エンドポイントに対して GET を実行します。GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses成功すると
HTTP 200ステータス コードが返され、送信されたmerchantIdのアカウント ステータスのリストが JSON で返されます。
accountstatuses.custombatchを使用して、バッチモードで MCA の複数のサブアカウントを表示します。accountID、merchant ID、getメソッドを使用して有効な JSON を作成します。API エンドポイントに対して POST を実行します。
POST https://shoppingcontent.googleapis.com/content/v2.1/accountstatuses/batch成功すると
HTTP 200ステータス コードが返され、アカウント ステータスのリストが JSON で返されます。