Setup & connection

gads_set_optimization_targets

Set the scoped account's optimization objective: target daily spend, ROAS floor (percent, e.g.

Set the scoped account's optimization objective: target daily spend, ROAS floor (percent, e.g. 150 = 1.5x), and CPA band — all in account currency units. Omitted fields keep their current value; pass null to clear one. These targets drive the optimization plan, the recommendation engine, and the copilot's guardrails.

Scope: write token required · money-moving. Every write is dry-run validated, then classified by the safe-apply policy — auto-applied when bounded and low-risk, otherwise queued for approval.

Parameters

ParameterTypeRequiredDescription
targetDailySpendnumber | nullNoDaily spend goal in currency units (e.g. 300 for €300/day). null clears.
targetRoasPctnumber | nullNoROAS floor as a percentage (150 = 1.5x return). null clears.
targetCpaMinnumber | nullNoLower bound of the acceptable CPA band, currency units. null clears.
targetCpaMaxnumber | nullNoUpper bound of the acceptable CPA band, currency units. null clears.
reasonstringYes
projectIdstringNoTarget account (project id). Required with an org-scoped token for account-scoped tools — call gads_list_ad_accounts to enumerate accounts. Omit with a project-scoped token.

On this page