Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Script to pause YT campaign once it reaches its daily view limit

37 views
Skip to first unread message

Maia Anderson

unread,
Feb 3, 2025, 6:08:11 PMFeb 3
to Google Ads Scripts Forum
Hi there, does anyone have a script for pausing a campaign daily once it reaches its view goal for the day? (Then re-enable the campaign the following day)

Google Ads Scripts Forum

unread,
Feb 3, 2025, 6:35:21 PMFeb 3
to Google Ads Scripts Forum

Hi,

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

I would like to inform you that there is no ready made script based on your requirement. I would suggest that you use the method pause to a campaign and the method enable to enable a campaign. You may refer to this document for a sample script to pause a campaign. I would suggest that you use the methods available in the AdsApp.​Stats document to get stats like getImpressions, getClicks, and getConversions etc. Get  method to get impressions for today's date range. You can follow the Working with Dates and Times to check the campaigns stats based on specific time periods. If you want to pause or enable campaigns based on different parameters to the above mentioned ones, kindly mention on what parameters you are trying to pause campaigns.

Thanks,
Google Ads Scripts support team
Reply all
Reply to author
Forward
0 new messages