List ad sets
Ad sets (Google ad groups) synced for the connection, optionally
filtered by platform and campaignId. Reads the ad_sets table
directly, independent of the ads rollup GET /v1/ads/tree uses, so a
just-created standalone ad group with no ad yet (POST /v1/ads/ad-sets,
Google only) is visible here even though it is invisible in the tree
until an ad joins it via existingAdGroupId. Returns at most 500
rows, newest first.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
Social account ID
Platform campaign ID
"facebook" | "instagram" | "tiktok" | "linkedin" | "pinterest" | "google" | "twitter" | "openai"Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adcampaigns.listAdSets();console.log(data);{
"adSets": [
{
"platformAdSetId": "string",
"platform": "string",
"adSetName": "string",
"status": "string",
"platformAdSetStatus": "string",
"platformCampaignId": "string",
"platformAdAccountId": "string",
"accountId": "string",
"profileId": "string",
"currency": "string",
"budget": {},
"isExternal": true,
"platformCreatedAt": "2019-08-24T14:15:22Z"
}
]
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}Read a Google campaign's device, location, and language targeting GET
Google Ads compliance requires geo, language, budget, and bidding targeting set at creation to stay editable afterwards; this reads the live campaign state so an integrator can build an editor around it. Google only; every other platform returns 501. `devices` always lists all four device types with `included` reflecting Google's negative device criteria (a device absent from any negative criterion is included by default). This read has no bid-modifier source, so `bidModifier` is always `null` even for a device with one configured.
List Google Ads portfolio bid strategies GET
Bidding strategy report: type, status, campaign count, clicks, cost, cost per conversion, impressions, average CPC and conversions over the date range (default last 30 days). Reads Google's `bidding_strategy` resource live. Draws on the shared Google Ads operations budget.