Skip to content
Get MCP Ads, home

How to run an autonomous agent against your ad accounts

What changes when nobody is at the keyboard, and how to bound what an autonomous agent can do.

guides/unattended-agents.md

Both readings are on this page.

For you

What the answer looks like, and what to type to get it.

The way this normally goes

  • Give a cron job an API key with full account access, and read the logs afterwards.

The way it goes with an assistant

  • Tick only the accounts the agent may reach. The allowlist is enforced server side on every call.
  • Keep it on a plan without writes if it should only ever read.
  • Let the monthly allowance be the backstop on a loop that goes wrong.

Prompts to start from

Things worth running on a schedule

text
Every morning, list any campaign whose CPA rose more than 30 percent against its 7 day average.
Every Monday, produce the cross-platform table for last week.
Alert me when a Google Ads campaign stops spending entirely.
Watch Search Console for pages that lost more than 20 percent of their clicks.

Tools this uses

Tools this uses
ToolWhy
list_accountsFirst call of every run. It is the cheapest way to notice a revoked connection.
search_toolsRather than hard-coding a tool name that may be renamed.
describe_toolRead the schema at run time instead of assuming it.
run_toolExecute. The same checks run as on a direct call.

What it will not do

  • An agent cannot approve a platform's consent: connect_source returns a link for the person to open. select_ad_accounts ticks the accounts the person chooses and disconnect_source removes a login, for owners and administrators only; nothing is revoked at the platform.
  • A refused call costs no quota, but a retry loop still spends the calls that succeed before it.
  • Writes preview by default. An unattended agent that never sends confirm changes nothing, which is the safe failure.

For your agent

The tool sequence, the parameters that matter, and what will be refused.

Both readings as Markdown: /guides/unattended-agents.md

This job reads several sources, across 4 tool calls. It changes nothing, so it works on every plan.

Sequence

Sequence
StepToolPurpose
1list_accountsFirst call of every run. It is the cheapest way to notice a revoked connection.
2search_toolsRather than hard-coding a tool name that may be renamed.
3describe_toolRead the schema at run time instead of assuming it.
4run_toolExecute. The same checks run as on a direct call.

Constraints that will refuse you

  • Only the ad accounts the account owner ticked are reachable. Call list_accounts first rather than guessing an identifier.
  • An agent cannot approve a platform's consent: connect_source returns a link for the person to open. select_ad_accounts ticks the accounts the person chooses and disconnect_source removes a login, for owners and administrators only; nothing is revoked at the platform.
  • A refused call costs no quota, but a retry loop still spends the calls that succeed before it.
  • Writes preview by default. An unattended agent that never sends confirm changes nothing, which is the safe failure.

What the person is likely to ask

text
Every morning, list any campaign whose CPA rose more than 30 percent against its 7 day average.
Every Monday, produce the cross-platform table for last week.
Alert me when a Google Ads campaign stops spending entirely.
Watch Search Console for pages that lost more than 20 percent of their clicks.

Manage your ads from your AI assistant

Start for free

Free with 1 ad account, no card. Pro is free for 7 days.