遷移商品目錄管理

你可以使用 Merchant API 管理店面 (店內) 和區域商品目錄。

要求

請使用下列要求網址格式,針對 Merchant Inventories API

POST https://merchantapi.googleapis.com/inventories/v1beta/{PARENT}/regionalInventories
POST https://merchantapi.googleapis.com/inventories/v1beta/{PARENT}/localInventories

{PARENT} 的格式為:accounts/{ACCOUNT_ID}/products/ {PRODUCT_ID}

以下是店面商品目錄要求的比較範例:

項目 Content API for Shopping Merchant API
網址 https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/products/{PRODUCT_ID}/localinventory https://merchantapi.googleapis.com/inventories/v1beta/{PARENT}/localInventories
ID {MERCHANT_ID}/products/{PRODUCT_ID} {NAME}

方法

Merchant API 推出了兩種新的商品目錄管理方法:

  • list:讓你為產品列出當地和區域的商品目錄。
  • delete:可讓您刪除產品的店面和區域商品目錄資料。

以下比較可用來管理廣告空間的方法:

方法 Content API for Shopping Merchant API
customBatch
insert
list
delete

資源

以下是本地和區域商品目錄的異動內容:

Content API for Shopping Merchant API 說明
不支援 name:string 這個欄位可區分 product 中的 LocalInventoryRegionalInventory 資源。Content API for Shopping 會使用 storeCodeproductId 識別店面商品目錄,並使用 regionIdproductId 識別區域商品目錄。
不支援 account:string 新增欄位,用於識別 productLocalInventory 所屬的 Merchant Center 帳戶。
price: { object (Price) } price: {

object (Price)

}

Price 定義已變更。
salePrice: {

object (Price)

}

salePrice: {

object (Price)

}

Price 定義已變更。
salePriceEffectiveDate: string salePriceEffectiveDate: {

object (TimePeriod)

}

salePriceEffectiveDate 會使用 Merchant Inventories API 中的新 TimePeriod 物件。
kind:string 不支援 API 不支援 kind
quantity:string quantity:integer quantity 會在店面商品目錄中使用整數,而非字串。
不支援 localShippingLabel:string 新增欄位,用於識別 productregionalInventory 所屬的 Merchant Center 帳戶。
"regionId": string "region": string regionID 現已改稱為 region,用於區域廣告空間。