Skip to main content
An agent never changes your ad account from chat. It proposes, and an owner or admin uploads from your review page. This page explains each step.

The flow

1

The agent reads the playbook

It calls get_ad_playbook for the ad account and follows its naming, voice, claims and setup. On the first run, it sets the playbook up with you. See Ad playbooks.
2

The agent proposes

It calls a write tool, for example create_ad. DATALYR checks the request, the platform runs its own check where it has one, and DATALYR draws the placement previews. Nothing is created.
3

DATALYR adds it to the review page

A ready proposal becomes one item on the agent’s review page. The agent keeps going and proposes the rest.
4

The agent sends you the link

When everything is proposed, it sends review_url once, with a one-line summary.
5

You upload

An owner or admin opens the page, checks it, and selects Upload. DATALYR creates or changes exactly what the page shows. See The review page.

Proposal statuses

A ready proposal comes back like this:
create_campaign also returns campaign_ref, and create_ad_set returns ad_set_ref. See Build from scratch.

What the summary shows

For new ads, the summary lists these lines. The review page shows the same facts. Changes add their own lines: each object that turns on or pauses, each budget from and to, and the new daily spend. See Turn ads on within spend limits.

Build from scratch (Meta)

On Meta the agent can propose a whole campaign before anything exists:

One angle per call

See every placement (Meta)

The review page draws each Meta ad in every placement at once, grouped by Feeds, Stories & Reels, Video, Explore & search, Marketplace, Messenger, Threads and Apps. These are DATALYR’s own drawings. A ready Meta proposal also returns all_placements_url, a page in the app with the same drawings. That page can also show Meta’s own preview for each placement: Both pages need a DATALYR sign-in as a member of the workspace. Google Ads has no rendered preview, so the review page shows the headlines, descriptions and link.

Follow the upload

The agent reads the review page with get_review_session. Each item has a status.
For one uploaded item in detail, the agent calls get_ad_status with its operation_id, rv-<item_id>. For ads it returns each ad’s review state: in_review, approved, rejected with the platform’s reason, or paused. Items that were replaced, removed, cancelled by Stop agent ads, or expired leave the list. The agent tells you something is uploaded only when get_review_session says done. DATALYR adds UTM and click parameters to every ad link, the same ones a tracking link uses, so DATALYR attributes the ad. Agents don’t add their own. Pass tracking.preset: "none" to send the link unchanged. Your domains are your verified domains, the sites your tracking runs on, and any you add under Settings → Ad publishing → My domains.

Find agent-made objects

Verify

  1. Ask the agent for a paused ad.
  2. Confirm its answer has status: "added_to_review" and a review_url.
  3. Open the review_url.
  4. Confirm the ad is on the page.
  5. Upload it.
  6. Ask the agent for the status.
  7. Confirm get_review_session shows the item as done, with an ad_id and link.

The Create ad tab

People can also make an ad themselves in Settings → Ad publishing → Create ad. That tab doesn’t use the review page: you preview the ad and create it in the same tab.

Next