Daily Budget Automatic Allocation

109 views
Skip to first unread message

Kenardo Lausane

unread,
Dec 3, 2019, 5:02:12 AM12/3/19
to Google Ads Scripts Forum
Hi all,

On last November I faced a particular problem with my daily budget which I could solve manually. The thing is that I want to do it automatically.

During the 2 last weeks of November, I increased the daily budget of several campaigns so the monthly budget will be used 100%.by the end of the month. As a result, some of the budgets were around 200% than the initial daily budget. Then in December, I needed to adjust the daily budget to the initial daily budget so it would not consume the December budget too quickly, thus leaving less budget for the rest of December. However, 1 December was Sunday and at that particular Sunday, I was in a place where I could not access internet. So, I had been asking around on how to adjust the daily budget automatically but I found no answer. At the end I left it like that and on Monday 2nd of December, I adjusted the budget.

My friend then told me that script is the solution for the problem. Thus, I am seeking help here. In short, I need a script so at the 1st date of each month, the daily budget will automatically turn to a particular number which I can set up by myself.

I hope to hear back from the group soon. Thank you!
Best regards,
Ken

Google Ads Scripts Forum Advisor

unread,
Dec 3, 2019, 2:13:03 PM12/3/19
to adwords-scripts+apn2wqdxttsyteqe...@googlegroups.com, adwords-scripts+apn2wqdxttsyteqe...@googlegroups.co, adwords...@googlegroups.com
Hi Kenardo,

I recommend looking into the flexible budgets solution. The script requires a start and end date, total budget, and your budgeting distribution strategy. There is a pre-built distribution strategy for evenly distributed budgets, which sounds like what you're looking for.

Please let us know if you have any questions.

Regards,
Matt
Google Ads Scripts Team

ref:_00D1U1174p._5001UODhkf:ref

Kenardo Lausane

unread,
Dec 5, 2019, 10:02:26 PM12/5/19
to Google Ads Scripts Forum
Thanks Matt for the reply. I will try to look at it and to try it. I'll come back to you if I encounter other problems.

Best regards,
Kenardo

Kenardo Lausane

unread,
Jun 24, 2020, 6:42:57 AM6/24/20
to Google Ads Scripts Forum
Hi Matt,

Thank you for your email. Sorry for my very late reply.

I have tried to understand the script in the flexible budgets solution which you mentioned below. I think I understand them, but I still have question about it.

Can this script be used for multiple campaigns? So perhaps in the CAMPAIGN_NAME, there will be more than 1 campaign. Because that is what I am looking for. And if it can, how should it be written?
var START_DATE = new Date('May 1, 2016 0:00:00 -0500');
var END_DATE = new Date('June 1, 2016 0:00:00 -0500');
var TOTAL_BUDGET = 500;
var CAMPAIGN_NAME = 'Special Promotion';

Thank you.
Best regards,
Ken

On Wednesday, December 4, 2019 at 2:13:03 AM UTC+7, adsscriptsforumadvisor wrote:

Google Ads Scripts Forum Advisor

unread,
Jun 24, 2020, 11:48:45 AM6/24/20
to adwords-scripts+apn2wqdxttsyteqe...@googlegroups.com, adwords-scripts+apn2wqdxttsyteqe...@googlegroups.co, adwords...@googlegroups.com
Hi Ken,

This script is only designed for a single campaign. However, there are a few workarounds:
  1. Implement multiple instances of the script, one for each campaign
  2. If you have access to the MCC above this account, you can use the MCC version of the script. If there are more than a handful of accounts that you would like to target, I believe this would be the best solution. You can still focus on just one account, but the spreadsheet used by the solution allows you to enter multiple campaign names, budgets, start/end dates very easily. 
  3. Edit the single account version code. This would require:
    • Changing the campaign, budget and date data into an array of objects containing that data, or create a spreadsheet and pull the data from there
    • Looping through setNewBudget in main() until all campaigns/rows have been processed.
Reply all
Reply to author
Forward
0 new messages