Activate or pause an ad account
PATCH /api/marketing/ad-accounts/{id}active enables it to operate from Neike, disabled pauses it without disconnecting it. Requires the marketing:manage scope.
Request body
Section titled “Request body”| Field | Type | Description | |
|---|---|---|---|
status | active · disabled | required | active enables it to operate from Neike; disabled pauses it without disconnecting it. An account with a revoked token must be reconnected through OAuth. |
Responses
Section titled “Responses”| Status | Description | Schema |
|---|---|---|
200 | — | AdAccountDto |
Example
Section titled “Example”curl -X PATCH https://api.neike.dev/api/marketing/ad-accounts/{id} \ -H "x-neike-api-key: whk_live_…" \ -H "Content-Type: application/json" \ -d '{ "status": "active" }'AdAccountDto
Section titled “AdAccountDto”| Field | Type | Description | |
|---|---|---|---|
id | string | required | Account id in Neike (uuid). |
provider | meta | required | Ads provider of the account. Today there is only one: meta. |
ad_account_id | string | required | Account id in Meta, with prefix. Example: "act_123456789". |
account_id | string | required | The same id without the act_ prefix. Example: "123456789". |
name | string | required | Example: "Cuenta principal". |
currency | string | required | Account currency in Meta. Example: "ARS". |
timezone_name | string | required | Example: "America/Argentina/Buenos_Aires". |
account_status | number | required | Meta numeric enum (1 = active, 2 = disabled…). Example: 1. |
account_status_label | string | required | The same status as text, already translated. Example: "active". |
business_id | string | optional | — |
business_name | string | optional | — |
status | available · active · disabled · revoked | required | Status in Neike: available (connected, not yet chosen), active (operable), disabled (paused by the client) or revoked (Meta invalidated the token). |
last_synced_at | string (date-time) | required | — |
created_at | string (date-time) | required | — |