List conversion actions and their tag snippets
Lists Google Ads conversion actions on the resolved customer, all types by
default. Each action's tagSnippets (global site tag + event snippet) is
included when Google has them for that action's type, e.g. WEBPAGE.
Google-only; other platforms return 501. Requires the Ads add-on.
customerId is optional: when omitted, it is resolved from the connection's
accessible Google Ads customers, and the call fails with 400 when more than
one is accessible (pass customerId to disambiguate).
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
SocialAccount _id (must be a googleads account).
Google Ads customer id (digits only). Resolved automatically when the connection has exactly one accessible customer.
Filter by Google's ConversionActionType enum (e.g. WEBPAGE, UPLOAD_CLICKS).
Response Body
application/json
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.conversions.listConversionActions({ query: { accountId: 'account_abc123', },});console.log(data);{
"customerId": "string",
"actions": [
{
"id": "string",
"name": "string",
"type": "string",
"status": "string",
"category": "string",
"tagSnippets": [
{
"type": "string",
"pageFormat": "string",
"globalSiteTag": "string",
"eventSnippet": "string"
}
]
}
]
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Flexible live insights query GET
Live, flexible insights query. The account's platform picks the contract: **Meta (facebook/instagram)**: forwards caller-chosen `fields`, `breakdowns` and `filtering` to any Meta insights node and returns Meta's rows verbatim. `objectId` (required) selects the node; `level` sets row granularity. Semantic validation is Meta's: an unknown field or invalid breakdown combination returns a 400 carrying Meta's message. For long ranges or agency-scale accounts prefer the async variant (POST /v1/ads/insights/reports). **Google Ads (googleads)**: raw GAQL passthrough. Send any read-only GAQL SELECT via `query` (campaign/keyword/search-term/geo/demographic/asset/shopping resources, `change_event`, any `segments.*`) and rows come back verbatim (camelCase, counters as strings). Results are paged at a fixed 10,000 rows; follow `paging.nextPageToken` with `pageToken`. `customerId` is only needed when the connection has several Google Ads accounts. Semantic validation is Google's: an invalid query returns a 400 carrying Google's message (note: selecting `segments.date` requires a finite date filter).
List associated campaigns GET
LinkedIn-only today. Returns the campaigns currently associated with this conversion rule. Note that auto-association on rule creation runs once at create time; campaigns created after the rule still need explicit association.