Method: accounts.products.localInventories.insert
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menyisipkan resource LocalInventory ke produk di akun penjual Anda.
Mengganti resource LocalInventory lengkap jika entri dengan storeCode yang sama sudah ada untuk produk.
Mungkin perlu waktu hingga 30 menit agar resource LocalInventory baru atau yang diperbarui muncul di produk.
Permintaan HTTP
POST https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
| Parameter |
parent |
string
Wajib. Akun dan produk tempat inventaris ini akan disisipkan. Format: accounts/{account}/products/{product}
|
Isi permintaan
Isi permintaan memuat instance LocalInventory.
Isi respons
Jika berhasil, isi respons memuat instance LocalInventory.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/content
Untuk mengetahui informasi selengkapnya, lihat OAuth 2.0 Overview.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-01-23 UTC.
[null,null,["Terakhir diperbarui pada 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"]]