Stop automatically the campaign once the budget is used up

14 views
Skip to first unread message

Tst Knto

unread,
Feb 22, 2019, 1:50:46 PM2/22/19
to AdWords API and Google Ads API Forum

Hi,

 

I'm looking for a possibility that will stop a Google Ads campaign once the budget is used up. I’ve already tried it with Google Ads Script, but due the limited schedule (you can run it only once per hour – if you run a loop, it will be cancelled after 30 minutes) this is not a solution. Would it be possible via Google API?

 

Regards


Othmar

0 Links

googleadsapi...@google.com

unread,
Feb 22, 2019, 5:38:10 PM2/22/19
to AdWords API and Google Ads API Forum
Hi Othmar

You can pause the campaign using the CampaignService.mutate() operation. But, using the API, it may not be able to possible to identify when your budget is used up in real time. You could take a look at the Alerting Framework for AdWords demo application to see if you are able to setup the alert when your budget is used up. This is an open-source Java framework for large-scale AdWords API alerting which is based on the Java AdWords API client library. Please check here for more details. If so, you can have a logic to pause the campaigns via the API when you get that specific alert. Please let me know if you have any additional questions.

Thanks,
Sreelakshmi, AdWords API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages