List Google Ads recommendations
Google's optimization recommendations for one ad account: type, estimated impact (base vs potential metrics, cost in account currency units), the campaign, ad group or budget they target, and the type-specific payload Google returns (details, in Google's own shape with micros). Filter by campaignId and types. Cached for 10 minutes and cleared by apply or dismiss; served stale when Google quota is exhausted.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
Google ads SocialAccount id.
Google customer id, digits only. Defaults to the connection's only customer.
Alias of adAccountId, kept for consistency with other Google endpoints.
Only recommendations targeting this campaign.
^\d+$Comma-separated Google RecommendationType values, for example CAMPAIGN_BUDGET,KEYWORD,SET_TARGET_CPA.
Response 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.listGoogleRecommendations({ query: { accountId: 'account_abc123', },});console.log(data);{ "adAccountId": "string", "recommendations": [ { "resourceName": "string", "id": "string", "type": "string", "dismissed": true, "campaignId": "string", "campaignIds": [ "string" ], "adGroupId": "string", "campaignBudgetId": "string", "impact": { "base": { "impressions": 0, "clicks": 0, "cost": 0, "conversions": 0, "conversionsValue": 0, "videoViews": 0 }, "potential": { "impressions": 0, "clicks": 0, "cost": 0, "conversions": 0, "conversionsValue": 0, "videoViews": 0 } }, "details": {} } ], "cachedAt": "2019-08-24T14:15:22Z", "stale": true}Update portfolio bid strategy
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.
Apply Google Ads recommendations
Apply up to 100 recommendations. This changes the account (budgets, bidding, keywords, assets) and is not reversible or idempotent; Google offers no validate-only mode for it. Items run in partial-failure mode, so one stale recommendation does not block the rest. `parameters` is optional and takes exactly one key named for the recommendation type, in Google's ApplyRecommendationOperation shape (for example `campaignBudget: { newBudgetAmountMicros }` or `keyword: { matchType, cpcBidMicros }`); omit it to apply Google's suggested values.