我们建议使用
Google API 客户端库,
如何启用 Content API for Shopping。本指南使用的是 Python Content API 客户端
库为例,但它们可用于许多热门编程,
并简化常见的 API 任务,例如身份验证、发送请求、
和解析响应。如需有关为 Cloud Storage 设置客户端库的帮助,
请参阅 README.md,了解
googleads/googleads-shopping-samples
代码库。
[[["易于理解","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-09-20。"],[[["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"]]