Pause or enable a Search keyword
Changes ad_group_criterion.status for one keyword criterion (M.140).
Negative keywords have no status on Google and cannot be paused or enabled.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Zernio keyword ID (not the Google criterion ID)
"active" | "paused"Response 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.updateAdKeyword({ path: { keywordId: 'keyword_abc123', }, body: { status: 'active', },});console.log(data);{
"keyword": {
"id": "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,
"syncedAt": "2019-08-24T14:15:22Z",
"metrics": {
"windowDays": 0,
"clicks": 0,
"impressions": 0,
"cost": 0,
"conversions": 0,
"firstPageCpc": 0,
"firstPositionCpc": 0
}
}
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}Replace campaign-level negative keywords PUT
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.
List a catalog's product sets GET
Lists a Meta product catalog's product sets — the unit a catalog ad promotes. Pass the chosen set as `promotedObject.productSetId` on POST /v1/ads/create with `goal: catalog_sales`.