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方法,並將product_link.merchant_center.merchant_center_id設為目標 Merchant Center 帳戶 ID。
使用連結邀請
如果您沒有這兩個帳戶的管理員權限,請使用連結邀請流程建立連結。
從 Merchant Center 帳戶傳送連結邀請
傳送連結邀請的方式有兩種:
- 使用 Merchant Center 網頁介面傳送連結邀請。
- 使用 Merchant API 連結帳戶,提議建立新的服務連結。
列出所有連結邀請
您可以使用下列 GAQL 查詢執行 Google Ads API 報表,從 Merchant Center 帳戶擷取 Google Ads 客戶 ID 的所有待處理連結邀請清單:
SELECT
product_link_invitation.resource_name,
product_link_invitation.merchant_center.merchant_center_id,
product_link_invitation.type,
product_link_invitation.status
FROM product_link_invitation
WHERE product_link_invitation.status = 'PENDING_APPROVAL'
AND product_link_invitation.type = 'MERCHANT_CENTER'
如要擷取所有連結邀請 (不論狀態為何,例如 ACCEPTED、REQUESTED 或 PENDING_APPROVAL),請移除上述查詢中 product_link_invitation.status 欄位的篩選條件。
接受連結邀請
你可以透過下列兩種方式,核准 Merchant Center 帳戶的待處理連結邀請:
- 使用 Google Ads 網頁介面。
- 使用
ProductLinkInvitationService.UpdateProductLinkInvitation方法,傳遞邀請的resource_name並將product_link_invitation_status設為ACCEPTED。如要擷取邀請的資源名稱,請按照「列出所有連結邀請」一文中的操作說明進行。
拒絕連結邀請
如要拒絕 Merchant Center 帳戶的待處理連結邀請,有兩種方法:
- 使用 Google Ads 網頁介面。
- 使用
ProductLinkInvitationService.UpdateProductLinkInvitation方法,傳遞邀請的resource_name並將product_link_invitation_status設為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 客戶 ID 的有效 Merchant Center 連結清單,藉此產生 Google Ads API 報表:
SELECT
product_link.resource_name,
product_link.merchant_center.merchant_center_id,
product_link.product_link_id,
product_link.type
FROM product_link
WHERE product_link.type = 'MERCHANT_CENTER'
移除連結
你可以使用 Google Ads API 或 Merchant API 取消連結帳戶,具體取決於你使用哪個產品發起取消連結要求。取消連結帳戶需要管理員存取權,且與該 Merchant Center 帳戶連結的有效購物廣告活動將無法放送產品廣告。
如果您是從 Google Ads 發起取消連結要求,請使用 Google Ads API ProductLinkService.RemoveProductLink 方法,並傳遞從 product_link 報表擷取的 product_link.resource_name。
如要從 Merchant Center 發起取消連結要求,請在有效服務連結上使用帳戶連結的 Merchant API accounts.services.reject 方法。