Boost budget based on performance

The script automatically increases the budget of non-brand campaigns if their CPA performance is better than the average by a certain threshold.

What can I do with this?

Increase spend allocation to campaigns that are performing better than average to help drive additional conversions

How it works

The identifies relevant campaigns based on their names and calculates each campaign's average CPA and overall CPA. Any campaigns 10%  above average will receive a 5% budget boost.



  • User must define KPI targets in a spreadsheet for bulk upload


  • See the code below for the required columns in the report


  • Adjust campaign name logic to determine which campaigns to include
  • Adjust performance threshold
  • Adjust the budget boost amount



Written by Wes MacLaggan

Last published at: March 25th, 2024