REST Resource: accounts.lfpInventories
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソース: LfpInventory
JSON 表現 |
{
"name": string,
"targetAccount": string,
"storeCode": string,
"offerId": string,
"regionCode": string,
"contentLanguage": string,
"price": {
object (Price )
},
"availability": string,
"collectionTime": string,
"gtin": string,
"quantity": string,
"pickupMethod": string,
"pickupSla": string,
"feedLabel": string
} |
フィールド |
name |
string
出力専用。ID。LfpInventory リソースの名前。形式: accounts/{account}/lfpInventories/{target_merchant}~{storeCode}~{offer}
|
targetAccount |
string (int64 format)
必須。在庫を登録する販売者の Merchant Center ID。
|
storeCode |
string
必須。販売者の店舗の ID。InsertLfpStore で挿入された店舗コードまたはビジネス プロフィールの店舗コード。
|
offerId |
string
必須。変更不可。商品の一意の識別子です。販売者が在庫と販売の両方を登録する場合、この ID は同じ商品で一致している必要があります。 注: 販売者が同じ商品の新品と中古品を販売する場合は、異なる ID を使用する必要があります。
|
regionCode |
string
必須。商品が販売されている国の CLDR 地域コード。
|
contentLanguage |
string
必須。商品アイテムの 2 文字の ISO 639-1 言語コード。
|
price |
object (Price )
省略可。商品の現在の価格。
|
availability |
string
必須。この店舗での商品の在庫状況。使用できる属性値については、ローカル商品在庫データ仕様をご覧ください。
|
collectionTime |
string (Timestamp format)
省略可。広告枠が収集された時刻。設定しない場合、在庫が送信された時刻に設定されます。
|
gtin |
string
省略可。商品の国際取引商品番号。
|
quantity |
string (int64 format)
省略可。この店舗で購入できる商品の数量。0 以上の値を指定してください。
|
pickupMethod |
string
省略可。この商品のサポートされている受け取り方法。値が「サポート対象外」でない限り、このフィールドは pickupSla とともに送信する必要があります。使用できる属性値については、ローカル商品在庫データ仕様をご覧ください。
|
pickupSla |
string
省略可。注文日に対して、注文の受け取り準備が整う予定日。pickupMethod とともに送信する必要があります。使用できる属性値については、ローカル商品在庫データ仕様をご覧ください。
|
feedLabel |
string
省略可。商品のフィードラベル。設定しない場合、デフォルトで regionCode になります。
|
メソッド |
|
指定されたターゲット販売アカウントの LfpInventory リソースを挿入します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-21 UTC。
[null,null,["最終更新日 2024-11-21 UTC。"],[[["\u003cp\u003eThe LfpInventory resource represents a merchant's local product inventory, including details like price, availability, and quantity.\u003c/p\u003e\n"],["\u003cp\u003eIt requires key identifiers such as targetAccount, storeCode, and offerId to uniquely identify products.\u003c/p\u003e\n"],["\u003cp\u003eMerchants can manage their local product inventory by inserting LfpInventory resources using the \u003ccode\u003einsert\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe resource utilizes standardized codes for region, language, and product identifiers like GTIN for consistency.\u003c/p\u003e\n"],["\u003cp\u003eOptional fields like pickupMethod and pickupSla allow merchants to specify order fulfillment options.\u003c/p\u003e\n"]]],["The `LfpInventory` resource represents a merchant's local product inventory. Key information includes `targetAccount` (merchant ID), `storeCode`, `offerId` (product ID), `regionCode`, and `contentLanguage`. It also contains product details like `price`, `availability`, `gtin`, and `quantity`. Optional data points are `collectionTime`, `pickupMethod`, `pickupSla`, and `feedLabel`. The primary action is the `insert` method, which submits inventory data for a specific merchant account.\n"],null,["# REST Resource: accounts.lfpInventories\n\n- [Resource: LfpInventory](#LfpInventory)\n - [JSON representation](#LfpInventory.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: LfpInventory\n----------------------\n\nLocal Inventory for the merchant.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"targetAccount\": string, \"storeCode\": string, \"offerId\": string, \"regionCode\": string, \"contentLanguage\": string, \"price\": { object (/merchant/api/reference/rest/Shared.Types/Price) }, \"availability\": string, \"collectionTime\": string, \"gtin\": string, \"quantity\": string, \"pickupMethod\": string, \"pickupSla\": string, \"feedLabel\": string } ``` |\n\n| Fields ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Identifier. The name for the `LfpInventory` resource. Format: `accounts/{account}/lfpInventories/{target_merchant}~{storeCode}~{offer}` |\n| `targetAccount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The Merchant Center ID of the merchant to submit the inventory for. |\n| `storeCode` | `string` Required. The identifier of the merchant's store. Either the store code inserted through `InsertLfpStore` or the store code in the Business Profile. |\n| `offerId` | `string` Required. Immutable. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product. **Note**: if the merchant sells the same product new and used, they should have different IDs. |\n| `regionCode` | `string` Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country where the product is sold. |\n| `contentLanguage` | `string` Required. The two-letter ISO 639-1 language code for the item. |\n| `price` | `object (`[Price](/merchant/api/reference/rest/Shared.Types/Price)`)` Optional. The current price of the product. |\n| `availability` | `string` Required. Availability of the product at this store. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342) |\n| `collectionTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Optional. The time when the inventory is collected. If not set, it will be set to the time when the inventory is submitted. |\n| `gtin` | `string` Optional. The Global Trade Item Number of the product. |\n| `quantity` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Optional. Quantity of the product available at this store. Must be greater than or equal to zero. |\n| `pickupMethod` | `string` Optional. Supported pickup method for this offer. Unless the value is \"not supported\", this field must be submitted together with `pickupSla`. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342). |\n| `pickupSla` | `string` Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342). |\n| `feedLabel` | `string` Optional. The [feed label](https://developers.google.com/shopping-content/guides/products/feed-labels) for the product. If this is not set, it will default to `regionCode`. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| ### [insert](/merchant/api/reference/rest/lfp_v1beta/accounts.lfpInventories/insert) | Inserts a `LfpInventory` resource for the given target merchant account. |"]]