Google Ads Automation: Scripts, Rules & AI Bidding
Founder at Adship

The average Google Ads manager spends 15+ hours per week on repetitive tasks: adjusting bids, pausing underperformers, checking budgets, and reviewing search terms. Automation handles these tasks faster, more consistently, and at scale — freeing you to focus on strategy and creative.
In 2026, Google Ads automation spans three levels: automated rules (no code), scripts (light code), and AI-driven features (Smart Bidding, Performance Max). This guide covers all three and when to use each.
Level 1: Automated Rules (No Code Required)
Automated rules are the simplest form of Google Ads automation. You set conditions and actions, and Google executes them on a schedule.
How to Create Automated Rules
- Go to Tools > Bulk Actions > Rules
- Click + New Rule
- Select what to apply the rule to (campaigns, ad groups, keywords, ads)
- Set conditions, actions, and frequency
Essential Automated Rules
Rule 1: Pause High-Spend, Zero-Conversion Keywords
Apply to: Keywords
Condition: Cost > $100 AND Conversions = 0
Time period: Last 30 days
Action: Pause keyword
Frequency: Weekly (Monday 9 AM)
This automatically catches keywords that drain budget without converting.
Rule 2: Budget Overspend Alert
Apply to: Campaigns
Condition: Cost > [Daily Budget × 1.5]
Time period: Today
Action: Send email notification
Frequency: Daily
Catch days when Google overspends your daily budget.
Rule 3: Increase Bids on Winners
Apply to: Keywords
Condition: Conversions > 5 AND CPA < [Target CPA × 0.8]
Time period: Last 14 days
Action: Increase bid by 15%
Max bid: $[your max]
Frequency: Weekly
Automatically invest more in keywords that convert efficiently.
Rule 4: Decrease Bids on Losers
Apply to: Keywords
Condition: Clicks > 50 AND Conversion Rate < 1%
Time period: Last 14 days
Action: Decrease bid by 20%
Frequency: Weekly
Reduce investment in keywords that aren't converting.
Rule 5: Enable/Disable Campaigns by Schedule
Apply to: Campaigns
Condition: (none)
Action: Enable campaign
Frequency: Monday-Friday at 8 AM
Apply to: Campaigns
Condition: (none)
Action: Pause campaign
Frequency: Monday-Friday at 6 PM
For businesses that only want ads running during business hours.
Automated Rules Best Practices
- Start conservative. Set actions to "Email notification" first, not "Pause" or "Change bid." Watch what the rules would do before letting them act.
- Set maximum/minimum bid caps. Never let an automated bid increase go above your profitable threshold.
- Review rule activity weekly. Check which rules fired and verify the actions were appropriate.
- Don't overlap rules. Two rules that contradict each other (one increases bids, one decreases) will cause erratic behavior.
Level 2: Google Ads Scripts
Scripts are JavaScript snippets that run inside Google Ads. They can do everything automated rules can do, plus complex logic, API calls, spreadsheet integration, and multi-account management.
How Scripts Work
- Go to Tools > Bulk Actions > Scripts
- Click + New Script
- Write or paste JavaScript code
- Authorize the script to access your account
- Preview (test run without making changes)
- Schedule to run at your chosen frequency
Useful Google Ads Scripts
Script 1: Search Term Negative Keyword Automator
Automatically adds negative keywords for search terms with high spend and no conversions:
function main() {
var COST_THRESHOLD = 50;
var DAYS = 30;
var report = AdsApp.report(
'SELECT search_term, cost, conversions, campaign_name ' +
'FROM SEARCH_TERM_VIEW ' +
'WHERE cost > ' + (COST_THRESHOLD * 1000000) +
' AND conversions = 0 ' +
'DURING LAST_' + DAYS + '_DAYS'
);
var rows = report.rows();
while (rows.hasNext()) {
var row = rows.next();
Logger.log('Negative candidate: ' + row['search_term'] +
' (Cost: #x27; + (row['cost'] / 1000000).toFixed(2) + ')');
}
}
This script logs candidates. Add automatic negative keyword addition once you're comfortable with the logic.
Script 2: Budget Pacing Monitor
Checks if campaigns are on track to spend their monthly budget:
function main() {
var today = new Date();
var dayOfMonth = today.getDate();
var daysInMonth = new Date(today.getFullYear(), today.getMonth() + 1, 0).getDate();
var expectedPacing = dayOfMonth / daysInMonth;
var campaigns = AdsApp.campaigns()
.withCondition('Status = ENABLED')
.get();
while (campaigns.hasNext()) {
var campaign = campaigns.next();
var stats = campaign.getStatsFor('THIS_MONTH');
var monthlyBudget = campaign.getBudget().getAmount() * daysInMonth;
var actualPacing = stats.getCost() / monthlyBudget;
if (actualPacing > expectedPacing * 1.2) {
Logger.log('OVERSPENDING: ' + campaign.getName() +
' (' + (actualPacing * 100).toFixed(0) + '% vs expected ' +
(expectedPacing * 100).toFixed(0) + '%)');
}
}
}
Script 3: Quality Score Tracker
Exports Quality Score data to a Google Sheet for historical tracking:
function main() {
var SPREADSHEET_URL = 'YOUR_SHEET_URL';
var ss = SpreadsheetApp.openByUrl(SPREADSHEET_URL);
var sheet = ss.getActiveSheet();
var keywords = AdsApp.keywords()
.withCondition('Status = ENABLED')
.withCondition('CampaignStatus = ENABLED')
.withCondition('AdGroupStatus = ENABLED')
.get();
var today = Utilities.formatDate(new Date(), 'GMT', 'yyyy-MM-dd');
while (keywords.hasNext()) {
var keyword = keywords.next();
var qs = keyword.getQualityScore();
if (qs) {
sheet.appendRow([
today,
keyword.getCampaign().getName(),
keyword.getAdGroup().getName(),
keyword.getText(),
qs
]);
}
}
}
Script 4: Ad Disapproval Alert
Emails you when any ad gets disapproved:
function main() {
var EMAIL = 'your@email.com';
var ads = AdsApp.ads()
.withCondition('ApprovalStatus = DISAPPROVED')
.get();
var disapproved = [];
while (ads.hasNext()) {
var ad = ads.next();
disapproved.push(
ad.getCampaign().getName() + ' > ' +
ad.getAdGroup().getName() + ' > ' +
ad.getHeadlinePart1()
);
}
if (disapproved.length > 0) {
MailApp.sendEmail(EMAIL,
'Google Ads: ' + disapproved.length + ' Disapproved Ads',
disapproved.join('\n'));
}
}
Script Resources
- Google's Script Library: developers.google.com/google-ads/scripts — official scripts and examples
- BrainLabs Scripts: Free, well-documented scripts for common tasks
- Search Engine Land: Regular script tutorials and updates
Level 3: AI-Driven Automation (Smart Bidding)
Google's machine learning handles the most complex automation: real-time bid optimization across millions of auction signals.
Smart Bidding Strategies
| Strategy | What AI Optimizes | Best For |
|---|---|---|
| Maximize Conversions | Bid to get most conversions in budget | Building conversion data |
| Target CPA | Bid to get conversions at target cost | Lead gen with cost targets |
| Maximize Conversion Value | Bid to get most revenue in budget | Ecommerce building data |
| Target ROAS | Bid to hit target return on ad spend | Ecommerce with ROAS goals |
Signals Smart Bidding Uses
Google's AI considers 70+ signals per auction, including:
- Device type and operating system
- Physical location and location intent
- Day of week and time of day
- Browser language and settings
- Remarketing list membership
- Search query (exact, not just keyword)
- Ad creative being shown
- Cross-device behavior patterns
No human can process all these signals manually. This is where AI genuinely outperforms human optimization.
Helping Smart Bidding Succeed
- Accurate conversion tracking — bad data = bad bidding
- Sufficient conversion volume — 15+ conversions/month minimum, 30+ ideal
- Patience during learning — don't change anything for 2 weeks after enabling
- Realistic targets — start 10-20% above your current CPA/below your current ROAS
- Enough budget — "Limited by Budget" constrains the algorithm's ability to optimize
Performance Max: Full Campaign Automation
Performance Max is Google's most automated campaign type. You provide:
- Goals (conversions to optimize for)
- Budget
- Assets (text, images, videos)
- Audience signals (optional hints, not hard targeting)
Google's AI handles everything else: targeting, placements, bidding, and ad assembly across Search, Shopping, Display, YouTube, Gmail, Maps, and Discover.
When PMax Works
- Ecommerce with 30+ monthly conversions
- Advertisers who want maximum reach with minimum management
- Complement to manual Search and Shopping campaigns
When PMax Doesn't Work
- New accounts with no conversion data
- Businesses needing tight targeting control
- When you need detailed search term reports
- Very small budgets (< $50/day)
Building Your Automation Stack
Beginner Stack
- 3-5 automated rules (budget alerts, pause losers, bid adjustments)
- Smart Bidding on your main campaigns
- Weekly manual review of search terms
Intermediate Stack
- All beginner automations
- Google Ads scripts for QS tracking and negative keyword management
- Target CPA or Target ROAS bidding on all campaigns
- Google Sheets reporting dashboards via scripts
Advanced Stack
- All intermediate automations
- Custom scripts for cross-account management
- API integrations with CRM (offline conversion imports)
- Performance Max for catalog-wide optimization
- Automated A/B testing rotations
Automation Across Platforms
The time you save automating Google Ads can be reinvested in other platforms. Meta and TikTok also have automation features (Advantage+, automated rules), but they typically require more creative management.
Adship automates the operational side of Meta and TikTok campaign management — bulk ad creation, creative management, and publishing — so your automation extends beyond Google Ads to your entire ad stack.
Key Takeaways
- Start with automated rules — no code required, immediate time savings
- Scripts handle complex logic that rules can't (spreadsheet exports, cross-campaign analysis)
- Smart Bidding outperforms manual bidding when you have 15+ monthly conversions
- Always preview scripts before running them live
- Set conservative guardrails on all automation (bid caps, spend limits, alerts)
- Review automation activity weekly — automation should augment your judgment, not replace it
- Build your automation stack gradually: rules → scripts → AI bidding → full automation
Meet the AI Ad Operating System
Scan, spy, create, and launch Meta and TikTok ads with guarded actions taken with your approval.
Start FreeRecommended Resources
Related Articles
View allBest AI Tools for Google Ads in 2026 (Tested & Ranked)
The best AI tools for Google Ads in 2026, for copy, bidding, campaign structure, and reporting. Includes free and paid options for every budget.
Google Ads Optimization Guide: 15 Tactics to Boost Performance (2026)
Systematic tactics to improve CTR, Quality Score, and ROAS across every campaign type, from keyword management to bidding, landing pages, and automation rules.
Google Ads Remarketing: How to Set It Up and Make It Work (2026)
Learn how Google Ads remarketing works in 2026, audiences, campaign types (Display, Search/RLSA, YouTube), bid adjustments, and remarketing lists that convert.