Script to pause all google ads campaigns in a account after reaching a certain number of conversions

25 views
Skip to first unread message

Hi Rankings

unread,
Jun 4, 2024, 8:11:43 PMJun 4
to Google Ads Scripts Forum
Does anyone know how to pause all google ads campaigns in a specific account after reaching a certain number of conversions? Let's say 2 for conversation sake.


Google Ads Scripts Forum Advisor

unread,
Jun 4, 2024, 11:16:05 PMJun 4
to adwords...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads Scripts support team.

You can select and filter your campaigns using the CampaignSelector, then iterate through them using the CampaignIterator so that you would be able to number of conversions per campaign using the getConversions methods. You can pause campaigns using the pause method. Also, you may take a look at the examples in this link for script references.

If you face any issues, provide us with the following details to investigate the issue further:

  • Google Ads account ID or CID
  • Name of the affected script
  • If the script uses a spreadsheet, please provide the shareable link to the spreadsheet to share a file publicly. 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJDMV:ref" (ADR-00238280)

Thanks,
 
Google Logo Google Ads Scripts Team


Reply all
Reply to author
Forward
0 new messages