Anda dapat menggunakan Merchant API untuk mengupload dan mengelola produk secara terprogram. Dengan resource
accounts.products,
Anda dapat membuat katalog toko online, yang merupakan daftar produk dan
penawaran. Untuk mengetahui informasi selengkapnya tentang cara mengupload dan mengelola produk menggunakan Merchant API, lihat Ringkasan Merchant Products API.
Berikut adalah contoh perbandingan Content API for Shopping dengan Merchant Products API:
|
Content API for Shopping |
API Produk Penjual |
Deskripsi |
URL |
https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/products/
|
https://merchantapi.googleapis.com/products/v1beta/ {parent}/productInputs:insert
|
Variabel {parent} di URL permintaan Merchant API mewakili ID unik akun.
|
ID |
{id} |
{name} |
|
Metode
Berikut ini perbandingan metode produk di Content API for Shopping
dan Merchant Products API:
Metode |
Content API for Shopping |
API Produk Penjual |
customBatch |
Ya |
Tidak |
insert |
Ya |
Ya |
get |
Ya |
Ya |
update |
Ya |
Tidak tersedia |
delete |
Ya |
Ya |
list |
Ya |
Ya |
Berikut contoh perbandingan metode GET
untuk Content API for Shopping dan Merchant Products API:
Content API for Shopping |
API Penjual |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {accountId}/products/ {productId} |
GET https://merchantapi.googleapis.com/products/v1beta/ {name=accounts/*/products/*} |
Permintaan
Metode |
URL di Content API for Shopping |
URL di Merchant Products API |
ID di Content API |
ID di Merchant Products API |
insert |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/products |
POST https://merchantapi.googleapis.com/products/v1beta/ {parent}/productsInputs:insert?dataSource={dataSourceName} |
{merchantId} |
{parent} |
update |
PATCH https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/products/ {productId} |
Tidak tersedia |
|
|
delete |
DELETE https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/products/ {productId} |
DELETE https://merchantapi.googleapis.com/products/v1beta/{name=accounts/*/productInputs/*}?dataSource={dataSourceName} |
{merchantId}/datafeeds/ {productId} |
{name=accounts/*/productInputs/*} |
get |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/products/ {productId} |
GET https://merchantapi.googleapis.com/products/v1beta/{name=accounts/*/products/*} |
{merchantId}/datafeeds/ {productId} |
{name=accounts/*/products/*} |
list |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/products |
GET https://merchantapi.googleapis.com/products/v1beta/ {parent=accounts/*}/products |
{merchantId} |
{parent=accounts/*} |
Referensi
Content API for Shopping |
API Produk Penjual |
Deskripsi |
|
|
Beberapa kolom yang ada di resource Product di Content API for Shopping telah dipindahkan ke kolom Attribute di referensi ProductInput di Merchant Products API.
|