tools/list for the current set rather than hard-coding it.
Inputs every tool shares
Write tools no longer take
confirm_token. A call with one is refused with 410 and
code: review_only.
Money is in the ad account’s currency, in major units: 50 means 50.00.
Setup and reads
All needdatalyr:read only.
Files
See Add ad files.
Create
Each call runs the checks and, when ready, adds one item to the review page. Nothing is created until a person selects Upload. Everything uploads paused. Level: Propose and above.campaign_ref and ad_set_ref are the item_id of the proposal. Pass them to build a
whole Meta campaign before anything exists. TikTok and Google Ads need a real
campaign_id or container_id. See
Build from scratch.
The fields per platform are on Meta, TikTok and
Google Ads.
The ad object
already_in_review means the same proposal is already on the page. incomplete and
invalid come back with missing and errors as before, and nothing is added. See
Proposal statuses.
Change
Each call adds one item to the review page. Each takes up to 50 existing objects in one ad account. Objects proposed on the page must be uploaded first.
Pausing, lowering a budget or new content on objects people made needs a Publish live
connection, and only the owner uploads it. See
Access levels and who uploads.
Review
Item statuses are
proposed, queued, running, done, failed, stale, blocked
and unknown. See Follow the upload.
Review options
Every write tool takes an optionalreview object. Usually leave it out: the proposal
joins this connection’s open page, or starts one.
Stop, settings and playbook
Use the HTTP API
Scripts reach the same tools athttps://api.datalyr.com/v1/ad-publish with a named API
key that carries an ads level. See API keys.
Next
- How agents publish: proposal statuses and results.
- The review page: Upload, cancel and expiry.
- Access levels and who uploads: what each level allows.
- Connect Claude or Codex: the MCP server and its other tools.