ONE ads:push
← Receivers

ads:push

ads family

chatmcp

Push a campaign's approved creative to Meta and Google. Every object is created PAUSED — nothing spends until ads:resume. Passes the governance door first (the daily budget must sit inside the group's ceiling), then mints one signed /go link per variant so every click is attributed, then records each platform id on its creative. The campaign is tagged `pushed`, not running. A platform or channels that did not answer is named, never an empty success

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_integrations
The class of authority the caller must already hold, decided from the attested context with no round trip.
Authority action
manage_integrations
Also gated per node — the caller must be permitted this action over the workspace it names.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
no
Not safe to blind-retry — dedupe on the envelope idempotencyKey.
Version
1.0.0
Pin this to keep a contract stable; additive bumps never break callers.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/ads:push \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": "acme", "campaignId": "01a1edad703405d807b6b913", "platforms": [ "meta" ], "dailyBudgetCents": 2000 }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • workspace string required Workspace (group slug) the campaign belongs to. The caller must manage its integrations
  • campaignId string required The campaign group's gid
  • platforms meta | google | linkedin | tiktok[] optional Only these platforms; omit for every platform the approved creative is for
  • dailyBudgetCents number optional Daily budget in cents for this push; omit to use the campaign's stored budget. Over the group's ceiling is refused over_ceiling
  • destinationUrl string optional Absolute http(s) landing page; omit to use the campaign's stored link or its offer's checkout
  • allowedRegions string[] optional ISO country codes the ads may run in; omit to use the campaign's region tags
  • specialAdCategories housing | employment | credit-financial | issues-elections-politics[] optional Declare a special ad category the copy falls in; copy that reads as one and is not declared is refused special_ad_category_required

Response

What comes back from the call.

  • ok boolean
  • results any[] One AdPushResult per platform channels answered for
  • pushed boolean true when at least one platform created its objects (PAUSED)
  • live boolean Always false: pushed objects are PAUSED
  • status string pushed | draft
  • recorded number
  • recordFailed number
  • warnings string[] destination_url_missing · links_not_minted · channels_url_missing · service_key_missing · channels_timeout · channels_unreachable · channels_<status>
  • unlinked any[]
  • error string forbidden | unavailable | over_ceiling | invalid_budget | no approved creative for this campaign | no pushable assets after gates | campaign not found in this workspace | no_db
  • approve string fingerprint: a person's Touch ID can approve what the ceiling refused
  • ceilingCents number
  • dailyBudgetCents number
  • exposureCents number Daily budget × platforms, the figure the ceiling refused

Traffic

Every call to ads:push, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names ads:push, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:25
Agent runtime 1
  • channels/src/aitools.ts:1703
CLI 1
  • packages/cli/src/ads.ts:302
Tests 1
  • packages/sdk/src/surfaces.test.ts:130
→

Answered by

ads:push one.ie/web/src/lib/resolvers/ads.ts:204 Dispatched through POST /api/ask/ads:push, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "description": "Workspace (group slug) the campaign belongs to. The caller must manage its integrations"
    },
    "campaignId": {
      "type": "string",
      "description": "The campaign group's gid"
    },
    "platforms": {
      "description": "Only these platforms; omit for every platform the approved creative is for",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "meta",
          "google",
          "linkedin",
          "tiktok"
        ]
      }
    },
    "dailyBudgetCents": {
      "description": "Daily budget in cents for this push; omit to use the campaign's stored budget. Over the group's ceiling is refused over_ceiling",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "destinationUrl": {
      "description": "Absolute http(s) landing page; omit to use the campaign's stored link or its offer's checkout",
      "type": "string"
    },
    "allowedRegions": {
      "description": "ISO country codes the ads may run in; omit to use the campaign's region tags",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "specialAdCategories": {
      "description": "Declare a special ad category the copy falls in; copy that reads as one and is not declared is refused special_ad_category_required",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "housing",
          "employment",
          "credit-financial",
          "issues-elections-politics"
        ]
      }
    }
  },
  "required": [
    "workspace",
    "campaignId"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "results": {
      "description": "One AdPushResult per platform channels answered for",
      "type": "array",
      "items": {}
    },
    "pushed": {
      "description": "true when at least one platform created its objects (PAUSED)",
      "type": "boolean"
    },
    "live": {
      "description": "Always false: pushed objects are PAUSED",
      "type": "boolean"
    },
    "status": {
      "description": "pushed | draft",
      "type": "string"
    },
    "recorded": {
      "type": "number"
    },
    "recordFailed": {
      "type": "number"
    },
    "warnings": {
      "description": "destination_url_missing · links_not_minted · channels_url_missing · service_key_missing · channels_timeout · channels_unreachable · channels_<status>",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "unlinked": {
      "type": "array",
      "items": {}
    },
    "error": {
      "description": "forbidden | unavailable | over_ceiling | invalid_budget | no approved creative for this campaign | no pushable assets after gates | campaign not found in this workspace | no_db",
      "type": "string"
    },
    "approve": {
      "description": "fingerprint: a person's Touch ID can approve what the ceiling refused",
      "type": "string"
    },
    "ceilingCents": {
      "type": "number"
    },
    "dailyBudgetCents": {
      "type": "number"
    },
    "exposureCents": {
      "description": "Daily budget × platforms, the figure the ceiling refused",
      "type": "number"
    }
  },
  "required": [
    "ok"
  ],
  "additionalProperties": {}
}