List Search keywords
Lists the keywords and negative keywords in your Google Search ad groups.
Returns the Google Search keyword criteria (positive and negative) synced from connected Google Ads accounts, one row per ad-group keyword. Refreshed about once a day per Google Ads customer (the keyword sweep rides the ads discovery pass on a slower slot), so keywords added on Google can take up to a day to appear. A customer synced for the first time is populated on the next discovery pass rather than waiting for its daily slot, and connecting an account or triggering a manual sync refreshes it immediately. Campaign-level negative keywords are not included; only ad-group-level criteria are.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
Page number (1-based)
1 <= value11 <= value <= 50050Account ID
Platform ad account ID (Google customer ID). Mirrors the same filter on /v1/ads.
Profile ID
Platform campaign ID
Platform ad group ID (Google ad group)
Keyword criterion status
Value in
- "active"
- "paused"
Accepted in any case.
Value in
- "exact"
- "phrase"
- "broad"
- "unknown"
true = negative keywords only, false = positive only. Omit for both.
Case-insensitive substring match on the keyword text
length <= 200Response Body
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.listAdKeywords();console.log(data);{ "keywords": [ { "id": "string", "platformCriterionId": "string", "resourceName": "string", "accountId": "string", "profileId": "string", "platform": "google", "adAccountId": "string", "campaignId": "string", "campaignName": "string", "campaignStatus": "string", "adSetId": "string", "adSetName": "string", "adSetStatus": "string", "keyword": "string", "matchType": "exact", "status": "active", "negative": true, "qualityScore": 0, "quality": { "score": 0, "expectedCtr": "BELOW_AVERAGE", "adRelevance": "BELOW_AVERAGE", "landingPageExperience": "BELOW_AVERAGE" }, "syncedAt": "2019-08-24T14:15:22Z", "metrics": { "windowDays": 0, "clicks": 0, "impressions": 0, "cost": 0, "conversions": 0, "firstPageCpc": 0, "firstPositionCpc": 0 } } ], "pagination": { "page": 0, "limit": 0, "total": 0, "pages": 0 }}Pause or resume a single ad
Pauses or resumes a single ad without touching its ad set, campaign or sibling ads. Ad-scoped pause/resume: flips ONLY this ad's own switch (Meta `configured_status`, TikTok `operation_status`, Google ad group ad status, LinkedIn creative, Pinterest ad, Reddit ad `configured_status`), never its parent ad set or campaign, so sibling ads keep running. X is the exception: its smallest switch is the line item. Thin wrapper over the `status` field of PUT /v1/ads/{adId}, for callers that want a URL symmetric to /v1/ads/campaigns/{campaignId}/status and /v1/ads/ad-sets/{adSetId}/status. The ad's own switch is independent of its delivery status. An ad paused only because its campaign or ad set is off (`status: paused`, `configuredStatus: ACTIVE`) can still be switched off here, and switching an ad on under a paused campaign leaves it `paused` until the campaign is resumed. After the write the switch is read back from the platform and returned as `configuredStatus`, together with the resulting delivery `status`. `{adId}` accepts the same identifier dialects as GET/PUT /v1/ads/{adId} (Zernio hex `_id`, Meta numeric `platformAdId`, or the creative's effective story/media IDs). `platform` is inferred from the ad, so it's not required in the body. Ads in terminal statuses (rejected, completed, cancelled) are skipped, and so is a request whose target already matches the ad's own switch as read LIVE from the platform (a stored value is never trusted alone, since the switch may have been changed in the platform's own UI). A skip also returns that live read. The rolled-up `status` never decides a skip.
Add Search ad-group keywords
Adds keywords, or negative keywords, to a Google Search ad group without replacing the ones already there. Adds one or more keyword criteria to an existing Google Search ad group, without touching the keywords already there (unlike the whole-set diff on `PUT /v1/ads/{adId}`, `keywords`/`negativeKeywords` in `platformSpecificData`, which replaces the set). Set `negative: true` to add ad-group-level negatives instead of positive keywords.