Pause/Activate Google Ads Account If Website Goes Down
This script checks the uptime of a specified website every hour. If the website is down, it pauses all active Google Ads campaigns and sends an email notification. It logs the paused campaigns in a Google Sheet. When the website is back online, the script re-enables the paused campaigns and sends a notification email.
Full description (What does the script do)
This Google Ads script automates the process of monitoring a specified website's uptime, pausing active campaigns if the website is down, and re-enabling them once the website is back online. It also notifies the user via email about the status changes and logs the paused campaigns in a Google Sheet.
Example Use Cases
- E-commerce Websites: Automatically pause campaigns if the website goes down to avoid wasted ad spend and negative user experiences.
- Lead Generation Sites: Ensure that campaigns are paused if the landing page is unavailable, preserving budget and maintaining lead quality.
- Service-Based Businesses: Temporarily pause campaigns during website maintenance or unexpected downtimes and automatically resume when the site is back up.
Frequently Asked Questions
How often does the script check if the website is up or down?
The script is scheduled to run hourly.
What happens if the website is still down in the next check?
The script will keep the campaigns paused and send another notification if the website is still down during subsequent checks.
Can I change the frequency of the script execution?
Yes, you can change the frequency in the Google Ads Scripts interface by adjusting the schedule settings.
How do I find the Google Drive folder ID?
Navigate to the desired folder in Google Drive. The folder ID is the long string of characters in the URL after /folders/.
What if the Google Sheet already exists?
The script will use the existing Google Sheet and create new tabs for each downtime event.
Will the script automatically re-enable campaigns once the website is back online?
Yes, the script will re-enable the paused campaigns and send a notification email once it detects that the website is back online.
Reviews (0)
Pause/Activate Google Ads Account If Website Goes Down
Pause/Activate Google Ads Account If Website Goes Down
$25.00