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 をご覧ください。