OverviewProductsPlatformsAPI ReferenceResources
Campaigns and Ads

Create a shared budget

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

Creates a daily Google Ads budget that several campaigns can share.

Creates a daily shared campaign budget (explicitly_shared: true, standard delivery) that several campaigns can draw from. A lifetime budget returns 422, like every Google budget. Google refuses some bidding strategies on a shared budget; that error surfaces when a campaign is moved onto it.

PlatformsGoogle

Authentication

AuthorizationBearer tokenRequired

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

Body

application/json

What every request needs

accountIdstringRequired

Google ads SocialAccount id.

namestring, max 255Required
amountnumberRequired

Daily amount in the account's currency units.

Optional parameters2 fields
adAccountIdstring

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

typestringDefault dailyOne of daily | lifetime

Only daily is accepted (lifetime returns 422).

Responses

Success· the request worked

Errors· the request failed

POST/v1/ads/shared-budgets
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adcampaigns.createSharedBudget({  body: {    accountId: 'account_abc123',    name: 'Example',    amount: 0,  },});console.log(data);
{  "budget": {    "customerId": "string",    "id": "string",    "resourceName": "string"  }}
OpenAPI specification
Was this page helpful?