现在,您可以使用服务帐号访问您的 Manufacturer Center 帐号,方法是使用 Google 应用默认凭据流程或直接使用服务帐号流程。Manufacturer Center API 示例显示了如何采用每种受支持的编程语言将这两个流程用于服务帐号凭据。查看代码示例以试用新的服务帐号,并了解在您自己的代码中使用服务帐号需要哪些更改。
常见问题解答
我可以使用我的服务账号登录 Manufacturer Center 网页界面吗?
不可以,服务帐号不是常规 Google 帐号,因此无法访问 Manufacturer Center 网页界面。
我需要多久刷新一次服务账号访问令牌?
访问令牌在 Google OAuth 2.0 授权服务器签发一小时后过期。当访问令牌到期时,应用应使用客户端库来提取另一个访问令牌。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-07-09。"],[[["Service accounts enable applications to programmatically access the Manufacturer Center API using OAuth 2.0 without user intervention."],["To use a service account, generate service account credentials in Google Cloud Console, enable the Manufacturer Center API, and download the JSON key file."],["Add the service account as a user to your Manufacturer Center account with the appropriate role for API access."],["Access your Manufacturer Center account programmatically using Google Application Default Credentials or the service account flow, referencing the provided samples."],["Service accounts cannot be used to log into the Manufacturer Center web user interface but solely for API interaction."]]],[]]