Edit a Google campaign's device, location, or language targeting
Google Ads compliance row M.10: geo and language targeting set at
creation must stay editable afterwards. Send at least one of devices,
locations, languages; each provided field REPLACES that field's
existing criteria on the campaign (a full set, not a delta). Fields left
out of the body are untouched. Google only; every other platform returns
501.
locations accepts the same shapes as campaign creation: a bare array of
ISO country codes, or an object with countries/regions/cities/zips/metros
key lists (key from GET /v1/ads/targeting/search?dimension=geo). Negative
(excluded) locations are left untouched by this endpoint.
languages is an array of Google's language codes (ISO 639-1, plus variants
such as zh_CN); an unknown code returns 400.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Google platform campaign ID
"google"1 <= propertiesResponse 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.updateCampaignTargeting({ path: { campaignId: 'campaign_abc123', }, body: { platform: 'google', targeting: { devices: [ 'MOBILE', ], locations: [ 'string', ], languages: [ 'string', ], }, },});console.log(data);{
"campaignId": "string",
"updated": [
"devices"
]
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}Update a Google Ads portfolio bid strategy PATCH
Renames or retargets a portfolio bid strategy. The strategy's status is output only on Google's side, so it cannot be changed here; remove a strategy in Google Ads. `type` is only needed alongside `targetCpa`/`targetRoas` to disambiguate the field Google writes to (TARGET_CPA and MAXIMIZE_CONVERSIONS both take a target CPA; TARGET_ROAS and MAXIMIZE_CONVERSION_VALUE both take a target ROAS); the strategy's family is otherwise immutable once created.
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`.