Create conversion action
Creates a Google Ads conversion action: a website one counted by a tag on your site, or one counted from the conversions you send to Zernio.
type: WEBPAGEcreates a website action and returns it with the tag snippets to install, read back after creation since Google never returns them on the create response itself.type: UPLOAD_CLICKScreates an action for the conversions sent withPOST /v1/events, the same actionPOST /v1/ads/conversions/destinationscreates. It is secondary unlessprimaryForGoal: true.
The category defaults to DEFAULT. A name already used by another action returns Google's error.
Clears the cached list that GET on this resource would otherwise keep serving.
Google-only; other platforms return 501. Requires the Ads add-on.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Body
application/jsonWhat every request needs
SocialAccount ID. Must be a googleads account.
WEBPAGE | UPLOAD_CLICKSWEBPAGE for a website tag, UPLOAD_CLICKS for the conversions you send to Zernio.
Optional parameters10 fields
Platform ad account ID (Google customer ID, digits only). Resolved automatically when the connection has exactly one accessible customer.
Alias of adAccountId, kept for existing callers
Default conversion value used when an event doesn't carry its own value.
When true, always use defaultValue and ignore any value sent with the event. Defaults to true when defaultValue is set.
DEFAULT | PAGE_VIEW | PURCHASE | SIGNUP | DOWNLOAD | ADD_TO_CART | BEGIN_CHECKOUT | SUBSCRIBE_PAID | PHONE_CALL_LEAD | IMPORTED_LEAD | SUBMIT_LEAD_FORM | BOOK_APPOINTMENT | REQUEST_QUOTE | GET_DIRECTIONS | OUTBOUND_CLICK | CONTACT | ENGAGEMENT | STORE_VISIT | STORE_SALE | QUALIFIED_LEAD | CONVERTED_LEADconversion_action.category. Defaults to DEFAULT on create.
ONE_PER_CLICK | MANY_PER_CLICKONE_PER_CLICK counts one conversion per ad click (leads); MANY_PER_CLICK counts every one (purchases).
ISO 4217 currency of defaultValue (value_settings.default_currency_code).
Days after an ad click a conversion still counts.
Days after an ad view a view-through conversion still counts.
true = primary (counts toward bidding when its goal is biddable), false = secondary. Defaults to secondary for UPLOAD_CLICKS.
Responses
Success· the request worked
Errors· the request failed
Create custom conversion
Creates a Meta custom conversion for ads to optimise toward, reusing an existing one with the same name and pixel. It provisions the Meta custom conversion an ads flow optimises toward, and hands back the `customConversionId` for `promotedObject.customConversionId` on POST /v1/ads/create. This removes the manual "create it in Ads Manager first" step. ### Reuse is ours, not Meta's Meta's create is not idempotent, so a retried request would otherwise mint a duplicate carrying none of the original's optimisation history. A non-archived conversion with the same `name` on the same `pixelId` is returned instead of created, with `reused: true` and a 200 rather than a 201. ### Rule `rule` is forwarded verbatim in Meta's own grammar (e.g. `{"url": {"i_contains": "thank-you"}}`). Meta validates it and rejects a malformed one with "A conversion rule is required at creation time".
Create a custom conversion goal
Creates a Google Ads custom conversion goal from a set of conversion actions, so a campaign can bid on just those. Creates a custom conversion goal from conversion action ids. Point a campaign at it with `PATCH /v1/ads/campaigns/{campaignId}/conversion-goals`.