Remove a Performance Max asset group
Removes the asset group on Google (status REMOVED, not reversible). Pass validateOnly=true to validate without removing.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
^\d+$^\d+$Query Parameters
falseResponse 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.removeGoogleAssetGroup({ path: { campaignId: 'campaign_abc123', assetGroupId: 'assetgroup_abc123', },});console.log(data);{ "assetGroupId": "string", "removed": true, "validateOnly": true}Get a Performance Max asset group
One asset group with its linked assets, ad strength, primary status and listing-group tree. Uses a 10-minute cache, served stale when Google quota is exhausted; any write below clears it.
Replace an asset group's listing-group tree
Replace the product (listing-group) tree of a Performance Max retail asset group. The current tree is removed and the new one created in one atomic request. Read the current tree with GET on the asset group. Requires a campaign linked to Merchant Center; other campaigns return 400 LISTING_SOURCE_NOT_ALLOWED from Google. validateOnly: true validates without writing.