On this page:

Basic Settings
Actions when Budget is Exceeded
Advanced Settings

This script must be scheduled to run every hour if you want it to re-enable paused items at the start of a new budget period. 

Basic Settings

  • Read Settings from Spreadsheet: Select this option to get the values from the spreadsheet. You can copy this sample spreadsheet to set up budgets.

Note: Each column in the spreadsheet has an explanation of how the information has to be entered. The spreadsheet can work across accounts and settings. 

  • Maximum Budget Amount: Enter the budget amount you want to reach before the item is paused. The number in this field applies to each individual item. 
  • Monthly Cycle Start Date: In this field you can set the day of the month that's defined as the cycle start date for the budget period. It should be between 1 and 28.

Actions when Budget is Exceeded

  • Pause Items: When this setting is set to yes, items that have exceeded the maximum budget amount for the budget period can automatically be paused. 
  • Reenable Items: The script applies a Google Ads label to all items it pauses and uses the same label to enable those items at the beginning of the budget period. 

Important: If the label used is removed in Google Ads, the script will not be able to re-enable those items. If it is also applied to additional items in the account, the script will re-enable them whether or not they were paused by the script.

  • Text Of Label To Add: The name of the Google Ads label to add to items which exceeded the budget and are paused. This label is used to automatically find these items to reactivate them when the next budget period starts. 

Advanced Settings

  • Check Only Items With This Label: The script will only check the budgets of items with this label. Leave blank to check all active items in your account. 
  • Aggregate Costs: When checked, the combined cost of all matching items is compared to the budget. When left unchecked, each item that matches the search criteria is evaluated independently. 
  • Show Debug Data In Logs: Select this option to get the most complete logs which can be useful when reporting a problem to Optmyzr. This option severely decreases the performance of scripts so it should be turned off most of the time.

Advanced Option: If you manage a lot of accounts and budgets, it may be easier to maintain your settings in a Google Spreadsheet. Copy this spreadsheet to your own Google account for use with the New Advanced Settings of this script.

Did this answer your question?