Skip to content
Alpue Studio

Blog / Agents and harnesses

Human in the loop AI for ad accounts: where to put the gate

Human in the loop AI means a person approves, reviews or corrects what an agent does before it takes effect. On Google Ads and Meta the layers are a read-only user role, a dry run such as Google's validate_only that checks a change without applying it, campaigns created paused, and a change history that records who did what. OWASP lists human approval of high-impact actions as a control against prompt injection and excessive agency.

What human in the loop means

IBM defines human in the loop as a process in which a human "actively participates in the operation, supervision or decision-making of an automated system" (IBM). The Harvard T.H. Chan School's AI glossary adds that the phrase "does not specify how much influence the person has" (Harvard Chan School). Someone who clicks "approve" on a screen they cannot read is in the loop on paper only.

What can go wrong when an agent reaches an ad account

An agent can edit the wrong account, campaign or budget because a name matched twice or a figure was misread. That is our own reasoning, with no source. Two other failures are documented.

OWASP's LLM01 page defines prompt injection as user prompts that "alter the LLM's behavior or output in unintended ways". Indirect injections "occur when an LLM accepts input from external sources, such as websites or files", and one of its example scenarios has a user ask an LLM to summarize a web page that contains hidden instructions (OWASP LLM01:2025). An agent that researches competitors on the open web is in that position.

OWASP's LLM06 page names excessive functionality, excessive permissions and excessive autonomy as the typical root causes of excessive agency. Its mitigations include requiring a human to approve high-impact actions, and putting authorization in the downstream system so the model does not decide what is allowed (OWASP LLM06:2025).

Anthropic published numbers for a browser agent. In an internal test of 123 cases across 29 attack scenarios, Claude in Chrome without its safety mitigations had a 23.6% attack success rate when deliberately targeted (Anthropic, August 2025). In November 2025 Anthropic wrote that a 1% attack success rate "still represents meaningful risk" and that no browser agent is immune to prompt injection (Anthropic, November 2025). Neither post gives a figure for agents that call ad APIs.

What Google Ads and Meta give you

As of November 2026 the documented controls are these.

ControlGoogle AdsMeta Marketing API
Read-only accessUser access levels. Read-only can view campaigns and use planning tools. Standard adds "Can edit campaigns"ads_read for ad reports, ads_management to read and manage ads
Dry runvalidate_only on mutate requestsexecution_options with validate_only on campaign create and update
Create without deliveryCampaign status PAUSEDOnly ACTIVE and PAUSED are valid at creation
Record of changesChange history, kept for 2 years, and the change_event resourceActivity logs, which Meta's MCP server documents as a tool

Read-only roles

Google's access levels help page marks Read-only for "Can view campaigns and use planning tools", and "Can edit campaigns" starts at Standard. The API reference describes the READ_ONLY access role as one that "can view campaigns and account changes, but cannot make edits". Google's pages do not say which error a read-only user receives when calling a mutate method, so test it once on an account before relying on it.

Meta's authorization guide describes ads_management by use case ("read and manage ads for ad accounts you own or have been granted access to by the ad account owner") and ads_read as reading ad reports, without defining either technically.

Dry runs and paused creation

The MutateGoogleAdsRequest reference says that with validate_only set to true "the request is validated but not executed", and that mutates then return only errors. Meta's campaign reference lists an execution_options parameter whose validate_only value means the call "will not perform the mutation but will run through the validation rules against values of each field". A dry run says a change is valid. It does not show a person the account afterward, so it does not replace approval.

Creating a campaign paused gives a person a point to look at it before it delivers. Meta's reference says only ACTIVE and PAUSED are valid during creation, and that PAUSED also pauses the campaign's active child objects. Google's CampaignStatus enum describes ENABLED as "active and can show ads" and PAUSED as "paused by the user". It does not say which status a new campaign gets by default, so set it in the request. Meta's MCP server documentation says its write tools "create entities in a paused state; your AI client asks for confirmation before activation" (Meta). The confirmation is the client's job, and the page does not say what the server does if a client skips it.

Google's Google Ads MCP server uses a two-step flow. A mutate tool first runs with validate_only=True and returns proposed change_items plus a checksum, and after approval the model calls it again with validate_only=False and that checksum. Google's guide says the checksum "does not replace access control", and to hard-block mutations you disable the labels and assets namespaces in tools_config.yaml (Google). Our Google Ads MCP post has the details.

Reading back what an agent did

Google Ads change history lists changes for the past 2 years, and changes made through the API can show "Google Ads API" or a tool name in the user column. The API side is the change_event resource. Google's page requires a date filter within the past 30 days and a LIMIT of at most 10,000 rows (Google). Move the dates in this query to fit the day you run it.

SELECT
  change_event.change_date_time,
  change_event.user_email,
  change_event.client_type,
  change_event.change_resource_type,
  change_event.resource_change_operation,
  change_event.changed_fields
FROM change_event
WHERE change_event.change_date_time >= '2026-11-12'
  AND change_event.change_date_time <= '2026-11-27'
ORDER BY change_event.change_date_time DESC
LIMIT 100

Google's page says a change can take up to three minutes to appear and that the resource may miss changes the web change history shows, so it points to the change status resource. Run the query weekly on accounts an agent can write to and compare the rows with your approvals.

What the harness has to add

Google's and Meta's controls work per user, per request or per status. They do not know what a person approved, for which client, or under which spend ceiling, so the harness has to supply that. OWASP says the approval can sit in a downstream system or inside the extension that performs the operation. Our own checklist for evaluating a setup:

  1. The approval is a button or slider the user operates, outside the model's control.
  2. It covers one action on one target.
  3. The approval screen shows old and new values.
  4. Each client or brand has its own accounts and limits, and the tools take that scope from the session.
  5. Each change is recorded with who or what made it.
  6. Content the agent read from the web or from files cannot trigger a write by itself.

The sixth is the prompt injection check. OWASP's LLM01 advice to separate and mark untrusted content points the same way.

Which control fits which action

The table below is our own reasoning and no standard defines it, so adjust it to your accounts.

Kind of actionControl that fits
Reading reports, running queriesRead-only role. No approval needed, but keep a log of queries
Creating a new campaign or adCreate paused, then a person approves activation
Raising a budget or changing a bidApproval for each change, showing old and new values, and a limit per client
Pausing or enabling a live campaignApproval for each change, recorded in the change history
Uploading a customer listApproval that names the list, plus a recorded consent check
Deleting or removing entitiesDo not give the agent the tool. A person does it in the ad account

How Alpue Studio does it

Alpue Studio is an AI harness for marketing. Its agents read, and the agent has no tool that pushes to an ad account. A campaign, change or audience reaches Google Ads, Meta or Sklik only when a person with the right role drags a slider. A click or key press does not confirm it, and each slide is a one-time pass for one action on one target, valid for two minutes. New campaigns arrive paused. Each change, whether made by hand, by the agents, in the ad account or through a push, stays in the campaign's history. Google Ads connects by adding Alpue's reader address as a read-only user, or by Google sign-in, and Meta connects through the customer's Business Manager (Google Ads integration).

Its limits follow from that design. There is no autopilot mode and no automatic bidding or budget changes. Only owners and admins connect accounts, and the editor role cannot send. Shopping and Performance Max leave as a Google Ads Editor file, and Display, Demand Gen, Video and App campaigns leave as a workbook. Our posts on Meta's Ads MCP server and on MCP server vs agent harness cover the neighboring questions.

Questions

What is human in the loop in AI?

A person takes part in an automated process at defined points. The term does not say how much power that person has, so check what they can see and change at each gate.

Is it safe to give an AI agent access to Google Ads?

It depends on what the agent can do with the access. Start with a read-only user and add write access for specific tasks, behind an approval the model cannot bypass. Anthropic calls prompt injection far from a solved problem, so assume an agent that reads web pages can be pushed off task.

What is prompt injection?

It is input that changes a model's behavior in unintended ways. OWASP separates direct injection, typed by a user, from indirect injection, which arrives in websites or files the model reads, and lists human approval as a control.

Can an agent be limited to read-only access?

Yes. Google Ads has a Read-only user access level that cannot make edits, and Meta separates ads_read from ads_management. With read-only credentials the write path is closed in the ad account itself, whatever the agent is told.

Sources

Keep reading. Agents and harnesses

The posts on this topic →

Brief the agent. Approve what it builds.

Alpue Studio reads your ad accounts, runs code on the data and prepares campaigns and reports. Your accounts stay read-only until someone on your team slides.