OverviewProductsPlatformsAPI ReferenceResources
Accounts & Ops

Add account snippets

POSThttps://zernio.com/api/v1/ads/accounts/structured-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.

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

Zernio Google Ads connection id.

structuredSnippetsarray of GoogleStructuredSnippetRequired
headerstringRequiredOne of Amenities | Brands | Courses | Degree programs | Destinations | Featured hotels | Insurance coverage | Models | Neighborhoods | Service catalog | Shows | Styles | Types
valuesarray of string, max 25Required
Optional parameters2 fields
adAccountIdstring

Platform ad account ID (Google customer ID, digits only). Required when the connection has multiple customers.

customerIdDeprecatedstring

Alias of adAccountId, kept for existing callers

Responses

Success· the request worked

Errors· the request failed

POST/v1/ads/accounts/structured-snippets
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaccounts.addAccountStructuredSnippets({  body: {    accountId: 'account_abc123',    structuredSnippets: [      {        header: 'Amenities',        values: [          'string',        ],      },    ],  },});console.log(data);
{  "customerId": "string",  "structuredSnippets": [    {      "assetId": "string",      "header": "Amenities",      "values": [        "string",        "string",        "string"      ]    }  ]}
OpenAPI specification
Was this page helpful?