Method: accounts.products.localInventories.insert
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
販売者のアカウントの商品に LocalInventory リソースを挿入します。
商品に同じ storeCode のエントリがすでに存在する場合、LocalInventory リソース全体を置き換えます。
新しい LocalInventory リソースまたは更新された LocalInventory リソースが商品に表示されるまで、最長で 30 分ほどかかることがあります。
HTTP リクエスト
POST https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
| パラメータ |
parent |
string
必須。この広告枠が挿入されるアカウントとプロダクト。形式: accounts/{account}/products/{product}
|
リクエストの本文
リクエストの本文には LocalInventory のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には LocalInventory のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/content
詳細については、OAuth 2.0 Overview をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-01-23 UTC。
[null,null,["最終更新日 2025-01-23 UTC。"],[],["This operation inserts a `LocalInventory` resource for a product within a merchant account, replacing existing entries with the same `storeCode`. The process can take up to 30 minutes to reflect changes. A POST request to `https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert` is used, with `parent` specifying the account and product. The request and response bodies utilize the `LocalInventory` resource. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"]]