Delete a negative keyword list
Deletes a shared Google Ads negative keyword list; detach it from every campaign first.
Detach it from all campaigns first; an in-use list is rejected. Only NEGATIVE_KEYWORDS shared sets are supported.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Google shared set id.
^\d+$Query Parameters
Zernio SocialAccount 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+$Optional courtesy field. The resolved account or campaign determines support; other platforms return 501.
Value in
- "facebook"
- "instagram"
- "tiktok"
- "linkedin"
- "pinterest"
- "google"
- "twitter"
- "openai"
- "reddit"
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.adaccounts.deleteAdNegativeKeywordList({ path: { listId: 'list_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{ "removed": true, "customerId": "9122445560"}Rename a negative keyword list
Renames a shared Google Ads negative keyword list without changing its keywords or the campaigns using it. Keywords and campaign associations are unchanged. Use the keywords endpoint to edit the desired keyword set.
Replace negative list keywords
Replaces all keywords in a shared Google Ads negative keyword list (or clears it), affecting every campaign that uses the list. Existing keywords are diffed by normalized text and match type; creates and removals are applied atomically in one mutation. Unchanged criteria retain their ids. Send an empty keywords array to clear the list. Changes affect every campaign using this list. Each create or removal consumes one daily operation; the entire batch must fit the remaining quota.