Anda dapat menggunakan Merchant API untuk mengupload dan mengelola produk secara terprogram. Resource
accounts.products
memungkinkan Anda membuat katalog toko online, yaitu daftar produk dan
penawaran. Untuk 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 |
Merchant Products API |
Deskripsi |
URL |
https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/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 adalah perbandingan metode produk di Content API for Shopping
dan Merchant Products API:
Metode |
Content API for Shopping |
Merchant Products API |
customBatch |
Ya |
Tidak |
insert |
Ya |
Ya |
get |
Ya |
Ya |
update |
Ya |
Tidak tersedia |
delete |
Ya |
Ya |
list |
Ya |
Ya |
Berikut adalah contoh perbandingan metode GET
untuk Content API for Shopping dan
Merchant Products API:
Content API for Shopping |
Merchant API |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {ACCOUNT_ID}/products/ {PRODUCT_ID} |
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/ {MERCHANT_ID}/products |
POST https://merchantapi.googleapis.com/products/v1beta/ {PARENT}/productsInputs:insert?dataSource=accounts/ {MERCHANT_ID}/dataSources/ {DATASOURCE_ID} |
{MERCHANT_ID} |
{PARENT} |
update |
PATCH https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/products/ {PRODUCT_ID} |
Tidak tersedia |
|
|
delete |
DELETE https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/products/ {PRODUCT_ID} |
DELETE https://merchantapi.googleapis.com/products/v1beta/{name=accounts/*/productInputs/*}?dataSource=accounts/ {MERCHANT_ID}/dataSources/ {DATASOURCE_ID} |
{MERCHANT_ID}/datafeeds/ {PRODUCT_ID} |
{name=accounts/*/productInputs/*} |
get |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/products/ {PRODUCT_ID} |
GET https://merchantapi.googleapis.com/products/v1beta/{name=accounts/*/products/*} |
{MERCHANT_ID}/datafeeds/ {PRODUCT_ID} |
{name=accounts/*/products/*} |
list |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/products |
GET https://merchantapi.googleapis.com/products/v1beta/ {parent=accounts/*}/products |
{MERCHANT_ID} |
{parent=accounts/*} |
Resource
Content API for Shopping |
Merchant Products API |
Deskripsi |
|
|
Beberapa kolom yang ada di resource Product di Content API for Shopping telah dipindahkan ke kolom Attribute di resource ProductInput di Merchant Products API.
|