Google Ads Scripts (JavaScript-based automation running against the Google Ads API) were widely used for keyword management, bid adjustments, budget pacing, and automated reporting. AI Max changes which scripted tasks are still useful and which are now redundant.
What Scripts Can and Can't Do in AI Max Campaigns
Google Ads Scripts interact with your account through the Google Ads API. For AI Max campaigns, the API exposes some campaign settings but not others:
Script-accessible in AI Max:
- Budget adjustments (reading and modifying campaign daily budget)
- Campaign labels (adding/removing labels for organization)
- Account-level negative keyword lists (reading, creating, adding keywords)
- Conversion action reporting
- Campaign-level performance data (impressions, clicks, conversions)
Not scriptable in AI Max:
- Keyword-level bid adjustments (AI Max has no keyword list for scripts to operate on)
- Ad rotation settings (AI Max controls this internally)
- URL expansion settings (these are campaign-level settings modifiable through the UI but not fully exposed via scripts in all versions)
This means the core of what many scripts used to do — keyword bid management, keyword pausing, keyword-level scheduling — is no longer applicable in AI Max campaigns. Those tasks have been absorbed by the AI.
Scripts Still Valuable Alongside AI Max
Budget pacing scripts:
AI Max spends toward a monthly budget cap, but intraday spend can vary. If you need precise budget pacing (to avoid overspending on certain days or ensure spend is evenly distributed), budget pacing scripts can monitor daily spend and temporarily pause or reduce budget to match a target pacing curve.
This is particularly useful during promotional periods or when running multiple campaigns with interconnected budget constraints.
Anomaly detection scripts:
AI Max performance can shift unexpectedly during the learning phase, after data events (like the June 2026 deletion at https://yositeup.com/blog/google-ads-reporting-data-deleted-june-2026), or during competitor activity. Scripts that run hourly or daily anomaly detection (e.g., "alert if conversions drop more than 30% vs 7-day average") still provide value as early warning systems that the AI's bidding signals alone don't provide.
Automated label management:
For accounts with many AI Max campaigns, scripts that apply labels based on performance thresholds (ROAS above/below target, budget utilization above/below 80%) enable faster human review without manual data analysis.
Cross-account reporting:
If you manage AI Max campaigns across multiple accounts (MCC level), scripts that pull performance data, calculate campaign-level metrics, and output to Google Sheets for reporting remain highly useful — the Google Ads UI reporting doesn't scale well to dozens of AI Max campaigns.
Account-level negative keyword maintenance:
Scripts that cross-reference Search Terms reports against negative keyword lists and flag gaps for human review still add value. The human reviews the flagged queries and decides whether to add negatives — the script does the discovery work, the human makes the decision.
The June 2026 Deletion and Script-Based Reporting
The June 2026 data deletion (https://yositeup.com/blog/google-ads-reporting-data-deleted-june-2026) affects script-based reporting in two ways:
Historical data gaps: Scripts that pull performance data for date ranges including the deletion period will return incomplete data. A script averaging the last 30 days of conversion data during/after the deletion will be averaging against a partial data set.
Comparison baselines: Scripts that compare current performance against a historical baseline (e.g., "compare this week to same week last year") should be updated to exclude the deletion period from their comparison range.
Fix for affected scripts: Add logic to detect and skip date ranges with known data gaps, or compare against a pre-deletion baseline (e.g., same period from 2024) instead of 2026 data from the deletion window.
DSA Scripts That Need Updating After Migration
DSA campaigns had keyword-free operation, and scripts written for DSA primarily focused on bid management and budget pacing. When migrating DSA to AI Max for Search (https://yositeup.com/blog/google-ads-dsa-ai-max-migration-february-2027):
- Scripts that modified DSA auto-target bids can be removed — AI Max handles this internally
- Scripts that paused/enabled DSA auto-targets based on performance thresholds need to be converted to negative keyword management scripts (since auto-targets don't exist in AI Max)
- Scripts that reported DSA query performance need updating for AI Max's Search Terms report format
AI Max for Shopping and Scripts
For AI Max for Shopping (https://yositeup.com/blog/google-ai-max-shopping-replacing-performance-max-2026), Performance Max Script patterns from the PMax era carry forward. The Google Ads API's Performance Max resources largely map to AI Max for Shopping campaign resources.
Scripts that generated Performance Max asset group reports now run against AI Max for Shopping's asset group equivalent. If you have PMax reporting scripts, check whether they still run correctly against your AI Max for Shopping campaign — the campaign type name may need updating in your script queries.
July 2026 ToS and Scripted AI Max Interactions
The July 2026 ToS (https://yositeup.com/blog/google-ads-tos-july-2026-ai-automation-what-changed) doesn't restrict Google Ads Scripts use with AI Max campaigns. Scripts operate through the official Google Ads API, and ToS provisions about automation cover the AI Max system's own automated behaviors (query expansion, asset generation), not your own automation layer.
If you're building scripts that modify AI Max campaign settings based on automated triggers: document what changes are scripted (for change history audit purposes) and set appropriate check intervals. Frequent automated changes (hourly budget modifications, etc.) can trigger the AI Max learning restart described in Google's guidance about significant budget changes.
Best practice: Script changes to AI Max campaigns to stay within the 20% threshold — a script that adjusts budget more than 20% in a single execution risks resetting the learning phase, which negates the efficiency the AI Max system provides.
Top comments (0)