List campaign assets
Lists the sitelinks, callouts and other assets attached directly to a Google campaign.
Fresh reads are cached for 10 minutes; exhausted quota may return the last successful read with stale=true. Inherited assets are not included.
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+$Response 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.listCampaignAssets({ path: { campaignId: 'campaign_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{ "campaignId": "string", "sitelinks": [ { "assetResourceName": "string", "campaignAssetResourceName": "string", "text": "string", "linkUrl": "http://example.com", "description1": "string", "description2": "string" } ], "callouts": [ { "assetResourceName": "string", "campaignAssetResourceName": "string", "calloutText": "string" } ], "structuredSnippets": [ { "assetResourceName": "string", "campaignAssetResourceName": "string", "header": "string", "values": [ "string" ] } ], "images": [ { "assetResourceName": "string", "campaignAssetResourceName": "string", "imageUrl": "http://example.com", "width": 0, "height": 0 } ], "cachedAt": "2019-08-24T14:15:22Z", "stale": true}Pause or resume many campaigns
Pauses or resumes up to 50 campaigns in one call, with a separate result per campaign so one failure does not block the rest. Each campaign is updated concurrently and the response contains a per-campaign result so a single bad row does not fail the whole batch. Each campaign is read, written and re-read exactly as PUT /v1/ads/campaigns/{campaignId}/status describes: only the campaign's own switch is written, never its ad sets' or ads'. `updated` / `skipped` count campaigns.
Attach campaign assets
Adds sitelinks, callouts, structured snippets and images to a Google campaign in one step. Creates and attaches sitelinks, callouts, structured snippets and image assets in one Google mutation. Google shows images only on accounts it deems eligible (account age, policy history, vertical).