本頁面說明如何使用 Merchant API 建立 Merchant Center 帳戶,並上傳範例產品。
事前準備
在 Google Cloud 專案中啟用 Merchant API。驗證時會用到。
我是否有 Google Cloud 專案?
如果您使用 Apps Script 中的 API 整合功能,並透過 Shopping Content Service 建立預設的 Google Cloud 專案,系統會自動啟用 Merchant API 服務。不過,你仍須先完成一次性開發人員註冊,才能使用 Merchant API。詳情請參閱「在 Apps Script 中使用 Merchant API 服務」。
如果沒有 Google Cloud 專案,請建立 Google Cloud 專案。
步驟 1:建立 Merchant Center 帳戶
如要使用 Merchant API,你必須擁有 Merchant Center 帳戶。如要建立帳戶,請參閱「開始使用 Merchant Center」。如果你已有具備「管理員」權限的 Merchant Center 帳戶,即可使用該帳戶。
步驟 2:為 Merchant API 設定驗證
設定驗證的最佳方式取決於您打算使用的環境:
- 如果您是第三方供應商,請讓應用程式使用 OAuth 2.0 要求存取客戶的 Merchant Center 帳戶。詳情請參閱「存取客戶帳戶」。如要註冊,您必須取得 Google 帳戶的 OAuth 權杖。
- 如要開發內部應用程式,且只需要存取 Merchant Center 帳戶,請參閱「存取帳戶」一文。
步驟 3:決定如何與 Merchant API 互動。
與 Merchant API 互動的方式有兩種: