Products サブ API を使用すると、Google Merchant Center で商品在庫をプログラムで管理できます。商品を作成、取得、更新、削除できるため、システムを Google と直接統合する柔軟性が得られます。
Merchant API の重要なコンセプトは、送信するデータと Google が使用する最終的なプロダクトの違いです。この分離により、商品データのライフサイクルがより明確になり、商品情報をより正確に管理できるようになります。API は、次の 2 つのメインリソースでこれを反映します。
ProductInput:
特定のデータソースに送信する商品データ(未加工)を表します。これは、フィード ファイルでアップロードする行、または Merchant Center の処理が行われる前に API 呼び出しで送信するデータと考えることができます。このリソースは、すべての書き込みオペレーション(insert、patch、delete)で使用します。
Product:
これは、Merchant Center と Google のサービスに表示される最終的な処理済み商品を表す読み取り専用リソースです。すべてのフィードルールと処理が適用された後、1 つのプライマリ ProductInput リソースと 0 個以上の補足 ProductInput リソースから構築されます。このリソースには、商品の最終ステータスとデータ品質の問題が含まれます。このリソースは、すべての読み取りオペレーション(get、list)で使用します。
Products サブ API を使用する前に、Merchant Center アカウントで少なくとも 1 つの API データソースを作成する必要があります。Products サブ API は、タイプ API のデータソースの商品を挿入または更新することしかできません。手順については、商品アップロード用の API データソースを管理するガイドをご覧ください。
[[["わかりやすい","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"]],["最終更新日 2025-08-22 UTC。"],[[["\u003cp\u003eThe Merchant Products API allows you to programmatically manage your product data, including inserting, updating, retrieving, and deleting products.\u003c/p\u003e\n"],["\u003cp\u003eProducts are managed through two key resources: \u003ccode\u003eproductInputs\u003c/code\u003e (representing input data) and \u003ccode\u003eproducts\u003c/code\u003e (representing processed products in the Shopping database).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eproductInputs\u003c/code\u003e can be primary or supplementary and are used to construct the final \u003ccode\u003eproduct\u003c/code\u003e that appears in your online or local store catalogs.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers advantages over file-based uploads, such as faster response times and real-time updates.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the API, ensure you have a data source set up and are familiar with Shopping Ads and free listings policies.\u003c/p\u003e\n"]]],["The Merchant Products API allows programmatic product data management via `productInputs` and `products` resources. Actions include inserting `productInput` data with required fields like `channel`, `offerId`, `contentLanguage`, and `feedLabel` using `accounts.productInputs.insert`. Processed products can be retrieved using `accounts.products.get` and listed with `accounts.products.list`. Product inputs are deleted using `accounts.productInputs.delete`, specifying the data source. Products are built from primary and supplemental data sources, enabling real-time catalog management. You can use Batch mode to manage many products.\n"],null,[]]