Google Merchant Center 這項工具可協助你將商家和產品資料上傳至 Google,並讓購物廣告與其他 Google 服務使用這些內容。將 Merchant Center 帳戶連結至 Google Ads 帳戶後,產品資料就能傳送至 Google Ads,供廣告活動使用。
帳戶連結總覽
如要建立購物廣告活動,請先將 Google Ads 帳戶連結至 Merchant Center 帳戶。建立連結的方法有三種:
- 直接連結:如果你同時擁有 Google Ads 帳戶和 Merchant Center 帳戶的管理員存取權,就能立即連結這兩個帳戶。
- 連結要求:如果您沒有這兩個帳戶的管理員存取權,請從 Merchant Center 帳戶傳送連結要求,並在 Google Ads 帳戶中接受要求。
- 商家管理工具:如果兩個帳戶都由同一個商家管理工具帳戶管理,系統會自動連結這兩個帳戶。
下列各節將詳細說明這些方法,以及如何管理及驗證現有連結。
建立直接連結
如果嘗試建立連結的使用者同時擁有 Google Ads 帳戶和 Merchant Center 帳戶的管理員存取權,即可使用直接連結流程立即連結帳戶,不需要邀請和核准。
直接連結帳戶的方式有兩種:
- 如果從 Merchant Center 啟動連結,請使用 Merchant API
propose方法。 - 如果從 Google Ads 啟動連結,請使用 Google Ads API
ProductLinkService.CreateProductLink方法。
使用連結要求
如果您沒有這兩個帳戶的管理員存取權,請使用連結要求流程建立連結。
透過 Merchant Center 帳戶傳送連結要求
傳送連結要求的方式有兩種:
- 使用 Merchant Center 網頁介面傳送連結要求。
- 使用 Merchant API 連結帳戶,提議建立新的服務連結。
列出所有連結要求
您可以使用下列 GAQL 查詢執行 Google Ads API 報表,擷取所有待處理的邀請,將 Google Ads 客戶 ID 連結至 Merchant Center 帳戶。
SELECT
product_link_invitation.resource_name,
product_link_invitation.merchant_center.merchant_center_id,
product_link_invitation.type
FROM product_link_invitation
WHERE product_link_invitation.status = 'PENDING_APPROVAL'
AND product_link_invitation.type = 'MERCHANT_CENTER'
如要擷取所有邀請,請移除上述查詢中 product_link_invitation.status 欄位的篩選條件。
接受連結要求
你可以透過下列兩種方式,核准 Merchant Center 帳戶的待處理邀請:
- 使用 Google Ads 網頁介面。
- 使用
ProductLinkInvitationService.UpdateProductLinkInvitation方法將邀請狀態更新為ACCEPTED。您可以按照「列出所有連結要求」一文中的操作說明,擷取邀請的資源名稱。
拒絕連結要求
你可以透過下列兩種方式,拒絕 Merchant Center 帳戶的待處理邀請:
- 使用 Google Ads 網頁介面。
- 使用
ProductLinkInvitationService.UpdateProductLinkInvitation方法將邀請狀態更新為REJECTED。您可以按照「列出所有連結要求」一文中的操作說明,擷取邀請的資源名稱。
如果拒絕邀請,之後就無法接受。請改為建立新的提案。
商家管理工具
商家管理工具是商家在 Google 上的統一代表。使用商家管理工具帳戶管理 Google Ads 帳戶和 Merchant Center 帳戶時,商家管理工具會自動建立 Google Ads 帳戶和 Merchant Center 帳戶之間的連結。您可以使用 Google Ads API 擷取這些連結,但無法透過 Google Ads API 變更這些連結。
管理及驗證連結
你可以使用 Google Ads API 管理及驗證 Merchant Center 和 Google Ads 帳戶之間的現有連結。
列出所有 Merchant Center 連結
您可以使用下列 GAQL 查詢執行 Google Ads API 報表,擷取 Google Ads 客戶 ID 的連結清單。
SELECT
product_link.merchant_center.merchant_center_id,
product_link.product_link_id
FROM product_link
WHERE product_link.type = 'MERCHANT_CENTER'
取消連結
您可以透過 Google Ads API 或 Merchant Center API 取消連結帳戶,具體取決於您使用哪個產品發起取消連結要求。
如果從 Google Ads 發起取消連結要求,請使用 Google Ads API
ProductLinkService.RemoveProductLink
方法。
如果從 Merchant Center 發起取消連結要求,請在有效服務連結上使用帳戶連結的 Merchant APIaccounts.services.delete 方法。