Create custom conversion
Changed onCreates 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".
Request
- Base URLhttps://zernio.com/api
- AuthHTTP bearer
Request body
Response
An existing custom conversion was reused
Changes
- info
endpoint added
- info