OverviewProductsPlatformsAPI ReferenceResources
Campaigns and Ads

List shared budgets

GEThttps://zernio.com/api/v1/ads/shared-budgets

Lists a Google Ads account's shared budgets and how many campaigns draw from each.

Lists the Google Ads customer's shared campaign budgets (campaign_budget.explicitly_shared = true, not removed), with how many campaigns use each. Move a campaign onto one with sharedBudgetId on PUT /v1/ads/campaigns/{campaignId}. Google only; other platforms return 501.

PlatformsGoogle

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

accountIdstringRequired

Google ads SocialAccount id.

adAccountIdstring

Platform ad account ID (Google customer ID, digits only). Defaults to the account's connected customer.

Responses

Success· the request worked

Errors· the request failed

Rank ads by performance

Returns an ads account's ads ranked by spend, impressions, clicks, results or ROAS over a date range, each with its creative (type, thumbnail, headline, body, link) and campaign. Use it to see which creatives perform best. `accountId` is sibling-expanded like `/v1/ads/timeline`. Money is ranked by its raw amount, so pass `adAccountId` when the connection's ad accounts bill in different currencies. A Meta range older than the imported history answers `202` with `backfillPending: true` and the covered part; repeat the request until it returns 200.

Review status of every TikTok Smart+ ad of an advertiser

Returns the review verdict of every Upgraded Smart+ ad of one TikTok advertiser, with each creative's verdict, in one paginated read. Use it to refresh reviews periodically: one call (plus its pages) per advertiser per refresh, instead of `GET /v1/ads/{adId}/tiktok-smart-plus-review` per ad. ### How Zernio reads TikTok 1. Zernio lists the advertiser's Smart+ ads with `/smart_plus/ad/get/` (deleted ones only with `includeDeleted=true`). 2. It reads `/smart_plus/ad/review_info/` for Smart+ ads holding up to 50 creatives in total per call (TikTok refuses more). A Smart+ ad with more than 50 creatives is read alone. 3. Calls run across ad groups, one after another while TikTok accepts them, for up to 20 seconds per request. Ads not reached are read by the next request, which can come right away. One request per advertiser and connection refreshes at a time. A parallel request sends no review call and answers what is stored with `refreshState: paused` and `retryAfterSeconds: 20`. A full refresh of N Smart+ ads with C creatives in total costs about `ceil(N / 100)` listing calls and `ceil(C / 50)` review calls on TikTok. When TikTok still refuses a call for its creative count, Zernio lowers the creative cap for that advertiser and reads the same ads again in smaller calls, never resending the refused size. ### Stale while refreshing Every review is stored for 24 hours per connection, advertiser and Smart+ ad (shared with the single-ad read). `readAt` is always the time TikTok answered, never rewritten when served from the store. `maxAgeSeconds` (default 3600) is the freshness window: - A review read within it is fresh and costs no TikTok call. - An older one is still returned in `items` but is read again. - A Smart+ ad never read is also read. Each request alternates one batch of Smart+ ads never read (live, then deleted with `includeDeleted=true`) with one batch of stale ones, oldest `readAt` first. So a quota pause starves neither, progress carries over between requests, and an ad already read never goes back to pending. A stored review is replaced only by a successful read. ### Response fields - `counts`: splits the Smart+ ads on this page into `fresh`, `stale`, `pending` and `failed`. - `oldestReadAt`: the oldest `readAt` of `items`. - `incomplete`: true only while some Smart+ ad of the page has never been read (`pending > 0`). - `allFresh`: staleness is reported apart. True when every item and refusal of the page is within `maxAgeSeconds` and nothing is pending. - `refreshState`: `paused` or `refused` when Zernio could not refresh some due ads of the page because review reads are held or TikTok refused them over quota. - `retryAfterSeconds` (also in the `Retry-After` header): when that later read can reach TikTok, even with nothing pending. A page with stale items and nothing pending is complete (`incomplete: false`). Move on, and a later read refreshes it oldest first. On 2026-10-25 TikTok's quota allowed about 130 to 230 Smart+ ads per advertiser per hour (about 11.5 ads and 4 creatives per successful call). A larger advertiser cannot be fully refreshed within one hour, so its pages stay complete but not `allFresh`. ### Listing freshness The listing is stored with the time it was read (`listing.readAt`) and listed again when it is older than `maxAgeSeconds`. So it can be up to `maxAgeSeconds` old: a Smart+ ad created on TikTok appears after at most that long (one hour by default). - `listing.source: fresh`: the listing was read within `maxAgeSeconds`. - `listing.source: fallback`: relisting failed, so Zernio serves the stored listing, with the relist error in `listing.error`, instead of failing the request. Only when no listing was ever stored does the listing error fail the request. ### Review quota TikTok's review endpoint has a strict quota of its own (TikTok documents neither the quota nor its scope). One request keeps reading batches (up to 50 creatives each) while TikTok accepts them. Zernio may hold review reads after an overage: about 60 seconds, then 120 and up to 240 while TikTok keeps refusing, and about 60 again after a successful call, each with up to 10% of random jitter. When TikTok is over quota (or reads are held), Zernio stops calling TikTok and answers 200 with the reviews it has: - stale reviews in `items` - the Smart+ ads never read in `pendingSmartPlusAdIds` - `incomplete: true` when any are pending - `refreshState` (`paused` or `refused`) with `retryAfterSeconds` (also in the `Retry-After` header) whenever due ads were left unread Every Smart+ ad of the page is in `items`, `failedSmartPlusAds` or `pendingSmartPlusAdIds`. Wait `retryAfterSeconds` and read the same page again: only the stale and pending ads reach TikTok. ### Refused ads A Smart+ ad whose review TikTok refuses on its own (for example one deleted on TikTok since the listing was read) is returned in `failedSmartPlusAds` with TikTok's error and `refusedAt`. The rest of the page is still read. Zernio finds it by splitting the refused batch in halves, at most 16 extra TikTok calls per page. Ads still unresolved after that keep their stored review, or stay in `pendingSmartPlusAdIds` when they have none, and are read again by the next request, in turn with the other due ads. A refusal of a single ad is stored for 24 hours and read again once it is older than `maxAgeSeconds`. When an ad has both a stored review and a stored refusal, the more recent one is returned. When both halves of a refused batch are refused with the same TikTok error (for example a permission error), Zernio stops calling TikTok for that page: - If every Smart+ ad of the page has a stored review or refusal, it serves them and returns the refusal in `reviewError`. - If some ad was never read, the whole request fails with that error. ### Paging Items are sorted by `adGroupId`, then `smartPlusAdId`, so pages are stable. Keep one page in flight per advertiser and read its pages one after another. Parallel pages of one advertiser spend its review quota at the same time and come back incomplete. Production logs suggest the quota is counted per advertiser (not confirmed by TikTok), so different advertisers have been read in parallel without throttling each other.

GET/v1/ads/shared-budgets
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adcampaigns.listSharedBudgets({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "customerId": "string",  "budgets": [    {      "id": "string",      "name": "string",      "amount": 0,      "type": "daily",      "deliveryMethod": "string",      "status": "string",      "campaignCount": 0    }  ]}
OpenAPI specification
Was this page helpful?