Pause or resume a campaign
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.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Platform campaign ID
"active" | "paused""facebook" | "instagram" | "tiktok" | "linkedin" | "pinterest" | "google" | "twitter"Response Body
application/json
application/json
curl -X PUT "https://zernio.com/api/v1/ads/campaigns/string/status" \ -H "Content-Type: application/json" \ -d '{ "status": "active", "platform": "facebook" }'{
"updated": 0,
"skipped": 0,
"skippedReasons": [
"string"
],
"message": "string"
}{
"error": "Unauthorized"
}List campaigns with aggregate metrics GET
Returns campaigns as virtual aggregations over ad documents grouped by platform campaign ID. Metrics (spend, impressions, clicks, etc.) are summed across all ads in each campaign. Campaign status is derived from child ad statuses (active > pending_review > paused > error > completed > cancelled > rejected).
List ad accounts for a social account GET
Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs).