ads
List ad accounts for a social account
Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs).
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
accountIdstring
Social account ID
Response Body
application/json
application/json
curl -X GET "https://zernio.com/api/v1/ads/accounts?accountId=string"{
"accounts": [
{
"id": "string",
"name": "string",
"currency": "string",
"status": "string"
}
]
}{
"error": "Unauthorized"
}Empty
Pause or resume a campaign PUT
Updates the status of all ads in a campaign. Makes one platform API call (not per-ad) since status cascades through the campaign hierarchy. Ads in terminal statuses (rejected, completed, cancelled) are automatically skipped.
List ads GET
Returns a paginated list of ads with cached metrics. Use `source=all` to include externally-synced ads from platform ad managers.