Remove ad-group assets
Detaches assets from a Google ad group without deleting them, so they stay in the account and on anything else they are attached to.
Google assets cannot be deleted. Other attachments remain. assetResourceNames is retained for compatibility. Fields go in the query string. A JSON body with the same fields is also accepted and, when sent, the query string is ignored.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Numeric Google platform id.
^\d+$Query Parameters
Zernio Google Ads connection id.
^[a-fA-F0-9]{24}$Platform ad account ID (Google customer ID, digits only). Required when the connection has multiple customers.
^\d+$Alias of adAccountId, kept for existing callers
^\d+$Asset resource names, retained for compatibility. Repeat the parameter or pass a comma-separated list.
1 <= itemsad_group_asset resource names to remove, e.g. customers/1234567890/adGroupAssets/456123CALLOUT. Repeat the parameter or pass a comma-separated list.
1 <= itemsResponse Body
application/json
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.removeAdGroupAssets({ path: { adSetId: 'adset_abc123', }, query: { accountId: 'account_abc123', assetResourceNames: [ 'Example', ], adGroupAssetResourceNames: [ 'Example', ], },});console.log(data);{ "removed": true}Update ad-group assets
Edits a Google ad group's existing assets in place; the change applies everywhere that asset is used. Send updates with assetResourceName and the fields to change. An asset is shared: changes affect every attachment using it. Omitted fields stay unchanged. The operation consumes the Google operations budget and invalidates affected cached lists.
List ads
Lists your ads with their performance over a date range, including ads created directly in each platform's ads manager. Returns a paginated list of ads with metrics computed over an optional date range. Use source=all to include externally-synced ads from platform ad managers. If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max. History: when an ad account connects, Zernio imports its last 90 days of metrics, so the metrics hold no data for days before that. When `accountId` or `adAccountId` resolves to a Meta ad account, a range reaching further back answers `202` with `backfillPending: true` and the covered part while the older days (up to 730 days back) are imported in the background; repeat the request until it returns 200. A request scoped to no Meta account never returns `202`. To find the Zernio ad behind a comment you see in Meta Business Manager, filter by platformAdId (the Meta ad ID), effectiveObjectStoryId (Facebook), or effectiveInstagramMediaId (Instagram). Those are the post/media the ad's engagement lives on, and are also returned on each ad's `creative` object. Then call GET /v1/ads/{adId}/comments with the returned ad id.