How can I automate my campaigns with Microsoft Advertising scripts?

Learn how to automate your account and campaigns with Microsoft Advertising scripts.

Microsoft Advertising scripts are pieces of JavaScript code you can use to automatically create, change, or delete items in your account based on custom criteria. You can make hundreds (or thousands!) of changes across your account all at once without needing to make the changes manually.

Here are some examples of using scripts:

  • Schedule campaigns linked to a launch or sale.
  • Have an ad pause automatically when the item it's advertising is out of stock.
  • Make a rule across your account to increase broad match keyword bids by 25% for keywords that generated more than 100 impressions that day.

Using Microsoft Advertising scripts


For more information

Visit our documentation site for details on scripting: