產品總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google Ads 指令碼提供一種方法,讓您在瀏覽器型 IDE 中使用 JavaScript,以程式輔助方式管理及查詢 Google Ads 資料。透過 mutate 和 search 呼叫,即可在 Google Ads 指令碼中使用大部分的 Google Ads 功能。您可以使用指令碼自動執行常見程序,或與外部資料互動,適用於一或多個 Google Ads 帳戶。
為何要使用指令碼?
如果您符合下列條件,可能就很適合使用 Google Ads 腳本:
必要條件
您只需要具備 JavaScript 的入門知識,IDE 就能提供語法醒目顯示、自動完成和預覽功能。只要有 Google Ads 帳戶,就能開始撰寫第一個指令碼。
意見回饋
歡迎提供 Google Ads 指令碼的意見回饋,透過 Discord 與我們聯絡。
如需支援,請與指令碼技術支援團隊聯絡。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-10 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-10 (世界標準時間)。"],[[["\u003cp\u003eGoogle Ads scripts allow you to automate Google Ads tasks and interact with external data using JavaScript within a browser-based IDE.\u003c/p\u003e\n"],["\u003cp\u003eBasic JavaScript knowledge is sufficient to get started, and a Google Ads account is all you need.\u003c/p\u003e\n"],["\u003cp\u003eThe new Google Ads scripts experience offers a rewritten backend with benefits like ES6 support, improved performance, better validation, and enhanced campaign bidding strategy support.\u003c/p\u003e\n"],["\u003cp\u003eYou can easily transition to the new infrastructure using a toggle within the script editor.\u003c/p\u003e\n"],["\u003cp\u003eFeedback on Google Ads scripts is encouraged and can be shared through the designated forum.\u003c/p\u003e\n"]]],[],null,["Google Ads scripts provide a way to programmatically manage and query your Google Ads data\nusing JavaScript in a browser-based IDE. Most features of Google Ads are available\nin Google Ads scripts through [mutate](https://developers.google.com/google-ads/scripts/docs/features/mutate)\nand [search](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp#search_query-optArgs)\ncalls. You can use scripts to automate common procedures or interact with\nexternal data---for one to many Google Ads accounts.\n\nWhy use scripts?\n\nGoogle Ads scripts may be right for you if:\n\n- You want to make changes to your Google Ads account programmatically, without needing to set up a server or coding environment.\n- You want to apply [Bulk Uploads](https://developers.google.com/google-ads/scripts/docs/features/bulk-upload) or [manage Video Campaigns](https://developers.google.com/google-ads/scripts/docs/features/video-campaigns) programmatically.\n- You want to [manage advertiser accounts at the manager level](https://developers.google.com/google-ads/scripts/docs/features/manager-scripts) by writing one script that can access all serving child accounts.\n- You want to schedule scripts to run without needing an [active user session](https://developers.google.com/google-ads/scripts/docs/concepts/authorization#why_authorization_is_necessary).\n- You want to integrate with other [Google APIs](https://developers.google.com/google-ads/scripts/docs/features/advanced-apis) or [third party APIs](https://developers.google.com/google-ads/scripts/docs/features/third-party-apis).\n- Your script will take [less than 30 minutes to run](https://developers.google.com/google-ads/scripts/docs/limits) (or 60 minutes if run in parallel from a manager account).\n\nPrerequisites\n\nOnly entry-level familiarity with JavaScript is needed---the IDE helps with\nsyntax highlighting, auto-complete, and previewing. All you need is a\n[Google Ads](//ads.google.com) account to start writing your first script.\n\nFeedback\n\nIf you have any feedback on Google Ads scripts, we would love to hear it! Reach\nout to us on [Discord](//goo.gle/google-ads-discord).\n\nIf you need support,\n[contact scripts technical support](/google-ads/scripts/docs/support/contact)."]]