想分享對 Google Ads API 的意見嗎?
立即註冊,等待受邀參與使用者研究調查!
移除廣告活動預算
移除預算前,請先檢查reference_count
,確認沒有任何 ENABLED
或 PAUSED
廣告活動在使用該預算。如果這個欄位大於 0,表示仍有 ENABLED
或 PAUSED
廣告活動在使用預算。您可以搜尋以 campaign_budget
做為主要資源的指標,擷取這項資訊。以下是預算參照計數的 GAQL 查詢,篩選條件為 ID:
SELECT campaign_budget.reference_count
FROM campaign_budget
WHERE campaign_budget.id = campaign_budget_id
確定 CampaignBudget
不再使用且可移除後,請傳送含有廣告活動預算資源名稱的 remove
作業。
移除廣告活動時,您也會一併移除該廣告活動使用的非共用預算。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-28 (世界標準時間)。
[null,null,["上次更新時間:2025-02-28 (世界標準時間)。"],[[["Before removing a budget, ensure no active or paused campaigns are using it by checking its `reference_count`."],["If the `reference_count` is greater than 0, retrieve information using a GAQL query with `campaign_budget` as the main resource."],["To remove an unused `CampaignBudget`, send a `remove` operation with the resource name of the campaign budget."],["Removing a campaign also removes any non-shared budget associated with it."]]],[]]