OverviewProductsPlatformsAPI ReferenceResources
Accounts & Ops

Create a negative keyword list

POSThttps://zernio.com/api/v1/ads/accounts/negative-keyword-lists

Creates a shared Google Ads negative keyword list, optionally with starting keywords; it is not attached to any campaign yet.

Creates one Google Ads shared negative keyword list with optional initial keywords in a single atomic mutation. Daily quota is reserved for every mutate item, so large batches may return 429 before any change. This operation is not idempotent. The list is not attached to any campaign.

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 SocialAccount id.

namestring, max 255Required

Nonempty list name, trimmed before use.

Optional parameters4 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

platformstringOne of facebook | instagram | tiktok | linkedin | pinterest | google | twitter | openai | reddit

Optional courtesy field. The resolved account or campaign determines support; other platforms return 501.

keywordsarray of KeywordEntry

Full desired keyword set. Bare strings use broad match. Send [] to clear the list.

Responses

Success· the request worked

Errors· the request failed

POST/v1/ads/accounts/negative-keyword-lists
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaccounts.createAdNegativeKeywordList({  body: {    accountId: 'account_abc123',    name: 'Example',  },});console.log(data);
{  "id": "1234567890",  "resourceName": "customers/9122445560/sharedSets/1234567890",  "created": 2,  "customerId": "9122445560"}
OpenAPI specification
Was this page helpful?