SCALIX help

← All tools

gads_plan_pmax_campaign

Google Ads skill low risk

Part of the Performance Max Agent.

What it does

Campaign-planning skill for Performance Max that returns a suspension-safe blueprint BEFORE anything is written — and encodes the three creation-time decisions that cannot be fixed later: (1) brand_guidelines is auto-ENABLED on new PMax campaigns (API v21+) and the opt-out (brand_guidelines_enabled=false) exists ONLY at creation and is irreversible, so the client must choose first; (2) final URL expansion is ON by default — disable or add URL exclusions for landing-page control; (3) brand exclusions are mandatory for non-brand PMax, because without them PMax absorbs branded queries and inflates reported ROAS with traffic that was already converting. Returns the correct OPERATION ORDER that most PMax builds get wrong: create the asset group BEFORE linking assets (gads_create_asset_group -> gads_add_asset_group_asset), then attach audience signals SEQUENTIALLY (parallel attaches rate-limit) and VERIFY them via read-back (unverified signal attaches are the classic silent failure), then add up to 25 search themes in ONE array call. Asset targets per group (the Scalix framework; asset_gap also gives Google's lower serving minimums): exactly 15 headlines <=30 chars, 4 long headlines <=90, 4 descriptions <=90, >=1 landscape 1.91:1 + >=1 square 1:1 + >=1 logo (uploaded — library assets are not permitted in PMax). Audience 3-stack: in-market (3-5) + affinity (3-5) + custom-intent from real converting keywords/competitor URLs (1-2), plus Customer Match/remarketing — 7-12 signals total; signals seed, they do not constrain. Bidding: below ~30 conv/mo -> Maximize Conversions (PMax has no manual fallback — prove demand on Search first if very low); 30-49 -> tCPA at 1.1x trailing CPA; 50+ -> tROAS at 0.9x. Budget floor: Google's average daily budget of at least 3x the CPA, computed in the account currency when target_cpa is given. Retail: Merchant Center feed must be approved with price parity feed == landing page == checkout (Misrepresentation + the Oct 2025 dishonest-pricing update are the dominant GMC suspension causes). Planning only — it writes NOTHING; every create in the sequence lands PAUSED behind its own preview->approve gate. Output: {success:true, data:{task, platform, campaign_type, objective, inputs, structure, budget, bid_strategy, apply_sequence:[{step,tool,purpose,gotchas}], policy_prechecks, guardrails, verify_with, apply_with, account:{name, status, currency_code, status_verified}}, warnings}; budget.currency names the currency of every amount (the account's code, or 'account currency' when the account read failed).

When to use it

FIRST call for any new Performance Max campaign — before gads_create_pmax_campaign or gads_create_asset_group — whenever the user asks for PMax, 'goal-based', or cross-channel automated campaigns. It locks the creation-time decisions (brand_guidelines opt-out, URL expansion, brand exclusions), the asset-group-before-assets ordering, the sequential+verified audience-signal attach, and the conversion-volume target rule.

Inputs

NameTypeRequiredDescription
customer_idstringyesGoogle Ads customer ID (10 digits, dashes stripped); serving account, not an MCC.
objectivestringnoconversions (default) | sales | leads | retail (or shopping, ecommerce). Retail objectives without a Merchant Center link trigger a warning; any other value is planned as conversions, with a warning.
daily_budgetnumbernoProposed daily budget in account-currency units (NOT micros); Google's PMax floor is 3x the CPA a day (the plan computes it when target_cpa is given).
target_cpanumbernoTarget CPA in account currency; applied at 30+ conv/mo, buffered 1.1x at adoption.
target_roasnumbernoTarget ROAS (ratio); applied at 50+ conv/mo at 0.9x the trailing value.
monthly_conversionsintegernoTrailing 30-day conversion volume; drives the PMax target decision (<30 -> Maximize Conversions, no target).
final_urlstringnoPrimary landing page from the user or a tool result; never composed. URL expansion defaults ON — plan the exclusions.
has_merchant_centerbooleannoTrue when a Merchant Center account with an APPROVED feed is linked; gates the retail path.
audience_signalsarray<string>noKnown audience assets to seed the 3-stack (list names, segment ids, converting keywords, competitor URLs).
asset_readinessstringnoFree-text note on which text/image assets already exist, with counts (e.g. '10 headlines, 2 long headlines, 3 descriptions, 1 landscape, 1 square, 1 logo'); the plan returns asset_gap against Google's serving minimums and the 15H/4LH/4D + image target, and says so when the note gives no counts.

Safeguards

Policy

Planning only — writes NOTHING. Every apply-step is preview -> explicit approval -> execute -> verify and lands PAUSED. Hard blocks it enforces: never re-create disapproved content with cosmetic edits or open extra accounts (Circumventing Systems — egregious, immediate suspension); never fabricate copy, claims, or URLs (no path composition); EU political/electoral targeting is refused outright (Google stopped serving political ads in the EU under the TTPA, Oct 2025 — there is no declare-and-comply path); gated verticals (gambling, alcohol, pharmacy, financial/crypto, cannabis/CBD, political) need country + certification checks before drafting. The plan reads the account status and refuses a CANCELED, SUSPENDED or CLOSED account, or a manager (MCC) account.

Reminder

The blueprint is not an approval: each create tool still needs its own preview and explicit user approval, lands PAUSED, and must be status-read-back before being called live.

Errors

Error classMeansWhat to doRetry
ACCOUNT_NOT_VERIFIEDThe account read failed (customer_id malformed or not connected, or a Google error). A warning, not an error: the plan is still returned.The plan carries account.status_verified=false and labels amounts 'account currency'; check the account with gads_get_account_info (dashes stripped, a connected client account) before applying it.no
manager_accountcustomer_id is a manager (MCC) account (v24 customer.manager): managers hold no campaigns, so no plan is returned.Plan against one of its client accounts: list them with gads_get_account_hierarchy or gads_list_accessible_customers.no
account_not_enabledThe account is CANCELED, SUSPENDED or CLOSED (v24 CustomerStatus): Google serves nothing from it, so no plan is returned.Tell the user the status and create nothing: a CANCELED account can be reactivated in the Google Ads UI, a SUSPENDED one needs its suspension resolved first (new submissions on a restricted account escalate enforcement). Plan on an ENABLED account instead.no
RESTRICTED_VERTICALThe offer falls in a gated vertical (gambling, pharmacy, financial/crypto, alcohol, cannabis/CBD, political). The plan cannot detect this (it takes no description of the offer), so its policy_prechecks carry the rule.Confirm target country + required certification BEFORE drafting; refuse if the category is prohibited in the target country.no
MISSING_BUDGETNo daily_budget provided.The plan is still returned with a warning; confirm budget explicitly before any create — an ENABLED campaign spends immediately.no
UNKNOWN_OBJECTIVEobjective value not recognized.Planned as 'conversions', with a warning naming the values this plan acts on: conversions | sales | leads | retail | shopping | ecommerce.no
POLICY_DOC_UNAVAILABLEgads_policy_guardrail (apply-sequence step 1) could not be loaded.Do NOT proceed to any write without the suspension-safety reference; report and stop.no
MERCHANT_CENTER_NOT_LINKEDRetail objective but no linked/approved Merchant Center feed.Run the feed audit and gads_link_merchant_center first; PMax runs asset-only without it.no
SIGNAL_ATTACH_UNVERIFIEDAn audience-signal attach was not confirmed by read-back.Re-read the asset group (gads_get_asset_group); re-attach sequentially; never report signals without read-back.yes

Edge cases

  • brand_guidelines: opt-out exists ONLY at creation and is irreversible — ask the client before step 2 (gads_create_pmax_campaign), not after.
  • Asset-group ordering: gads_create_asset_group MUST precede gads_add_asset_group_asset — asset links reference the group.
  • Audience signals: attach sequentially (parallel calls rate-limit) and verify via read-back; a create call returning OK does not mean the signal attached.
  • Search themes: one call with the full array (<=25), not one call per theme.
  • Non-brand PMax without brand exclusions: reported ROAS is inflated by brand traffic — treat those figures as unreliable in any later audit.
  • monthly_conversions <30: no target — PMax cannot fall back to Manual CPC; if volume is very low, prove demand with Search first.
  • Library assets: not permitted in PMax — every image must be uploaded.
  • Campaign-level negatives apply only to Search/Shopping inventory (cap 10,000), not YouTube/Display/Gmail/Discover.