Google Ads Scripts
Copy-paste ready automation scripts to optimize your Google Ads campaigns
Pause Low Quality Score Keywords
Automatically pauses keywords with Quality Score below 5 that have spent over $50. Prevents wasted ad spend on underperforming keywords.
ROAS-Based Bid Optimization
Automatically adjusts keyword bids based on 30-day ROAS performance. Increases bids for high performers, decreases for underperformers.
Budget Pacing Alert
Sends an email alert when campaigns hit 90% of their daily budget. Helps prevent missed opportunities from capped budgets.
Zero Conversion Keyword Pauser
Pauses keywords with high spend but zero conversions. Prevents wasted budget on non-converting keywords.
Negative Keyword Miner
Analyzes search terms and automatically adds high-spend, low-converting queries as negative keywords.
Campaign Performance Report to Sheets
Exports daily campaign performance metrics to a Google Sheet for tracking and analysis over time.
Quality Score Tracker
Logs Quality Score changes over time to a spreadsheet. Track QS trends and identify opportunities for improvement.
Weekend/Weekday Bid Adjustments
Automatically adjusts campaign budgets based on day of week performance patterns.
Ad Schedule Optimizer
Analyzes hourly performance and creates ad schedules to reduce spend during low-converting hours.
Low CTR Ad Pauser
Automatically pauses ads with CTR below threshold. Helps maintain ad group health and Quality Score.
Disapproved Ads Checker
Finds and alerts on all disapproved ads across your account. Quickly identify policy violations before they impact your campaigns.
Empty Ad Group Detector
Finds ad groups without active ads or keywords. Clean up orphaned ad groups that waste account structure.
Change History Alert
Monitors account for significant changes by other users. Get notified when budgets, bids, or status change unexpectedly.
Performance Max Search Terms Reporter
Exports Performance Max campaign search terms to Google Sheets. Gain visibility into what queries trigger your PMax campaigns.
Shopping Product Pauser
Pauses low-performing shopping products based on ROAS thresholds. Automatically optimize your product feed performance.
Shopping Custom Labels Automation
Auto-assigns custom labels to products based on performance tiers. Segment products by ROAS, margin, or conversion rate.
Competitor Auction Insights Alert
Monitors Auction Insights for new competitors or significant impression share changes. Stay ahead of competitive threats.
Impression Share by Hour Report
Reports impression share trends by hour of day. Identify when you're losing visibility and optimize ad scheduling.
N-Gram Search Term Analysis
Analyzes search terms using n-gram patterns to find high-value word combinations. Discover new keywords and negative opportunities.
Landing Page Performance Report
Reports conversions and metrics by final URL/landing page. Identify your best and worst performing pages.
Duplicate Keyword Finder
Finds duplicate keywords across campaigns and ad groups. Eliminate internal competition and wasted spend.
Audience Bid Optimizer
Optimizes bid adjustments for audience segments based on conversion performance. Maximize ROI from your remarketing lists.
Ad Strength Report
Reports on RSA ad strength across your account. Identify weak ads and get actionable improvement suggestions.
Wasted Spend Report
Comprehensive analysis of wasted ad spend across keywords, search terms, placements, and more. Find all your money leaks.
Monthly Performance Email
Sends an automated monthly performance summary email with key metrics, trends, and highlights.
Campaign Naming Convention Checker
Validates campaign names against your naming conventions. Keep your account organized and consistent.
Keyword-Negative Conflict Finder
Finds keywords that are blocked by negative keywords. Unblock potential traffic you're accidentally excluding.
Spend Pacing Tracker
Tracks daily and monthly spend pacing with projections. Never under or overspend your budget again.
Conversion Action Checker
Alerts if conversion tracking stops working or drops significantly. Never miss broken tracking again.
Search Term to Keyword Adder
Automatically adds high-performing search terms as keywords. Scale your campaigns with proven queries.
Weather-Based Bid Adjustments
Automatically adjusts campaign bids based on real-time weather conditions. Boost AC/cooling ads in hot weather, heating ads in cold weather, delivery/indoor activity ads during rain. Perfect for seasonal and weather-sensitive businesses.
Inventory Stock Level Pauser
Automatically pauses campaigns or ad groups when product inventory reaches zero or falls below a threshold. Connects to Google Sheets with stock data to prevent advertising out-of-stock items.
Target CPA Performance Monitor
Monitors campaigns using Target CPA bidding strategy and alerts when actual CPA significantly deviates from the target (e.g., >20% over target). Helps catch bidding strategy issues early.
Shared Budget Utilization Monitor
Reports on shared budget allocation and utilization across campaigns. Identifies campaigns that are consuming disproportionate amounts of shared budgets, helping optimize budget distribution.
Ad Copy Performance Analyzer
Analyzes ad copy elements (headlines, descriptions) across all ads to identify winning phrases and underperformers. Provides actionable copywriting insights to improve ad performance.
Match Type Performance Comparison
Compares keyword performance across match types (broad, phrase, exact). Helps identify which match type strategy works best for your account and specific keyword themes.
Account Health Scorecard
Comprehensive account audit that scores multiple dimensions: ad strength, extension coverage, keyword health, budget utilization, and conversion tracking. Outputs an overall account health score with actionable recommendations.
Campaign Experiment Results Tracker
Tracks Google Ads campaign experiments (drafts and experiments) and reports on performance vs base campaign. Includes statistical significance calculation to help make data-driven decisions.
Slack Alert Integration
Template script for sending Google Ads alerts to Slack via webhook instead of email. Configurable message formatting, alert thresholds, and multiple alert types. Perfect for teams using Slack for notifications.
Impression Share Alert
Monitors campaign impression share and alerts when it drops below target. Helps identify when you are losing visibility to competitors.
Device Bid Modifier Optimizer
Analyzes performance by device (mobile, desktop, tablet) and suggests or applies bid adjustments based on conversion rates.
Account Anomaly Detector
Detects unusual changes in account performance metrics. Alerts when spend, clicks, conversions, or CPA deviate significantly.
Geographic Performance Optimizer
Analyzes performance by location and recommends or applies geographic bid adjustments based on conversion data.
Ad Extension Coverage Report
Identifies campaigns and ad groups missing key ad extensions. Extensions can improve CTR by 10-15%.
Search Partner Performance Analyzer
Compares performance between Google Search and Search Partners. Helps identify if Search Partners are worth the investment.
Placement Exclusion Finder
Identifies poor-performing display placements that should be excluded. Helps reduce wasted spend on low-quality sites/apps.
Label Automation
Automatically applies labels to campaigns, ad groups, and keywords based on performance metrics. Useful for filtering and reporting.
RSA Asset Performance Reporter
Reports on Responsive Search Ad asset (headline/description) performance. Identifies top and low performing assets.
Broken URL Checker
Checks landing page URLs for errors (404, 500, etc.). Alerts when ads are pointing to broken pages.
Conversion Lag Analyzer
Analyzes the time between click and conversion to understand attribution windows and optimize bidding strategies.
How to Use These Scripts
Copy Script
Click the copy button on any script card
Open Google Ads
Go to Tools > Bulk Actions > Scripts
Create New Script
Click the + button to create a new script
Paste & Configure
Paste the code, update CONFIG values, and authorize
Pro Tip: Start with DRY_RUN mode
All scripts include a DRY_RUN setting that previews changes without applying them. Always test scripts in dry run mode first, then enable on a small campaign before rolling out account-wide.
Frequently Asked Questions
What are Google Ads Scripts?
Google Ads Scripts are JavaScript code that runs directly in your Google Ads account to automate tasks, generate reports, and optimize campaigns. They can save hours of manual work every week.
Are these scripts safe to use?
Yes! All scripts include a DRY_RUN mode that previews changes without applying them. We recommend testing in dry run mode first, then on a small campaign before deploying account-wide.
Do I need to know JavaScript?
No! Simply copy the script, update the CONFIG values (like email addresses and thresholds), and paste into Google Ads. Comments explain what each setting does.
How often should scripts run?
It depends on the script. Budget alerts might run every 4 hours, while bid optimization works best weekly. Each script includes a recommended schedule in the comments.
Want automated optimization without scripts?
AdScriptly's AI agents continuously optimize your campaigns based on real revenue data