Read a campaign's current bidding
Changed onShows a Google campaign's current bidding strategy and targets, ready to prefill an edit.
Reads the campaign's bidding strategy on Google, cached for the quota window, for pre-filling the bid strategy block before a PUT to /v1/ads/campaigns/{campaignId}.
Google Ads only. platform is required and rejected when it is anything else, since a campaignId is not globally unique.
The response carries cachedAt and stale, set when a quota-exhausted call falls back to the last-good copy instead of a live read.
Strategy mapping
Maps Google's bidding strategy onto the same triplet PUT accepts:
- LOWEST_COST_WITHOUT_CAP: Maximize Conversions, no target
- COST_CAP + bidAmount: Target CPA
- LOWEST_COST_WITH_MIN_ROAS + roasAverageFloor: Target ROAS
- LOWEST_COST_WITH_BID_CAP + bidAmount: Maximize Clicks with a CPC ceiling
A campaign on a portfolio strategy returns portfolio (id + name) and bidSpec.portfolioBidStrategyId instead of the triplet.
Anything else (Manual CPC, Target Impression Share, ...) returns bidSpec: null; show biddingStrategyType as-is.
Request
- Base URLhttps://zernio.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Numeric Google platform campaign id.
Query parameters
Zernio Google Ads SocialAccount id: resolves the customer id + refresh token.
Required: campaign IDs are not globally unique. Only "google" is supported today.
Platform ad account ID (Google customer ID, digits only). Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one.
Alias of adAccountId, kept for existing callers
Response
Campaign bidding
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- warning
added the new
accountenum value to the/response property for the response status - warning
added the new
accountenum value to the/response property for the response status - warning
added the new
accountenum value to the/response property for the response status
- warning