List campaign negative lists
Lists the shared negative keyword lists attached to a Google campaign, separate from its own campaign-level negatives.
Google Ads shared negative keyword lists (shared_set type NEGATIVE_KEYWORDS). Reads are cached for 10 minutes; quota exhaustion may return the last successful result for up to 7 days with stale=true. Customer selection is limited to this connection and its account scope.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Google campaign id.
^\d+$Query Parameters
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.adcampaigns.listCampaignNegativeKeywordLists({ path: { campaignId: 'campaign_abc123', },});console.log(data);{ "lists": [ { "id": "1234567890", "resourceName": "customers/9122445560/sharedSets/1234567890", "name": "Excluded searches", "memberCount": 2, "referenceCount": 1 } ], "customerId": "9122445560", "cachedAt": "2026-09-09T10:00:00Z", "stale": false}Replace campaign-level negative keywords
Replaces a Google campaign's full list of campaign-level negative keywords, or clears it. Replaces the FULL set of campaign-level negative keywords (C.270): the desired list is diffed against what Google already has, and the difference is applied as one `create`/`remove` mutate. Send an empty array to clear every campaign negative. The platform is always discovered from the campaign itself; a non-Google campaign returns 501 rather than 404, whether or not `platform` was sent.
Replace campaign negative lists
Sets exactly which shared negative keyword lists apply to a Google campaign, or detaches them all, without changing the lists themselves. Send listIds=[] to detach all negative keyword lists. Only campaign_shared_set links are changed; the lists and their keywords are preserved. Every list must belong to the campaign customer and have type NEGATIVE_KEYWORDS.