Orbitoads
Browse documentation

Manage campaigns

Management actions cover text, links, bids, daily limits, scheduling, budgets and delivery state. A bulk request handles up to 1,000 campaigns. Inspect the resulting task for partial failures.

Markdown

All calls here need a key with Manage campaigns and Manager (or owner) access to the cabinet. They act on one campaign, (account_id, ad_id): pass account_id in the body or query when the key reaches several cabinets. Every change appears in the campaign’s history in the panel marked 🔌 API.

CallWhat it doesAnswers
PATCH /v1/campaigns/{ad_id}change text, link, bid, cap, schedule, on/offright away
POST /v1/campaigns/{ad_id}/pauseswitch offright away
POST /v1/campaigns/{ad_id}/resumeswitch onright away
POST /v1/campaigns/{ad_id}/budgetadd or withdraw budgetright away
DELETE /v1/campaigns/{ad_id}deleteright away
POST /v1/campaigns/{ad_id}/copy1–100 copies202 + task
POST /v1/campaigns/bulkone action on up to 1,000 campaigns202 + task

Direct answers return the updated campaign object in data.

Edit

PATCH /v1/campaigns/{ad_id} — send only what changes.

Example
curl -s -X PATCH https://orbitoads.pro/api/v1/campaigns/90412 \
  -H "X-API-Key: $ORBITO_API_KEY" -H "Content-Type: application/json" \
  -d '{ "account_id": 53, "cpm": 1.8, "text": "Daily market notes in 3 minutes." }'
FieldMeaning
title, text, promote_urlCreative and link.
cpmNew bid, greater than 0.
daily_budgetDaily cap.
views_per_user1–4.
activetrue / false — same as resume / pause.
scheduleDays and hours to show the ad; null removes it — see Schedule.
media, picture, button, website_nameAs in create.

What goes to Telegram’s review. Changing cpm, active or schedule doesn’t — they are applied at once and the campaign keeps running. Any other field (title, text, promote_url, media, picture, button, website_name, views_per_user, daily_budget) is saved through Telegram’s full ad form, and Telegram reviews the ad again: it shows In Review until approved. Send bid, on/off and schedule changes on their own, not together with those fields.

Targeting (channels, countries, …) can’t change on an existing ad — Telegram doesn’t allow it. Create a new campaign with the new targeting, or copy and adjust.

meta in the response:

FieldMeaning
status_warningThe fields saved, but Telegram didn’t apply the on/off switch (for example, no budget).
status_intent_onlyYour on/off choice is stored and applies when Telegram can (in review, no budget).
status_already_setThe campaign was already in the state you asked for.

A bid below Telegram’s minimum for this targeting returns 400 PLATFORM_REJECTED with param: "cpm", min_cpm and currency.

Pause and resume

Example
curl -s -X POST "https://orbitoads.pro/api/v1/campaigns/90412/pause?account_id=53" -H "X-API-Key: $ORBITO_API_KEY"
curl -s -X POST "https://orbitoads.pro/api/v1/campaigns/90412/resume?account_id=53" -H "X-API-Key: $ORBITO_API_KEY"

meta.intent_only: true means Telegram can’t act on it yet — the campaign is in review, declined, or out of budget — and your choice is stored: it runs as soon as it can. When the status really changes, your status webhook fires.

Schedule

Show a campaign only on chosen weekdays and hours — for example weekdays 9:00–18:00, or evenings only. Outside those hours Telegram doesn’t show the ad. Setting, changing or removing a schedule doesn’t switch the campaign on or off — status and active stay as they are. It works on every cabinet type.

Example
curl -s -X PATCH https://orbitoads.pro/api/v1/campaigns/90412 \
  -H "X-API-Key: $ORBITO_API_KEY" -H "Content-Type: application/json" \
  -d '{ "account_id": 53, "schedule": {
        "days": { "mon": [9,10,11,12,13,14,15,16,17], "tue": [9,10,11,12,13,14,15,16,17],
                  "wed": [9,10,11,12,13,14,15,16,17], "thu": [9,10,11,12,13,14,15,16,17],
                  "fri": [9,10,11,12,13,14,15,16,17] },
        "timezone": "+03:00" } }'
FieldMeaning
daysmon, tue, wed, thu, fri, sat, sun — each holds the hours (0–23) the ad runs that day. 9 means 09:00–09:59, so [9, …, 17] is 9:00–18:00. A day you leave out, or send as [], doesn’t run. At least one hour in total.
timezoneWhose clock the hours follow. "viewer" — each viewer’s own local time; only for audience targeting (target_type: "users"). Otherwise a UTC offset: "+03:00", "-05:00", "+05:30". The offsets Telegram offers: whole hours from -12:00 to +14:00, plus -09:30, -03:30, -02:30, +03:30, +04:30, +05:30, +05:45, +06:30, +08:45, +09:30, +10:30, +12:45, +13:45. "UTC+3" and "+3" are accepted too.

"schedule": null removes the schedule — the ad runs around the clock again.

A campaign with no budget can’t take a schedule. Telegram accepts a schedule only on a campaign that can run, so on a Stopped campaign with nothing left you get 400 PLATFORM_REJECTED with param: "schedule" and nothing is changed — add budget first, then set the schedule. A paused (On Hold) campaign takes it fine.

The campaign object returns the schedule in the same shape, always with all seven days and the offset written as "+03:00" — so you can read it, change a day and send it back. GET /v1/campaigns/{ad_id} gives the current schedule even if it was changed directly in Telegram — see Freshness. Hours outside 0–23, an unknown day, an empty schedule, "viewer" on a channel/bot/search ad or an offset Telegram doesn’t offer → 400 VALIDATION_ERROR with the exact field in param (for example schedule.days.mon).

Copies and recreated campaigns keep the schedule of the campaign they come from. To put one schedule on many campaigns at once, use the bulk action set_schedule.

Budget

POST /v1/campaigns/{ad_id}/budget moves money between the cabinet balance and the campaign. Requires an Idempotency-Key.

Example
curl -s -X POST https://orbitoads.pro/api/v1/campaigns/90412/budget \
  -H "X-API-Key: $ORBITO_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{ "account_id": 53, "action": "add", "amount": 10 }'
actionamountEffect
addrequiredCabinet balance → campaign.
withdrawrequiredCampaign → cabinet balance. More than the campaign has → 400 INSUFFICIENT_AD_BALANCE.
withdraw_all—Everything left on the campaign → cabinet balance.

meta.moved is what actually moved; meta.partial is true when less than asked could be withdrawn. Money never leaves the cabinet through the API.

Copy

POST /v1/campaigns/{ad_id}/copy creates copies with the same targeting; anything you send overrides the original. Requires an Idempotency-Key. Returns a task whose ad_ids are the copies.

Example
{ "account_id": 53, "copies": 3, "text": "Variant B — shorter", "cpm": 2, "budget": 5 }
FieldMeaning
copies1–100, default 1.
title, text, promote_url, cpm, budget, media, picture, views_per_userOverrides for every copy. budget: 0 or at least the cabinet’s min_budget.
scheduleCopies keep the original’s schedule; send one to replace it, or null for none.
group_id / new_group_namePut the copies in a group.

Delete

Example
curl -s -X DELETE "https://orbitoads.pro/api/v1/campaigns/90412?account_id=53" -H "X-API-Key: $ORBITO_API_KEY"
Example
{ "success": true, "data": { "ad_id": 90412, "account_id": 53, "deleted": true } }

A deleted campaign that had views stays in your stats with status: "Deleted"; one that never ran is removed. Deleting again returns 404 CAMPAIGN_NOT_FOUND.

Bulk

POST /v1/campaigns/bulk applies one action to up to 1,000 campaigns of one cabinet. Requires an Idempotency-Key. Returns a task.

Example
curl -s -X POST https://orbitoads.pro/api/v1/campaigns/bulk \
  -H "X-API-Key: $ORBITO_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{ "account_id": 53, "action": "set_cpm", "cpm": 1.2, "ad_ids": [90412, 90413, 90414] }'
actionExtra fieldEffect
pause—switch off
resume—switch on
add_budgetamountadd to each campaign
withdraw_budgetamountwithdraw from each campaign
withdraw_all_budget—withdraw everything from each campaign
set_cpmcpmset the same bid on each
set_schedulescheduleset the same schedule on each; "schedule": null removes it
delete—delete each

Every ad_id must be a live campaign of that cabinet; otherwise nothing is queued and you get 400 UNKNOWN_AD_IDS with the offenders in missing. Duplicates are ignored. The task’s errors lists campaigns Telegram refused — with set_schedule, also campaigns with no budget and campaigns where "timezone": "viewer" can’t apply because they don’t target an audience.

Recipe: pause campaigns whose cost per action is too high

Example
import os, uuid, requests

API = "https://orbitoads.pro/api/v1"
H = {"X-API-Key": os.environ["ORBITO_API_KEY"]}
ACCOUNT, MAX_CPA = 53, 4.0

stats = requests.get(f"{API}/stats", params={"period": "1d"}, headers=H, timeout=60).json()["data"]
# cost per action = spend / actions, computed here so the rule means exactly that
expensive = [int(ad_id) for ad_id, s in stats.get(str(ACCOUNT), {}).items()
             if s["actions"] > 0 and s["spent"] / s["actions"] > MAX_CPA]

if expensive:
    r = requests.post(f"{API}/campaigns/bulk",
                      headers={**H, "Idempotency-Key": str(uuid.uuid4())},
                      json={"account_id": ACCOUNT, "action": "pause", "ad_ids": expensive},
                      timeout=60)
    print(r.status_code, r.json()["data"]["id"])

API reference

The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.

PATCH /api/v1/campaigns/{ad_id}

Change selected campaign settings while preserving omitted fields.

ParameterLocationFormatRequired
ad_idpathintegerYes
account_idqueryinteger—
X-API-KeyheaderstringYes
Idempotency-Keyheaderstring—
cURL
curl -X PATCH 'https://orbitoads.pro/api/v1/campaigns/38017?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY' \
  -H 'Content-Type: application/json' \
  --data '{
  "cpm": 1.4
}'
HTTP 200
{
  "success": true,
  "data": {
    "account_id": 7401,
    "ad_id": 38017,
    "title": "Conversation club · November",
    "text": "See this month’s language club schedule.",
    "status": "Active",
    "active": true,
    "promote_url": "https://school.example/club",
    "tme_path": null,
    "target_type": "users",
    "targets": [],
    "cpm": "1.40",
    "budget": "36.00",
    "spent": "4.00",
    "daily_budget": "8.00",
    "views": 3200,
    "opens": 0,
    "clicks": 32,
    "actions": 4,
    "ctr": "1.00",
    "cvr": "12.50",
    "cpc": "0.125",
    "cpa": "1.00",
    "views_per_user": 2,
    "schedule": null,
    "has_media": false,
    "media_type": null,
    "button": "learn_more",
    "website_name": "Example language school",
    "group_id": 516,
    "auto_cpm_enabled": false,
    "date": "1793620800",
    "synced_at": "2026-11-03T12:00:00Z",
    "status_changed_at": "2026-11-03T12:00:00Z"
  }
}
Request body schema
JSON Schema
{
  "minProperties": 1,
  "properties": {
    "account_id": {
      "type": "integer"
    },
    "active": {
      "type": "boolean"
    },
    "button": {
      "enum": [
        "subscribe",
        "view",
        "read",
        "learn_more",
        "download",
        "open",
        "sign_up",
        "buy",
        "order",
        "play",
        "try",
        "leave_request"
      ],
      "type": "string"
    },
    "cpm": {
      "exclusiveMinimum": 0,
      "type": "number"
    },
    "daily_budget": {
      "minimum": 0,
      "type": "number"
    },
    "media": {
      "type": "string"
    },
    "picture": {
      "type": "boolean"
    },
    "promote_url": {
      "maxLength": 2048,
      "type": "string"
    },
    "schedule": {
      "additionalProperties": false,
      "properties": {
        "days": {
          "additionalProperties": false,
          "properties": {
            "fri": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "mon": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "sat": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "sun": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "thu": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "tue": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "wed": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            }
          },
          "type": "object"
        },
        "timezone": {
          "type": "string"
        }
      },
      "required": [
        "days",
        "timezone"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "text": {
      "maxLength": 4096,
      "type": "string"
    },
    "title": {
      "maxLength": 255,
      "type": "string"
    },
    "views_per_user": {
      "maximum": 4,
      "minimum": 1,
      "type": "integer"
    },
    "website_name": {
      "maxLength": 255,
      "type": "string"
    }
  },
  "type": "object"
}
Request outcomes and response fields
APIMeaning
status_warningThe edit was saved, but delivery could not switch on or off, for example because the account lacks budget.
status_intent_onlyThe requested state is recorded and can apply once review or the budget allows it.
status_already_setThe campaign already had the requested state.

POST /api/v1/campaigns/{ad_id}/pause

Request that a campaign stop delivering.

ParameterLocationFormatRequired
ad_idpathintegerYes
account_idqueryinteger—
X-API-KeyheaderstringYes
Idempotency-Keyheaderstring—
cURL
curl -X POST 'https://orbitoads.pro/api/v1/campaigns/38017/pause?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
HTTP 200
{
  "success": true,
  "data": {
    "account_id": 7401,
    "ad_id": 38017,
    "title": "Conversation club · November",
    "text": "See this month’s language club schedule.",
    "status": "On Hold",
    "active": false,
    "promote_url": "https://school.example/club",
    "tme_path": null,
    "target_type": "users",
    "targets": [],
    "cpm": "1.25",
    "budget": "36.00",
    "spent": "4.00",
    "daily_budget": "8.00",
    "views": 3200,
    "opens": 0,
    "clicks": 32,
    "actions": 4,
    "ctr": "1.00",
    "cvr": "12.50",
    "cpc": "0.125",
    "cpa": "1.00",
    "views_per_user": 2,
    "schedule": null,
    "has_media": false,
    "media_type": null,
    "button": "learn_more",
    "website_name": "Example language school",
    "group_id": 516,
    "auto_cpm_enabled": false,
    "date": "1793620800",
    "synced_at": "2026-11-03T12:00:00Z",
    "status_changed_at": "2026-11-03T12:00:00Z"
  },
  "meta": {
    "intent_only": false
  }
}

POST /api/v1/campaigns/{ad_id}/resume

Request that a campaign resume when delivery is possible.

ParameterLocationFormatRequired
ad_idpathintegerYes
account_idqueryinteger—
X-API-KeyheaderstringYes
Idempotency-Keyheaderstring—
cURL
curl -X POST 'https://orbitoads.pro/api/v1/campaigns/38017/resume?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
HTTP 200
{
  "success": true,
  "data": {
    "account_id": 7401,
    "ad_id": 38017,
    "title": "Conversation club · November",
    "text": "See this month’s language club schedule.",
    "status": "Active",
    "active": true,
    "promote_url": "https://school.example/club",
    "tme_path": null,
    "target_type": "users",
    "targets": [],
    "cpm": "1.25",
    "budget": "36.00",
    "spent": "4.00",
    "daily_budget": "8.00",
    "views": 3200,
    "opens": 0,
    "clicks": 32,
    "actions": 4,
    "ctr": "1.00",
    "cvr": "12.50",
    "cpc": "0.125",
    "cpa": "1.00",
    "views_per_user": 2,
    "schedule": null,
    "has_media": false,
    "media_type": null,
    "button": "learn_more",
    "website_name": "Example language school",
    "group_id": 516,
    "auto_cpm_enabled": false,
    "date": "1793620800",
    "synced_at": "2026-11-03T12:00:00Z",
    "status_changed_at": "2026-11-03T12:00:00Z"
  },
  "meta": {
    "intent_only": false
  }
}

POST /api/v1/campaigns/{ad_id}/budget

Move budget between an account balance and one campaign.

ParameterLocationFormatRequired
ad_idpathintegerYes
account_idqueryinteger—
Idempotency-KeyheaderstringYes
X-API-KeyheaderstringYes
cURL
curl -X POST 'https://orbitoads.pro/api/v1/campaigns/38017/budget?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY' \
  -H 'Idempotency-Key: 2033d50c-b32b-44aa-8e40-3e236c474810' \
  -H 'Content-Type: application/json' \
  --data '{
  "action": "add",
  "amount": 5
}'
HTTP 200
{
  "success": true,
  "data": {
    "account_id": 7401,
    "ad_id": 38017,
    "title": "Conversation club · November",
    "text": "See this month’s language club schedule.",
    "status": "Active",
    "active": true,
    "promote_url": "https://school.example/club",
    "tme_path": null,
    "target_type": "users",
    "targets": [],
    "cpm": "1.25",
    "budget": "41.00",
    "spent": "4.00",
    "daily_budget": "8.00",
    "views": 3200,
    "opens": 0,
    "clicks": 32,
    "actions": 4,
    "ctr": "1.00",
    "cvr": "12.50",
    "cpc": "0.125",
    "cpa": "1.00",
    "views_per_user": 2,
    "schedule": null,
    "has_media": false,
    "media_type": null,
    "button": "learn_more",
    "website_name": "Example language school",
    "group_id": 516,
    "auto_cpm_enabled": false,
    "date": "1793620800",
    "synced_at": "2026-11-03T12:00:00Z",
    "status_changed_at": "2026-11-03T12:00:00Z"
  },
  "meta": {
    "action": "add",
    "moved": 5,
    "partial": false
  }
}
Request body schema
JSON Schema
{
  "properties": {
    "account_id": {
      "type": "integer"
    },
    "action": {
      "enum": [
        "add",
        "withdraw",
        "withdraw_all"
      ],
      "type": "string"
    },
    "amount": {
      "exclusiveMinimum": 0,
      "type": "number"
    }
  },
  "required": [
    "action"
  ],
  "type": "object"
}

POST /api/v1/campaigns/{ad_id}/copy

Queue up to 100 copies with inherited targeting and optional overrides.

ParameterLocationFormatRequired
ad_idpathintegerYes
account_idqueryinteger—
Idempotency-KeyheaderstringYes
X-API-KeyheaderstringYes
cURL
curl -X POST 'https://orbitoads.pro/api/v1/campaigns/38017/copy?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY' \
  -H 'Idempotency-Key: 2033d50c-b32b-44aa-8e40-3e236c474811' \
  -H 'Content-Type: application/json' \
  --data '{
  "copies": 2,
  "budget": 0,
  "title": "Club · second draft",
  "group_id": 516
}'
HTTP 202
{
  "success": true,
  "data": {
    "id": 96203,
    "type": "copy",
    "status": "pending",
    "account_id": 7401,
    "total": 2,
    "ad_ids": []
  }
}
Request body schema
JSON Schema
{
  "properties": {
    "account_id": {
      "type": "integer"
    },
    "budget": {
      "minimum": 0,
      "type": "number"
    },
    "copies": {
      "default": 1,
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    },
    "cpm": {
      "exclusiveMinimum": 0,
      "type": "number"
    },
    "group_id": {
      "type": "integer"
    },
    "media": {
      "type": "string"
    },
    "new_group_name": {
      "type": "string"
    },
    "picture": {
      "type": "boolean"
    },
    "promote_url": {
      "type": "string"
    },
    "schedule": {
      "additionalProperties": false,
      "properties": {
        "days": {
          "additionalProperties": false,
          "properties": {
            "fri": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "mon": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "sat": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "sun": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "thu": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "tue": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "wed": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            }
          },
          "type": "object"
        },
        "timezone": {
          "type": "string"
        }
      },
      "required": [
        "days",
        "timezone"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "text": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "views_per_user": {
      "maximum": 4,
      "minimum": 1,
      "type": "integer"
    }
  },
  "type": "object"
}

POST /api/v1/campaigns/bulk

Queue one operation across up to 1,000 campaigns in the same account.

ParameterLocationFormatRequired
Idempotency-KeyheaderstringYes
X-API-KeyheaderstringYes
cURL
curl -X POST https://orbitoads.pro/api/v1/campaigns/bulk \
  -H 'X-API-Key: YOUR_ORBITO_KEY' \
  -H 'Idempotency-Key: 2033d50c-b32b-44aa-8e40-3e236c474812' \
  -H 'Content-Type: application/json' \
  --data '{
  "account_id": 7401,
  "action": "set_cpm",
  "cpm": 1.4,
  "ad_ids": [
    38017,
    38018
  ]
}'
HTTP 202
{
  "success": true,
  "data": {
    "id": 96203,
    "type": "cpm",
    "status": "pending",
    "account_id": 7401,
    "total": 2,
    "ad_ids": []
  }
}
Request body schema
JSON Schema
{
  "properties": {
    "account_id": {
      "type": "integer"
    },
    "action": {
      "enum": [
        "pause",
        "resume",
        "add_budget",
        "withdraw_budget",
        "withdraw_all_budget",
        "set_cpm",
        "set_schedule",
        "delete"
      ],
      "type": "string"
    },
    "ad_ids": {
      "items": {
        "type": "integer"
      },
      "maxItems": 1000,
      "minItems": 1,
      "type": "array"
    },
    "amount": {
      "exclusiveMinimum": 0,
      "type": "number"
    },
    "cpm": {
      "exclusiveMinimum": 0,
      "type": "number"
    },
    "schedule": {
      "additionalProperties": false,
      "properties": {
        "days": {
          "additionalProperties": false,
          "properties": {
            "fri": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "mon": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "sat": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "sun": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "thu": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "tue": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            },
            "wed": {
              "items": {
                "maximum": 23,
                "minimum": 0,
                "type": "integer"
              },
              "maxItems": 24,
              "type": "array"
            }
          },
          "type": "object"
        },
        "timezone": {
          "type": "string"
        }
      },
      "required": [
        "days",
        "timezone"
      ],
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "action",
    "ad_ids"
  ],
  "type": "object"
}

DELETE /api/v1/campaigns/{ad_id}

Remove a campaign and retain historical delivery statistics where available.

ParameterLocationFormatRequired
ad_idpathintegerYes
account_idqueryinteger—
X-API-KeyheaderstringYes
Idempotency-Keyheaderstring—
cURL
curl -X DELETE 'https://orbitoads.pro/api/v1/campaigns/38017?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
HTTP 200
{
  "success": true,
  "data": {
    "ad_id": 38017,
    "account_id": 7401,
    "deleted": true
  }
}

Implementation notes

Mutable fields and time slots

Change cpm, active or schedule without a new creative review. Editing creative fields can trigger review. An existing campaign keeps its targeting. Schedules use weekdays, hours 0–23 and a supported UTC offset. viewer is available for users targeting. Set schedule to null to remove it.

Budget movements inside the cabinet

add moves funds into the campaign. withdraw returns the requested amount and withdraw_all returns its remaining budget to the cabinet. Check meta.moved and meta.partial. Account funding, invoicing and refunds use the billing workflow.

Accepted work and completion

Create, copy and bulk requests return HTTP 202 with a task id. Poll GET /api/v1/tasks/{id}, respecting Retry-After. Check failed and errors even when status is completed.

Operations and fields

PATCH /api/v1/campaigns/{ad_id} POST /api/v1/campaigns/{ad_id}/pause POST /api/v1/campaigns/{ad_id}/resume POST /api/v1/campaigns/{ad_id}/budget POST /api/v1/campaigns/{ad_id}/copy POST /api/v1/campaigns/bulk

  • PATCH /api/v1/campaigns/{ad_id}
  • POST /api/v1/campaigns/{ad_id}/pause
  • POST /api/v1/campaigns/{ad_id}/resume
  • POST /api/v1/campaigns/{ad_id}/budget
  • POST /api/v1/campaigns/{ad_id}/copy
  • POST /api/v1/campaigns/bulk

Request example

GET /api/v1/campaigns/{ad_id}?account_id={account_id} HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}

Schema fields and limits

This table follows the public v1 contract. Parameter and field names are case-sensitive. For each operation, the HTTP response codes distinguish a successful result, input validation and access checks. The linked specification defines the full request and response shapes.

Protocol reference

MethodRouteParametersRequest contentResponse codes
PATCH/api/v1/campaigns/{ad_id}ad_id, account_idapplication/json · UpdateRequest200, 400, 401, 403, 404, 409, 429
POST/api/v1/campaigns/{ad_id}/pausead_id, account_id—200, 400, 401, 403, 404, 409, 429
POST/api/v1/campaigns/{ad_id}/resumead_id, account_id—200, 400, 401, 403, 404, 409, 429
POST/api/v1/campaigns/{ad_id}/budgetad_id, account_id, Idempotency-Keyapplication/json · BudgetRequest200, 400, 401, 403, 404, 409, 422, 429
POST/api/v1/campaigns/{ad_id}/copyad_id, account_id, Idempotency-Keyapplication/json · CopyRequest202, 400, 401, 403, 404, 409, 422, 429
POST/api/v1/campaigns/bulkIdempotency-Keyapplication/json · BulkRequest202, 400, 401, 403, 404, 409, 422, 429
DELETE/api/v1/campaigns/{ad_id}ad_id, account_id—200, 400, 401, 403, 404, 409, 429

Source · Data source

Schema fields and limits · Changing existing campaigns

FieldDocumented value
BulkRequest.ad_ids[]1 … 1,000
CopyRequest.copies1 … 100
BudgetRequest.actionadd | withdraw | withdraw_all
BulkRequest.actionpause | resume | add_budget | withdraw_budget | withdraw_all_budget | set_cpm | set_schedule | delete
Scheduledays, timezone

Source · Data source

UpdateRequest

FieldField type
titlestring
textstring
promote_urlstring
cpmnumber
daily_budgetnumber · 0 … ∞
views_per_userinteger · 1 … 4
mediastring
pictureboolean
buttonsubscribe | view | read | learn_more | download | open | sign_up | buy | order | play | try | leave_request
website_namestring
scheduleSchedule
account_idinteger
activeboolean

Source · Data source

BudgetRequest

FieldField type
account_idinteger
actionadd | withdraw | withdraw_all
amountnumber

Source · Data source

CopyRequest

FieldField type
account_idinteger
copiesinteger · 1 … 100 · = 1
titlestring
textstring
promote_urlstring
cpmnumber
budgetnumber · 0 … ∞
mediastring
pictureboolean
views_per_userinteger · 1 … 4
scheduleSchedule
group_idinteger
new_group_namestring

Source · Data source

BulkRequest

FieldField type
account_idinteger
actionpause | resume | add_budget | withdraw_budget | withdraw_all_budget | set_cpm | set_schedule | delete
ad_idsarray · [integer] · 1 … 1000
amountnumber
cpmnumber
scheduleSchedule

Source · Data source

Schedule

FieldField type
daysobject
timezonestring

Source · Data source

Reference revision

Pro Panel
Pro Panel