Możesz użyć zasobu
accountstatuses
do sprawdzenia stanu konta Merchant Center lub multikonta klientów (MCA) i wszystkich powiązanych z nim subkont.
Sprzedawcy, którzy mają wiele sklepów internetowych lub marek sprzedawanych na osobnych stronach, mogą mieć subkonta w ramach MCA.
Sprzedawcy są odpowiedzialni za przestrzeganie zasad dotyczących reklam produktowych i bezpłatnych informacji. Google Shopping zastrzega sobie prawo do egzekwowania tych zasad i podejmowania odpowiednich działań w przypadku wykrycia treści lub zachowań, które je naruszają.
Szczegółowe informacje o typach problemów z kontem znajdziesz w sekcji Problemy z kontem.
accountstatuses.get
Możesz użyć accountstatuses.get
, aby wyświetlić informacje o stanie konta pojedynczego sprzedawcy.
Za pomocą parametru destination
możesz określić, które problemy z produktami mają być zwracane. Jeśli nie podasz miejsca docelowego, domyślna odpowiedź będzie zawierać stany dla destination: Shopping
.
Oto przykładowa prośba, w której merchantId
to identyfikator konta MCA, a accountId
to subkonto tego MCA:
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses/accountId
Aby uzyskać informacje o stanie konta samodzielnego, wywołaj funkcję
accountstatuses.get
z tym samym identyfikatorem konta dla merchantId
i accountId
.
Ta metoda zwraca problemy na poziomie konta i produktu. Aby rozwiązać problem z błędem accountLevelIssues
zwróconym w odpowiedzi z usługi accountstatuses.get
, możesz skorzystać z zasobów dotyczących reklam produktowych i bezpłatnych informacji.
Oto przykładowa odpowiedź dotycząca subkonta, które zostało zawieszone z powodu naruszenia zasady „niedziałająca strona docelowa”.
{
"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
Możesz użyć ikony accountstatuses.list
, aby wyświetlić informacje o stanie konta na wszystkich subkontach multikonta klientów.
Możesz używać filtrów z accountstatuses.list
, aby filtrować problemy z produktami według miejsca docelowego. Jeśli miejsce docelowe nie jest określone, odpowiedź zawiera stany destination: Shopping
.
Oto przykładowa prośba o informacje o stanie konta dla wszystkich subkont w ramach multikonta klientów merchantId
:
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses
Przykładowa odpowiedź:
{
"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"
}
}
]
}
]
}
Wywołanie funkcji accountstatuses.list
w przypadku konta innego niż MCA (np. samodzielnego konta Merchant Center) zwraca błąd 403
.
Oto przykładowa odpowiedź na wywołanie funkcji accountstatuses.list
w przypadku konta samodzielnego:
{
"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'."
}
}
Tryb wsadowy
accountstatuses.custombatch
z metodą GET
zwraca informacje o stanie konta dla wielu subkont na multikoncie klientów.
Żądanie JSON zawiera merchantId
numer konta MCA, accountId
subkonta, niepowtarzalny batchId
i method
ustawiony na get
.
POST https://shoppingcontent.googleapis.com/content/v2.1/accountstatuses/batch
Oto przykładowa treść żądania w formacie JSON:
{
"entries": [
{
"accountId": 1212121212,
"merchantId": 4444444444,
"method": "get",
"batchId": 9
},
{
"accountId": 1313131313,
"merchantId": 4444444444,
"method": "get",
"batchId": 99
}
]
}
Poniżej znajdziesz przykładową treść odpowiedzi w formacie 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"
}
}
]
}
}
]
}
Testowanie zasobu Stan konta
W poniższym przykładzie pobieramy, wyświetlamy i custombatch.get
stan konta dla kont MCA:
Pobierz stan subkonta na MCA za pomocą
accountstatuses.get
.Uzyskaj
merchantId
iaccountId
, wysyłając żądanieGET
do punktu końcowego API:GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses/accountId
Powinien pojawić się kod stanu
HTTP 200
oznaczający powodzenie oraz lista stanów kont w formacie JSON.
Wyświetl wszystkie stany subkont MCA za pomocą ikony
accountstatuses.list
.Wykonaj żądanie GET do punktu końcowego API za pomocą
merchantId
:GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/accountstatuses
W przypadku powodzenia otrzymasz kod stanu
HTTP 200
, a w przypadkumerchantId
przesłania – listę stanów kont w formacie JSON.
Wyświetlanie wielu subkont MCA w trybie wsadowym za pomocą narzędzia
accountstatuses.custombatch
.Utwórz prawidłowy kod JSON, używając
accountID
,merchant ID
i metodyget
.Wyślij żądanie POST do punktu końcowego interfejsu API:
POST https://shoppingcontent.googleapis.com/content/v2.1/accountstatuses/batch
Powinien pojawić się kod stanu
HTTP 200
oznaczający powodzenie oraz lista stanów kont w formacie JSON.