manage-a-campaign · version 1.0.0 · for buyers.
When to use
- A person asks how a campaign is delivering or pacing.
- A person wants to launch a staged campaign, pause it, resume it, or change its budget, flight or targeting.
- A person wants to cancel or archive a campaign, or archive a draft media buy.
- A media buy looks stuck and the person wants to know why.
Before you start
- You are connected to the buyer account that owns the campaign.
- You know the campaign by name or
campaignId. - For a launch: the campaign has staged media buys, from Set up a campaign.
Steps
- Call
get_statusand confirm the account. - Find the campaign with
searchandkind: "campaign", then callgetwithkind: "campaign", its id andinclude: ["mediaBuys", "creatives"]. Note therevision. - To answer a delivery question, call
get_deliverywithreport: "campaign_delivery", themetricsyou need, arangeof at most 90 days (orlifetime) andfilters.campaignId. Callopen_reportingwhen the person wants the chart. - Agree the smallest change that does what the person wants.
- Call
save_campaignwithcampaignId,expectedRevisionand only the fields that change:isPausedto pause or resume,budget,flight,targeting,nameorbrief. - To launch a draft:
- call
open_campaign_receiptand clear or explain every blocker; - call
save_campaignwithdesiredPhase: "active"; the result ispending_confirmationwith the spend per seller; - show that summary, and only after the person says yes, call
save_campaignagain withconfirmLaunch: trueand the sameexpectedRevision; - read
mediaBuysExecutedanderrors. Launching again resubmits only the failed draft buys, and only where the error says a retry is safe.
- call
- To cancel, call
save_campaignwithdesiredPhase: "canceled"and confirm with the person. To archive, sendisArchived: true. To drop a draft media buy, callsave_media_buywith itsmediaBuyIdandisArchived: true. - For a stuck media buy, call
getwithkind: "media_buy"and explain the stage it is in. - Call
geton the campaign again and confirm the change landed at the new revision.
Guardrails
- Never send
confirmLaunch: truewithout an explicit approval from the person, given after they saw the spend summary. - A missing metric is unavailable, not zero. Say which metrics are missing and why, if known.
- Cancelling cannot be undone. Say so before you ask for confirmation.
- After a
REVISION_CONFLICT, read the campaign again and check with the person before retrying. - Change one thing per call where you can, so each change is easy to explain and to reverse.
Done when
- The change shows in a fresh
getat the new revision, or the launch result lists every media buy executed and every error with its next step; or - the person’s delivery question is answered, with the date range and metrics you used stated.