产品概览
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Google Ads 脚本提供了一种在基于浏览器的 IDE 中使用 JavaScript 以编程方式管理和查询 Google Ads 数据的方法。Google Ads 的大多数功能都可通过 mutate 和 search 调用在 Google Ads 脚本中使用。您可以使用脚本自动执行常见程序或与外部数据互动,适用于一个或多个 Google Ads 账号。
为何要使用脚本?
如果您符合以下条件,则可能适合使用 Google Ads 脚本:
前提条件
您只需对 JavaScript 有入门级了解即可,IDE 可帮助您进行语法突出显示、自动补全和预览。您只需拥有一个 Google Ads 账号,即可开始编写您的第一个脚本。
反馈
如果您对 Google Ads 脚本有任何反馈,欢迎告诉我们!通过 Discord 与我们联系。
如果您需要支持,请与脚本技术支持团队联系。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-09-10。
[null,null,["最后更新时间 (UTC):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)."]]