Nhập tên tài nguyên của tài khoản vào trường parent.
Trong phần Thông tin xác thực, hãy chọn Google OAuth 2.0 và khoá API.
Nhấp vào Thực thi.
Nếu được nhắc, hãy đăng nhập bằng Tài khoản Google được liên kết với tài khoản Google Merchant Center của bạn.
Nếu bạn thiết lập tài khoản Merchant Center đúng cách, yêu cầu sẽ thành công và trả về mã phản hồi HTTP 200. Nếu bạn vừa tạo một tài khoản mới, phương thức accounts.products.list sẽ không trả về sản phẩm nào.
Tiếp theo, hãy thử sử dụng thư viện ứng dụng để yêu cầu quyền truy cập vào các tài khoản Merchant Center khác. Thư viện ứng dụng hỗ trợ việc uỷ quyền cho người dùng, nhờ đó cấp cho ứng dụng quyền truy cập và quản lý dữ liệu tài khoản Merchant Center.
Bạn cũng có thể sử dụng tài khoản dịch vụ để uỷ quyền truy cập API vào tài khoản của riêng bạn. Tài khoản dịch vụ là một loại tài khoản đặc biệt thuộc về một ứng dụng thay vì một người dùng cuối cá nhân. Để biết thêm thông tin, hãy xem phần Tổng quan về tài khoản dịch vụ.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-08 UTC."],[[["\u003cp\u003eExisting merchant account holders can use the API explorer to verify their account's compatibility with the Merchant API.\u003c/p\u003e\n"],["\u003cp\u003eAccount verification involves locating your \u003ccode\u003emerchantId\u003c/code\u003e, constructing the resource name, and executing the \u003ccode\u003eaccounts.products.list\u003c/code\u003e method within the API Explorer using your credentials.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful verification is indicated by an HTTP response code \u003ccode\u003e200\u003c/code\u003e, although new accounts may not return any product data.\u003c/p\u003e\n"],["\u003cp\u003eAfter 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.\u003c/p\u003e\n"]]],["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"],null,[]]