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.