Hesabınızın Merchant API ile bağlantısını doğrulayın
Mevcut bir satıcı hesabınız varsa
Referans belgelerindeki API gezgini,
Hesabınızın Satıcı API'si ile kullanılmaya hazır olduğunu doğrulamanız gerekir.
accounts/
ile hesabınızı birleştirerek hesabınızın kaynak adını bulun
merchantId
. merchantId
bölümünü şuranın üst kısmında bulabilirsiniz:
Google Merchant Center.
- API Gezgini'nde
accounts.products.list
yöntemi için aşağıdakileri yapın:
parent
alanına hesabınızın kaynak adını girin.
- Kimlik bilgileri bölümünde Google OAuth 2.0 ve API anahtarı'nı seçin.
- Execute (Yürüt) seçeneğini tıklayın.
- İstenirse Google Merchant Center hesabınızla ilişkili Google Hesabı ile oturum açın.
Satıcı hesabınız doğru şekilde ayarlanmışsa istek başarılı olur ve iade edilir
HTTP yanıt kodu 200
. Yeni bir hesap oluşturduysanız accounts.products.list
yöntemi hiçbir ürün döndürmez.
Ardından, diğer satıcı hesaplarına erişim isteğinde bulunmak için bir istemci kitaplığı kullanın veya kendi hesabınıza API erişimi yetkilendirmek için bir hizmet hesabı kullanın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-10-23 UTC.
[null,null,["Son güncelleme tarihi: 2024-10-23 UTC."],[[["Existing merchant account holders can use the API explorer to verify their account's compatibility with the Merchant API."],["Account verification involves locating your `merchantId`, constructing the resource name, and executing the `accounts.products.list` method within the API Explorer using your credentials."],["Successful verification is indicated by an HTTP response code `200`, although new accounts may not return any product data."],["After verification, users can proceed to utilize client libraries for accessing other merchant accounts or employ service accounts for authorizing API access to their own account."]]],["To verify a merchant account for API use, locate your `merchantId` in Google Merchant Center and construct the account's resource name. In the API Explorer, use the `accounts.products.list` method, input the resource name in the `parent` field, and select Google OAuth 2.0 and API key credentials. Executing the request should return an HTTP 200 code, confirming successful setup. For new accounts, the product list will be empty. Further access can be configured via client libraries or service accounts.\n"]]