Script for tracking campaign Underspend

95 views
Skip to first unread message

Shailesh Bhoyare

unread,
Apr 10, 2020, 10:49:10 PM4/10/20
to Google Ads Scripts Forum
Hi,

Is it possible to get a complete list of campaigns that underspent its daily budget? along with control of the underspend threshold? e.g. campaign A has a daily budget of $100. If a campaign is underspent by 30% i.e. spend is only $70, is it possible to track this campaign? Similarly, we would like to track all campaigns which do not cross the threshold. If anyone can share a script for this, that would be great. 
FYI. I am already using a script for pausing the campaign when it exceeds its daily budget.

Google Ads Scripts Forum Advisor

unread,
Apr 12, 2020, 11:44:08 PM4/12/20
to adwords-scripts+apn2wqe8i9zbg_nc...@googlegroups.com, adwords-scripts+apn2wqe8i9zbg_nc...@googlegroups.co, adwords...@googlegroups.com
Hi Shailesh,

Thank you for reaching out to our team.

My apologies as there is currently no readily available Script for your use case.

You should be able to use the AdsApp.CampaignSelector and use the Cost field in the withCondition method to retrieve the latest spend and use the value to compare and see if it has reached a percentage of your campaign's budget value. In addition, the campaign's budget can also be retrieved via the getBudget method.

As for the third party sample that you provided, our team would unfortunately be unable to comment further as this is already outside of our scope.

Best regards,
Peter
Google Ads Scripts Team

ref:_00D1U1174p._5001UZXSLM:ref

Shailesh Bhoyare

unread,
Apr 13, 2020, 1:09:00 AM4/13/20
to Google Ads Scripts Forum
Thanks for your response. Is there any script available from Google for pausing the campaign when daily spend is met?

Google Ads Scripts Forum Advisor

unread,
Apr 13, 2020, 2:18:44 AM4/13/20
to adwords-scripts+apn2wqe8i9zbg_nc...@googlegroups.com, adwords-scripts+apn2wqe8i9zbg_nc...@googlegroups.co, adwords...@googlegroups.com
Hi Shailesh,

As our expertise is focused only on Google Ads Scripts, I'm afraid I would not be able to comment further if there are other products from Google that could utilize a Script that suits your use case.

You should be able to use the suggestions provided earlier to retrieve the values (cost, budget) that you need and pause the campaigns should your local condition using those values has been met.

Thanks,
Reply all
Reply to author
Forward
0 new messages