List account snippets
Lists the structured snippets attached at account level in Google Ads, which can show on ads across all campaigns.
Fresh reads are cached for 10 minutes; exhausted quota may return the last successful read with stale=true. Inherited assets are not included.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
Zernio Google Ads connection id.
^[a-fA-F0-9]{24}$Platform ad account ID (Google customer ID, digits only). Required when the connection has multiple customers.
^\d+$Alias of adAccountId, kept for existing callers
^\d+$Response Body
application/json
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.adaccounts.listAccountStructuredSnippets({ query: { accountId: 'account_abc123', },});console.log(data);{ "customerId": "string", "structuredSnippets": [ { "assetId": "string", "status": "string", "assetResourceName": "string", "customerAssetResourceName": "string", "header": "string", "values": [ "string" ] } ], "cachedAt": "2019-08-24T14:15:22Z", "stale": true}Remove account sitelink
Detaches a sitelink from the Google Ads account level, leaving it on any campaigns or ad groups that still use it. Removes the customer_asset attachment only. The underlying shared asset and its campaign or ad-group attachments remain. Fields go in the query string. A JSON body with the same fields is also accepted and, when sent, the query string is ignored.
Add account snippets
Creates structured snippets and attaches them at account level in Google Ads so they can show on ads across all campaigns. Creates assets and customer_asset links for this Google customer. Links apply at account level.