accountstatuses
リソースを使用すると、Merchant Center アカウント、または 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
を呼び出します。
このメソッドは、アカウント レベルと商品アイテム レベルの問題を返します。ショッピング広告と無料リスティングのリソースを使用して、accountstatuses.get
からのレスポンスで返された accountLevelIssues
を修正できます。
「ランディング ページが機能していない」という違反で一時停止されたサブアカウントのレスポンスの例を次に示します。
{
"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
、get
に設定された method
が含まれます。
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 形式のアカウント ステータス リストが返されます。