Pausing an ad group

79 views
Skip to first unread message

sz...@mymail.mines.edu

unread,
Jun 22, 2018, 12:44:02 PM6/22/18
to AdWords API and Google Ads API Forum
Hello,

Looking through the example code, I see and example to remove an ad group, however I don't see one that will pause an ad group. How would I go about doing that?


Thanks

sz...@mymail.mines.edu

unread,
Jun 22, 2018, 2:21:59 PM6/22/18
to AdWords API and Google Ads API Forum
Ideally, I am looking to pause an ad group when it breaks a certain cost threshold. Any help would be appreciated.

Thanks,

Sean

Milind Sankeshware (AdWords API Team)

unread,
Jun 22, 2018, 5:06:25 PM6/22/18
to AdWords API and Google Ads API Forum
Hi Sean,

You can use AdGroupService.mutate() service to pause the AdGroup. Please refer sample Java code here. Samples in other languages can be found here. Let me know if you have any further questions.

Thanks,
Milind, AdWords API Team.

sz...@mymail.mines.edu

unread,
Jun 26, 2018, 12:57:33 PM6/26/18
to AdWords API and Google Ads API Forum
Thank you! How would I go about using this in conjugate with a threshold? Would I be able to use a selector/predicate pairing?

Milind Sankeshware (AdWords API Team)

unread,
Jun 26, 2018, 5:13:20 PM6/26/18
to AdWords API and Google Ads API Forum
Hi,

You will be able to get the status of the AdGroup using the AdGroup Performance Report. which aggregates stats at AdGroup level. You will then be able to use the AdGroupId and status from the report to update the status of the AdGroup using the AdGroupService.mutate() operation when it exceeds the limit. For this specific use case, you could also consider using AdWords scripts where you will be able to schedule a script. You can set the frequency to run the script as per your requirement. Let me know if you have any further questions.
Reply all
Reply to author
Forward
0 new messages