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.
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.
| Call | What it does | Answers |
|---|---|---|
PATCH /v1/campaigns/{ad_id} | change text, link, bid, cap, schedule, on/off | right away |
POST /v1/campaigns/{ad_id}/pause | switch off | right away |
POST /v1/campaigns/{ad_id}/resume | switch on | right away |
POST /v1/campaigns/{ad_id}/budget | add or withdraw budget | right away |
DELETE /v1/campaigns/{ad_id} | delete | right away |
POST /v1/campaigns/{ad_id}/copy | 1–100 copies | 202 + task |
POST /v1/campaigns/bulk | one action on up to 1,000 campaigns | 202 + task |
Direct answers return the updated campaign object in data.
Edit
PATCH /v1/campaigns/{ad_id} — send only what changes.
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." }'| Field | Meaning |
|---|---|
title, text, promote_url | Creative and link. |
cpm | New bid, greater than 0. |
daily_budget | Daily cap. |
views_per_user | 1–4. |
active | true / false — same as resume / pause. |
schedule | Days and hours to show the ad; null removes it — see Schedule. |
media, picture, button, website_name | As 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:
| Field | Meaning |
|---|---|
status_warning | The fields saved, but Telegram didn’t apply the on/off switch (for example, no budget). |
status_intent_only | Your on/off choice is stored and applies when Telegram can (in review, no budget). |
status_already_set | The 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
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.
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" } }'| Field | Meaning |
|---|---|
days | mon, 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. |
timezone | Whose 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.
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 }'action | amount | Effect |
|---|---|---|
add | required | Cabinet balance → campaign. |
withdraw | required | Campaign → 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.
{ "account_id": 53, "copies": 3, "text": "Variant B — shorter", "cpm": 2, "budget": 5 }| Field | Meaning |
|---|---|
copies | 1–100, default 1. |
title, text, promote_url, cpm, budget, media, picture, views_per_user | Overrides for every copy. budget: 0 or at least the cabinet’s min_budget. |
schedule | Copies keep the original’s schedule; send one to replace it, or null for none. |
group_id / new_group_name | Put the copies in a group. |
Delete
curl -s -X DELETE "https://orbitoads.pro/api/v1/campaigns/90412?account_id=53" -H "X-API-Key: $ORBITO_API_KEY"{ "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.
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] }'action | Extra field | Effect |
|---|---|---|
pause | — | switch off |
resume | — | switch on |
add_budget | amount | add to each campaign |
withdraw_budget | amount | withdraw from each campaign |
withdraw_all_budget | — | withdraw everything from each campaign |
set_cpm | cpm | set the same bid on each |
set_schedule | schedule | set 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
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.
| Parameter | Location | Format | Required |
|---|---|---|---|
ad_id | path | integer | Yes |
account_id | query | integer | — |
X-API-Key | header | string | Yes |
Idempotency-Key | header | string | — |
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
}'{
"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
{
"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"
}| API | Meaning |
|---|---|
| status_warning | The edit was saved, but delivery could not switch on or off, for example because the account lacks budget. |
| status_intent_only | The requested state is recorded and can apply once review or the budget allows it. |
| status_already_set | The campaign already had the requested state. |
POST /api/v1/campaigns/{ad_id}/pause
Request that a campaign stop delivering.
| Parameter | Location | Format | Required |
|---|---|---|---|
ad_id | path | integer | Yes |
account_id | query | integer | — |
X-API-Key | header | string | Yes |
Idempotency-Key | header | string | — |
curl -X POST 'https://orbitoads.pro/api/v1/campaigns/38017/pause?account_id=7401' \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"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.
| Parameter | Location | Format | Required |
|---|---|---|---|
ad_id | path | integer | Yes |
account_id | query | integer | — |
X-API-Key | header | string | Yes |
Idempotency-Key | header | string | — |
curl -X POST 'https://orbitoads.pro/api/v1/campaigns/38017/resume?account_id=7401' \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"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.
| Parameter | Location | Format | Required |
|---|---|---|---|
ad_id | path | integer | Yes |
account_id | query | integer | — |
Idempotency-Key | header | string | Yes |
X-API-Key | header | string | Yes |
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
}'{
"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
{
"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.
| Parameter | Location | Format | Required |
|---|---|---|---|
ad_id | path | integer | Yes |
account_id | query | integer | — |
Idempotency-Key | header | string | Yes |
X-API-Key | header | string | Yes |
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
}'{
"success": true,
"data": {
"id": 96203,
"type": "copy",
"status": "pending",
"account_id": 7401,
"total": 2,
"ad_ids": []
}
}Request body 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.
| Parameter | Location | Format | Required |
|---|---|---|---|
Idempotency-Key | header | string | Yes |
X-API-Key | header | string | Yes |
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
]
}'{
"success": true,
"data": {
"id": 96203,
"type": "cpm",
"status": "pending",
"account_id": 7401,
"total": 2,
"ad_ids": []
}
}Request body 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.
| Parameter | Location | Format | Required |
|---|---|---|---|
ad_id | path | integer | Yes |
account_id | query | integer | — |
X-API-Key | header | string | Yes |
Idempotency-Key | header | string | — |
curl -X DELETE 'https://orbitoads.pro/api/v1/campaigns/38017?account_id=7401' \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"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
| Method | Route | Parameters | Request content | Response codes |
|---|---|---|---|---|
| PATCH | /api/v1/campaigns/{ad_id} | ad_id, account_id | application/json · UpdateRequest | 200, 400, 401, 403, 404, 409, 429 |
| POST | /api/v1/campaigns/{ad_id}/pause | ad_id, account_id | — | 200, 400, 401, 403, 404, 409, 429 |
| POST | /api/v1/campaigns/{ad_id}/resume | ad_id, account_id | — | 200, 400, 401, 403, 404, 409, 429 |
| POST | /api/v1/campaigns/{ad_id}/budget | ad_id, account_id, Idempotency-Key | application/json · BudgetRequest | 200, 400, 401, 403, 404, 409, 422, 429 |
| POST | /api/v1/campaigns/{ad_id}/copy | ad_id, account_id, Idempotency-Key | application/json · CopyRequest | 202, 400, 401, 403, 404, 409, 422, 429 |
| POST | /api/v1/campaigns/bulk | Idempotency-Key | application/json · BulkRequest | 202, 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
| Field | Documented value |
|---|---|
| BulkRequest.ad_ids[] | 1 … 1,000 |
| CopyRequest.copies | 1 … 100 |
| BudgetRequest.action | add | withdraw | withdraw_all |
| BulkRequest.action | pause | resume | add_budget | withdraw_budget | withdraw_all_budget | set_cpm | set_schedule | delete |
| Schedule | days, timezone |
Source · Data source
UpdateRequest
| Field | Field type |
|---|---|
| title | string |
| text | string |
| promote_url | string |
| cpm | number |
| daily_budget | number · 0 … ∞ |
| views_per_user | integer · 1 … 4 |
| media | string |
| picture | boolean |
| button | subscribe | view | read | learn_more | download | open | sign_up | buy | order | play | try | leave_request |
| website_name | string |
| schedule | Schedule |
| account_id | integer |
| active | boolean |
Source · Data source
BudgetRequest
| Field | Field type |
|---|---|
| account_id | integer |
| action | add | withdraw | withdraw_all |
| amount | number |
Source · Data source
CopyRequest
| Field | Field type |
|---|---|
| account_id | integer |
| copies | integer · 1 … 100 · = 1 |
| title | string |
| text | string |
| promote_url | string |
| cpm | number |
| budget | number · 0 … ∞ |
| media | string |
| picture | boolean |
| views_per_user | integer · 1 … 4 |
| schedule | Schedule |
| group_id | integer |
| new_group_name | string |
Source · Data source
BulkRequest
| Field | Field type |
|---|---|
| account_id | integer |
| action | pause | resume | add_budget | withdraw_budget | withdraw_all_budget | set_cpm | set_schedule | delete |
| ad_ids | array · [integer] · 1 … 1000 |
| amount | number |
| cpm | number |
| schedule | Schedule |
Source · Data source
Schedule
| Field | Field type |
|---|---|
| days | object |
| timezone | string |
Source · Data source
Reference revision