我们建议您使用 Google API 客户端库设置 Content API for Shopping。本指南使用 Python Content API 客户端库作为示例,但这些库适用于许多常用编程语言,可简化身份验证、发送请求和解析响应等常见 API 任务。如需有关为其他语言设置客户端库的帮助,请参阅 GitHub 上 googleads/googleads-shopping-samples 代码库中相应语言的 README.md。
[[["易于理解","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):2025-06-19。"],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of product data integration."],["To use the Merchant API, you need to set up the Google API client libraries, which are available for various programming languages and simplify API interactions."],["Setup involves creating necessary directories, downloading service account credentials, configuring a `merchant-info.json` file, and adding the service account to your Merchant Center account."],["You'll need to clone the `googleads/googleads-shopping-samples` GitHub repo and install the required dependencies using `pip install -r requirements.txt`."]]],["The content details the setup for using the Google API client library with the new Merchant API beta, an evolution of the Content API for Shopping. Key steps include: creating directories for configuration and authentication files; downloading service account credentials (including generating a JSON private key); setting up `merchant-info.json` with Merchant Center ID and email; adding the service account as a Merchant Center user with Admin access; cloning or downloading the `googleads-shopping-samples` repository; and installing required Python dependencies via `pip`.\n"]]