rocket
Content API for Shopping の正式な後継である
Merchant API をご紹介します。
update
Merchant API の新機能、バグの修正、更新に関する
最新情報を入手してください。
add_alert
注: Content API for Shopping は 2026 年 8 月 18 日に廃止されます。
Product IDs
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Content API for Shopping に含まれる商品 ID には次のような種類があります。
- 特典 ID
offerId
は、販売者が商品に割り当てる文字列です。この ID は個々の商品を表します。
offerId
は、Merchant Center データベースの一連の特典に固有のもので、通常は数値の連番です。
offerId
には、販売者が商品に割り当てる内部 SKU 番号を指定できます。- REST ID
- REST ID は、Google によって割り当てられた商品の一意の識別子です。
- REST ID は REST API 呼び出しの
productId
です。
REST ID は online:en:label:1111111111
という形式で集計されます。REST ID は、コロンで区切って次の 4 つの部分で構成されます。
- チャネル(「オンライン」、「ローカル」)
- コンテンツの言語(2 文字表記、
en
、fr
など)
- フィードラベル(フィードの対象国を表す 2 文字のコード。例:
US
、FR
)
- 特典 ID
これを channel:contentLanguage:feedLabel:offerId
としてまとめます(例: online:en:US:1111111111
)。
- 外部販売者 ID(マーケットプレイス)
ショッピングモールは、複数販売業者アカウントにアップロードされた商品に external_seller_id
を割り当てる必要があります。このフィールドは個々の販売者を表します。
external_seller_id
の値は大文字と小文字が区別され、次の条件を満たす必要があります。
- 1 ~ 50 文字
- 英数字の ASCII 文字、アンダースコア(_)、ハイフン(-)、ピリオド(.)、波形符号(~)のみ使用できます
これは、内部 seller_id
フィールドとは異なります。
次の表に、プロダクトに関連付けることができる ID の一部を示します。
属性 |
説明 |
例 |
備考 |
offerId |
販売者が商品に割り当てた ID。 |
1111111111 |
文字列データ型、商品の販売状況を表す一意の識別子。 |
REST ID |
Google によって商品に割り当てられた ID。channel:contentLanguage:feedLabel:offerId の形式で指定します。 |
online:en:label:1111111111 |
offerId を含む完全な ID。 |
productId |
API 呼び出しで REST ID を参照するために使用します。 |
online:en:label:1111111111 |
これは、プロダクトの REST ID です。 |
id |
REST ID や productId と同じ値です。 |
online:en:label:1111111111 |
商品の JSON 本文内で productId を参照するために使用されます。 |
external_seller_id |
マーケットプレイスによって選択された販売者 ID。 |
example-Seller1 |
複数販売業者アカウントには必須。1 ~ 50 文字で指定してください。大文字と小文字が区別されます。数字、特殊文字(_、-、.、~)を使用できます。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-13 UTC。
[null,null,["最終更新日 2025-08-13 UTC。"],[[["\u003cp\u003eThe Merchant API is the new version of the Content API for Shopping and represents the future of product data integration with Google.\u003c/p\u003e\n"],["\u003cp\u003eThe beta version of the Merchant API is now available for developers to explore and help shape its future development.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can learn more about the benefits and features of the Merchant API, including how it can enhance integrations, in the official announcement blog post.\u003c/p\u003e\n"],["\u003cp\u003eProducts in the Merchant API are identified using various IDs, such as \u003ccode\u003eofferId\u003c/code\u003e, REST ID, \u003ccode\u003eproductId\u003c/code\u003e, and \u003ccode\u003eexternal_seller_id\u003c/code\u003e, each with specific characteristics and usage contexts.\u003c/p\u003e\n"],["\u003cp\u003eA comprehensive table provides detailed explanations and examples of different product ID attributes, outlining their purpose and format.\u003c/p\u003e\n"]]],["The beta version of the Merchant API, the new Content API for Shopping, is introduced. Merchants assign an `offerId` to products. Google assigns a unique REST ID in the format `channel:contentLanguage:feedLabel:offerId`; this is also the `productId` and `id` in API calls. Marketplaces assign `external_seller_id` to offers for multi-seller accounts, it has specific format requirements. The Merchant API offers integration improvements; details on this and providing feedback are available via a linked article.\n"],null,["# Product IDs\n\nHere are the different kinds of product IDs in the Content API for Shopping:\n\nOffer ID\n: An `offerId` is a string assigned to a product by a merchant. This ID\n represents an individual product.\n: `offerId` is unique to the set of offers in the Merchant Center database, and\n is usually a numeric sequential number.\n: `offerId` can be an internal SKU number that a merchant assigns to the product.\n\nREST ID\n: A REST ID is the unique identifier for a product assigned by Google.\n: REST ID is the `productId` for REST API calls.\n\n: REST IDs are aggregates with the format `online:en:label:1111111111`. The\n REST ID consists of the following 4 parts, separated by colons:\n\n 1. Channel (\"online\" or \"local\")\n 2. Content Language (using the 2-letter designation, for example `en` or `fr`)\n 3. Feed label (might be the two-letter code for the feed's target country, for example `US` or `FR`)\n 4. Offer ID\n\n: You put this together as `channel:contentLanguage:feedLabel:offerId`, for\n example, `online:en:US:1111111111`.\n\nExternal Seller ID (Marketplaces)\n\n: [Marketplaces](//support.google.com/merchants/answer/6363319)\n must assign an `external_seller_id` to offers uploaded to a multi-seller\n account. This field represents an individual seller.\n\n `external_seller_id` values are case-sensitive, and must meet the following\n criteria:\n\n - 1-50 characters in length\n - Only alphanumeric ASCII characters, and underscore (_), hyphen (-), period (.), and tilde (\\~)\n\n This isn't the same as the internal\n [`seller_id`](/shopping-content/reference/rest/v2.1/accounts) field.\n\nThe following table summarizes some of the IDs that can be associated with a\nproduct:\n\n| Attribute | Description | Example | Notes |\n|----------------------|---------------------------------------------------------------------------------------------------|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| `offerId` | An ID assigned to a product by a merchant. | `1111111111` | String data type, unique identifier for a product's offer. |\n| REST ID | An ID assigned to a product by Google. In the format `channel:contentLanguage:feedLabel:offerId`. | `online:en:label:1111111111` | Full ID including `offerId`. |\n| `productId` | Used to refer to the REST ID in API calls. | `online:en:label:1111111111` | This is the REST ID of a product. |\n| `id` | Same value as REST ID and `productId`. | `online:en:label:1111111111` | Used inside JSON body of a product to refer to its `productId`. |\n| `external_seller_id` | A seller ID chosen by the Marketplace. | `example-Seller1` | Required for multi-seller accounts. Must be 1-50 characters. Case-sensitive. Digits, and special characters _, -, ., and \\~ are accepted. |"]]