Draft AI Max settings
draft_ai_max_settingsPreview AI Max controls for a Google Ads Search campaign, including brand exclusions, final URL expansion, and text asset automation, plus ad group search term matching. Nothing changes until the preview is confirmed.
Instructions
Draft AI Max controls for a Search campaign — returns a PREVIEW.
AI Max is the container that makes brand exclusions usable in Search: Google rejects a brand list on a plain Search campaign ("For search advertising channel, brand lists can only be applied to exclusive targeting, broad match campaigns for inclusive targeting or PMax generated campaigns"). Turning AI Max on while leaving its automations running is the trap, so both belong to the same plan. An automation the caller never mentioned is refused outright (the plan says which switch to pass); one named explicitly (disable_search_term_matching=False, text_asset_automation="OPTED_IN") is planned with requires_double_confirm=True, because switching to AI Max with its automations is a real configuration some accounts want.
Reads the campaign and its ad groups first, so the preview names concrete ad groups and shows current values per knob. Returns a preview with a plan_id; nothing is written until confirm_and_apply runs.
Google Ads API: https://developers.google.com/google-ads/api/docs/start
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | Numeric ID of the Search campaign to prepare. | |
| customer_id | No | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. | |
| ad_group_ids | No | Explicit ad group IDs. Empty means every non-removed ad group of the campaign. | |
| enable_ai_max | No | Value for campaign.ai_max_setting.enable_ai_max. When omitted, it stays untouched. | |
| final_url_expansion | No | OPTED_IN, OPTED_OUT or UNCHANGED (default) for FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION (the v25 field name for final URL expansion). | UNCHANGED |
| text_asset_automation | No | OPTED_IN, OPTED_OUT or UNCHANGED (default) for TEXT_ASSET_AUTOMATION. | UNCHANGED |
| include_paused_ad_groups | No | Default true — paused groups are set as well, so re-enabling one later cannot silently restore search term matching. REMOVED ad groups are never touched. | |
| disable_search_term_matching | No | Value for ad_group.ai_max_ad_group_setting.disable_search_term_matching on the selected ad groups. When omitted, they stay untouched. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||