Hi Othmar
You can pause the campaign using the CampaignService.mutate()
<https://developers.google.com/adwords/api/docs/reference/v201809/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
<https://github.com/googleads/adwords-alerting> 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
<https://github.com/googleads/googleads-java-lib>.
Please check here
<https://developers.google.com/adwords/api/docs/demo-apps/> 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/ijlio23rp000000088l7k4001ccmuaz68mj2e9k6oo30c1g68qj6chg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.