Edit

AI Max with the Bulk API

Use the Bulk API to configure AI Max settings on Search campaigns, retrieve campaign brand-list associations, associate page feeds, and manage URL targeting. Campaign settings and page feed IDs are fields on a Campaign record. URL inclusion targets use the Ad Group Url Target record.

AI Max is available only for eligible accounts and Search campaigns. Page feeds and URL inclusion targets require separate AI Max URL-inclusion eligibility.

Configure campaign settings

Set the Campaign Type to Search. Use the preferred AI Search Enabled column to enable or disable AI Max. The legacy AI Max Enabled column represents the same parent setting and will be deprecated in the future.

The Campaign record supports the following AI Max settings:

Bulk column How to use it
AI Search Enabled Set to true to enable AI Max. This is the preferred parent-setting column.
Search Term Matching Opt Out Set to false to enable AI Max search term matching. An eligible conversion-based or portfolio bid strategy is required.
URL Expansion Opt Out Set to false to enable final URL expansion. Auto-generated text and an eligible conversion-based or portfolio bid strategy are also required.
Auto Generated Text Assets Opt Out Set to false to enable generated text assets. This setting is synchronized with RSA auto-generated assets; if both fields conflict, this opt-out field takes precedence.
Auto Generated Image Assets Opt Out Set to false to enable generated image assets. Additional account eligibility is required.
Page Feed Ids Associate up to 20 unique page feed IDs. AI Max URL-inclusion eligibility is required.

When adding a Search campaign, omitted AI Max child opt-out fields default to true. When updating a campaign, omitted child fields keep their current values. To upload any AI Max child setting or AI Max page feed IDs, include either AI Search Enabled or the legacy AI Max Enabled column in the same Campaign record. If AI Max is disabled, its child features are opted out.

Use an eligible bid strategy before enabling search term matching or final URL expansion. See the Campaign record reference for field requirements and update behavior.

Control generated ad copy

Use campaign-level text guidance to shape AI-generated ad copy:

  • Term Exclusions specify exact terms or phrases to avoid in AI-generated ad copy for a campaign. Set them in the Bulk Campaign record. You can specify up to 25 terms, with up to 30 characters per term.
  • Messaging Restrictions provide guidelines to shape AI-generated ad copy, such as language to avoid, rules to follow, or themes to emphasize. Set them in the Bulk Campaign record. You can specify up to 40 restrictions, each up to 300 characters.

Associate page feeds

Create and manage page feeds and feed items with the Bulk Feed and Feed Item records. Then set their IDs in the Campaign record's Page Feed Ids field. For the feed schema and upload steps, see Page Feeds.

For an AI Max Search campaign, you can associate up to 20 unique page feed IDs. The account must have AI Max URL-inclusion eligibility. In a mixed campaign, AI Max owns the page feed associations when AI Max URL inclusions are enabled; otherwise, Dynamic Search Ads owns them. See Page Feed Ids for mixed-campaign behavior and update rules.

Manage URL inclusion targets

Add an AI Max URL inclusion with an Ad Group Url Target record. The target must belong to a standard Search ad group in an AI Max-enabled Search campaign. It must have at least one condition and can have up to three. Conditions in a target use AND logic; multiple targets in the same ad group use OR logic. A URL Equals condition must be the only condition in its target.

URL inclusion targets are biddable and inherit bidding from the parent ad group. URL exclusion targets aren't supported. A bid, tracking template, custom parameters, and final URL suffix aren't supported for this record. Conditions can't be updated; delete the target and add a new one to change its conditions.

The supported conditions and operators are:

Condition Supported operator
Url Contains or Equals
Category Equals
CustomLabel Equals
PageTitle Contains
PageContent Contains

In a mixed campaign, use the Ad Group Dynamic Search Ad Target record for SearchDynamic ad groups. Standard Search ad groups can use AI Max URL inclusion targets.

Download brand lists and manage associations

To download brand data and campaign associations, request DownloadEntity.BrandList, DownloadEntity.BrandItem, and DownloadEntity.CampaignBrandListAssociation. The association data identifies whether a brand list is included or excluded from a campaign.

Use a Campaign Brand List Association record to add, deactivate, or delete an association in a Bulk upload. Set Id to the brand list ID, Parent Id to the campaign ID, and Is Excluded to true for an exclusion or false for an inclusion on AI Max Search. Performance Max supports exclusions only; its brand list associations are always exclusions. Bulk supports uploading the association, but not creating or changing the brand list or its items.

Manage campaign negative webpages

Use a Campaign Negative Webpage record to exclude webpages at the campaign level. For an AI Max Search campaign, set AI Search Enabled to true and URL Expansion Opt Out to false in the Campaign record.

The record supports up to three URL conditions with contains or equals operators. The condition, operator, and value fields can't be updated; delete the record and add a new one to change them. These campaign-level exclusions are separate from AI Max URL inclusion targets, which use the Ad Group Url Target record.

Download AI Max data

To download campaign settings, URL inclusion targets, brand data and associations, and campaign negative webpages, request the corresponding Campaigns, AdGroupUrlTargets, BrandList, BrandItem, CampaignBrandListAssociation, and CampaignNegativeWebpages DownloadEntity values and include the EntityData DataScope. Full downloads return current records. Delta downloads include records changed since the last sync.

For general download and upload guidance, see Bulk Download and Upload.