Google Ads script: Check Daily Budget
Warns if the budget today, yesterday or in the last x days exceeds a defined percentage of the daily budget. Also works with shared budgets across multiple campaigns.
Alert | Monitoring | Read-only |
The percentage value of how far the budget may be exceeded can of course be set individually for each Google Ads account. The warning is issued per defined budget (shared budget or campaign budget).
Several different checks can also be defined for each account.
For example, a warning should be issued if:
- Spending today > 150% of the daily budget
- Spending last 5 days divided by 5 > 130% of the daily budget
- Spending last 14 days divided by 14 > 110% of the daily budget
Script developer: InBiz Online Marketing GmbH & CO. KG
The script was developed and provided for free use in the Ads Scripts Store by
InBiz Online Marketing GmbH & CO. KG. Thank you very much!
Example alarm e-mail
This alert email lists the campaigns in which the average daily costs of the last 7 days have exceeded the defined 120% of the joint daily budget.
By clicking on the link in the "Delta" column, you will land directly in the config sheet and can configure a different threshold value instead of
With a click on
Example script configuration
Link to the demo configuration sheet for CheckDailyBudget.
Configuration parameters
Parameter | Description |
---|---|
#hours | Here you can restrict the execution to 4,5,6,7 (i.e. from 4 to 7 o'clock), for example, if the daily costs are not to be monitored. |
#startDate | In the example email above, the budget was significantly exceeded over the last 7 days because the |
#settingsExecutionMode | If the budget for the current day is to be monitored, the setting "completeWithIssuesOncePerDay" is useful. The script then checks every hour whether the limit value has been reached.
If an alarm has been triggered |
campaignLabelNames | If only certain campaigns are to be taken into account, you can define |
alertCostGreaterThanPercentOfDailyBudget | 100% is the default value, but this should be changed urgently. The shorter the observation period, the higher the percentage value should be. |
numberOfDays | If there is more than one day, the costs are divided by the number of days and compared with the daily budget. |
daysBack | If you want to monitor the costs of the current day, you should enter 0 here and 1 for numberOfDays. Otherwise, 1 for "from yesterday" makes sense. |
Parameters that apply to all scripts
Download Google Ads script Check Daily Budget
Please log in or register in the Ads Scripts Store first to download the script (why is this necessary?).