Skip to main content
Agents can propose changes to campaigns, ad sets and ads after they exist. Like a create, every change is checked and added to the review page, and a person uploads it there. See How agents publish.

What an agent can change

Each call takes up to 50 objects in one ad account and is one item on the review page. Changes act on objects that already exist: to turn on a proposed object, upload it first. See Access levels and who uploads.

Only what agents made

DATALYR keeps its own record of every object agents created through it. Archive and delete also take everything underneath. A campaign takes its ad sets and ads along, so every one of them must be agent-made too. For archive and delete, a copy made with Ads Manager’s Duplicate doesn’t count as agent-made, even with the datalyr-agent label.

Pause

pause_ad_objects pauses campaigns, ad sets or ads. It pauses the campaign first, so spend stops soonest. To pause everything agents turned on at once, use Stop agent ads.

Change a budget

Ask for a new amount in the ad account’s currency. 50 means 50.00.

Give an ad new content (Meta)

update_ad_content replaces the text, image or video, link and call to action of one Meta ad. The agent sends the full new ad, as for a create.
  1. The agent proposes it. DATALYR runs the same checks and placement previews as a new ad in that ad set.
  2. You check it on the review page. The summary says: Budget, targeting and status (…) stay as they are.
  3. You select Upload. Meta gets a new creative, and the ad switches to it.
Meta reviews the new content before it delivers. On a running ad, the new content goes live once Meta approves it, so it counts as a live change: only the owner uploads it, with live ads on for the ad account. Meta allows one edit per ad every 30 seconds: DATALYR waits once and tries again. If someone edits the ad in Ads Manager after the proposal, the item ends stale and the agent proposes it again.

Archive (Meta)

archive_ad_objects stops delivery and keeps the reporting. Archived objects can’t be edited, and a person can unarchive them in Ads Manager. Prefer it to delete on Meta.

Delete (Meta and TikTok)

A delete can’t be undone. The platform keeps the reporting, but the objects can’t be edited or turned on again.
delete_ad_objects removes agent-made campaigns, ad sets, ad groups or ads, and everything under them. DATALYR tells agents to delete only when you ask for it. Only the owner can upload a delete from the review page.

Verify

  1. Ask the agent for the status of the objects it changed.
  2. It calls get_ad_objects, which returns status, budget and today’s spend for up to 50 objects.
  3. Compare with Ads Manager.
  4. Open Settings → Ad publishing → Activity.
  5. Confirm the change appears in the list.

When it does not work

Next