Resync with Meta
POST /api/marketing/ad-accounts/{id}/refreshRereads the account’s name, currency and status from the Graph API and updates last_synced_at. Requires the marketing:manage scope.
Responses
Section titled “Responses”| Status | Description | Schema |
|---|---|---|
200 | — | AdAccountDto |
Example
Section titled “Example”curl -X POST https://api.neike.dev/api/marketing/ad-accounts/{id}/refresh \ -H "x-neike-api-key: whk_live_…"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 | — |