Skip to content
Book a call
All protocolsMeta ads launch and buying
protocol/meta-ads-launch@1.0v1.012 steps · 6 gates · 4 client decisions

Meta ads launch and buying

Read an ad account's history, launch a campaign paused and verified, then buy media day by day against real orders, with every activation on the client's word.

Operator commands ↓

When to use

Use when a client brings an existing Meta ad account, or a new one, and wants campaigns launched and managed. The protocol reads before it writes, creates everything paused, and ties budgets to break-even cost per order rather than to the platform's own reporting.

Pipeline

Pipeline of Meta ads launch and buying12 steps from Access to Record the run, with 6 gates, 4 of them client decisions, delivering campaigns bought against real orders.Gate: Account choiceGate: Evidence traceGate: Launch and spend approvalGate: Zero mismatchesGate: ActivationGate: Buying policy01AccessOPERATOR02Legacy reconAGENT03Asset ingestAGENT04Bind the accountOPERATOR05Campaign planAGENT06Draft and reviewAGENT07Push pausedAGENT08Read backSYSTEM09ActivationCLIENT10Changes to livecampaignsOPERATOR11Daily buyingAGENT12Record the runAGENTDELIVERSCampaigns boughtagainst real ordersAccount choiceEvidence traceLaunch and spend approvalZero mismatchesActivationBuying policy01AccessOPERATOR02Legacy reconAGENT03Asset ingestAGENT04Bind the accountOPERATOR05Campaign planAGENT06Draft and reviewAGENT07Push pausedAGENT08Read backSYSTEM09ActivationCLIENT10Changes to live campaignsOPERATOR11Daily buyingAGENT12Record the runAGENTCampaigns bought against realorders
Step Client step Check Client decision Deliverable

Inputs

What the work needs before it starts. Every required input is in hand before step one.

NameTypeRequiredDescription
ad_account_accesscredentialRequiredA system-user token stored in the client's own workspace vault and never shared between clients.
ad_account_choiceidentifierRequiredThe ad account the client names. It is never picked automatically.
publish_permissionbooleanRequiredWhether the account may publish, granted explicitly by the client.
economicsfactsRequiredUnit cost, shipping and fees for each offer, used to compute break-even cost per order.
creativeassetsRequiredApproved creative from the static ad creative or AI animated explainer protocols.
budgetmoneyRequiredDaily budgets per ad set in the account's currency, approved by the client.
buying_policyrulesOptionalCut, trim and scale rules, and how far a single run may move a budget.

Outputs

NameTypeDescription
account_analysisdocument + PDFWhat worked historically and last season, with every number traced to its evidence.
legacy_librarymediaPast creative copied into the media library and tagged as legacy.
campaign_plandocumentObjective, ad sets, budgets, a tracking audit and the creative for each ad set.
paused_campaignad account objectsCampaign, ad sets and ads created paused and verified field by field.
buying_reportstablesA change table per run: on or off, budget before and after, and the reason for each change.
run_recordsfolderThe plan, applied changes, analysis and metrics of every buying run.

Steps

  1. Step 1: Access

    Operator

    Store the client's token in their own workspace, test it and list the ad accounts it reaches. The client picks the account; its Page, Instagram account and dataset are discovered, never asked for.

    Tool
    agent.mjs meta.connection.test · meta.accounts.discover
    Artifact
    Connection test and discovered identity

    GateAccount choice· decided by Client

    The client names the ad account. Publish permission is granted only when the client says the account may publish.

  2. Step 2: Legacy recon

    Agent

    Read the account with GET requests only: lifetime winners, last season's chronology, measurement anomalies and proven copy. Nothing is created, edited, paused or activated.

    Tool
    Account analysis kit
    Artifact
    Account analysis and summary PDF

    GateEvidence trace· decided by System

    Every figure in the analysis comes from the evidence tables, and anomalies are named before the winners they inflate.

  3. Step 3: Asset ingest

    Agent

    Copy past creative into the media library, tagged as legacy, with notes and metadata. Running it twice creates nothing new.

    Artifact
    Tagged legacy media library
  4. Step 4: Bind the account

    Operator

    Bind the chosen account with its Page, Instagram account, dataset and conversion domain as defaults.

    Tool
    agent.mjs meta.account.bind · meta.account.defaults
    Artifact
    Account binding with defaults
  5. Step 5: Campaign plan

    Agent

    Choose the objective deliberately, because it cannot change once the campaign exists. Set budgets per ad set, audit tracking, and source the creative from the static or video protocols.

    Tool
    Static ad creative · AI animated explainer
    Artifact
    Campaign plan
  6. Step 6: Draft and review

    Agent

    Create the draft and run its dry-run review. Ad sets, copy, identity, budgets and videos are checked; nothing is created in the ad account.

    Tool
    agent.mjs meta.draft.create · meta.draft.review
    Artifact
    Draft review digest

    GateLaunch and spend approval· decided by Client

    The client approves the plan, the creative and the budgets before the draft is pushed. No publishing or spend is possible before this approval.

  7. Step 7: Push paused

    Agent

    Push the approved draft. Every campaign, ad set and ad is created paused.

    Tool
    agent.mjs meta.draft.push
    Artifact
    Paused campaign
  8. Step 8: Read back

    System

    Poll the run until it finishes, then verify every field (paused status, budgets, identity and videos) against what was sent.

    Tool
    agent.mjs meta.runs
    Artifact
    Verified read-back

    GateZero mismatches· decided by System

    The run must succeed with every field verified and zero mismatches before activation is offered.

  9. Step 9: Activation

    Client

    The client switches the ads on, or tells us to in so many words. Those words are recorded verbatim.

    Artifact
    Live campaign with the client's authorization on record

    GateActivation· decided by Client

    Ads go live only on the client's explicit instruction. The system never activates or resumes anything on its own.

  10. Step 10: Changes to live campaigns

    Operator

    Every change re-reads the live object first. A change a person made since the last read is refused as drift, and an unknown outcome is settled by reading, never by resending.

    Artifact
    Change log with read-backs
  11. Step 11: Daily buying

    Agent

    Reconcile the platform's purchases with real orders, judge each offer against its own break-even cost per order, then scale winners by about 50 %, trim fading ad sets by 33 to 50 % and cut only on the client's rules. Runs in observe, supervised or guarded-auto mode.

    Tool
    Budget manager (observe · supervised · guarded-auto)
    Artifact
    Change table per account

    GateBuying policy· decided by Client

    Budget changes stay inside the policy the client approved, one change per ad set per run. The buyer never activates or resumes.

  12. Step 12: Record the run

    Agent

    Write the run record (authorization, plan, applied changes, analysis and metrics) and fold any new client rule into the account's playbook.

    Artifact
    Run record

Gates

A gate must pass before the next step starts. Filled gates are the client's decisions; nothing is spent, published or sent before them.

GateDecided byRule
Account choiceClientThe client names the ad account. Publish permission is granted only when the client says the account may publish.
Evidence traceSystemEvery figure in the analysis comes from the evidence tables, and anomalies are named before the winners they inflate.
Launch and spend approvalClientThe client approves the plan, the creative and the budgets before the draft is pushed. No publishing or spend is possible before this approval.
Zero mismatchesSystemThe run must succeed with every field verified and zero mismatches before activation is offered.
ActivationClientAds go live only on the client's explicit instruction. The system never activates or resumes anything on its own.
Buying policyClientBudget changes stay inside the policy the client approved, one change per ad set per run. The buyer never activates or resumes.

Failure modes

SymptomPrevention
Ad sets are judged on the platform's purchase count alonePlatform purchases are reconciled with real orders, with add-on purchases netted out, before any ad set is called a winner.
A person's manual budget change is overwrittenEvery change re-reads the live budget first. A difference since the last read is drift, and the change is refused.
A write is sent twice after a timeoutAn unknown outcome is settled by a later read, never by sending the write again.
The wrong ad account is usedThe client names the account. The first account a token can reach is never chosen.
A one-order fluke is scaled as a winnerResults resting on a single order are labelled unproven, and outlier-adjusted cost per order is reported beside the headline figure.
The campaign objective is wrong after launchThe objective is chosen deliberately in the plan and approved with it; it cannot be changed later.
Budget edits are throttledOne change per ad set per run. A throttle is waited out, never looped through.

Operator commands

Run by our operators and coding agents inside our own tooling. These are workflow commands, not public API endpoints. Every paid, publishing or sending command runs only after the client's approval.

Operator commandConnect and bind the client's account

node scripts/adbuy/agent.mjs meta.connection.test
node scripts/adbuy/agent.mjs meta.accounts.discover
node scripts/adbuy/agent.mjs meta.account.bind --arg adAccountId=<client-chosen-account> --arg allowPublish=false
node scripts/adbuy/agent.mjs meta.account.assets --arg bindingId=<binding-id>

Operator commandDraft, review and push paused, only after the client approves

node scripts/adbuy/agent.mjs meta.draft.create --json <draft.json>
node scripts/adbuy/agent.mjs meta.draft.review --json <review.json>
node scripts/adbuy/agent.mjs meta.draft.push --json <push.json>
node scripts/adbuy/agent.mjs meta.runs --arg runId=<run-id>

Operator commandBuying run fallback: read, analyze, dry run

npx tsx scripts/meta-ads/account-review.ts --workspace <workspace> --out <scratch-dir>
python3 -I scripts/meta-ads/account-review-analyze.py <scratch-dir>/<snapshot.json>
npx tsx scripts/meta-ads/budget-apply.ts --plan <plan.json> --out <scratch-dir>/runs
# add --execute only after a clean dry run and the client's authorization