Conversions

Add a forwarding rule

Changed on

Saves where a profile's events go: every event sent to POST /v1/events for that profile is then forwarded to this destination.

Pick destinationId from GET /v1/ads/conversions/destinations. Set eventNames to forward only those events, such as only Purchase; leave it out to forward every event.

post/v1/events/forwarding-rules

Request

  • Base URL
    https://zernio.com/api
  • Auth
    HTTP bearer

Request body

profileIdstring required
accountIdstring required

Connected ads account ID that owns the destination.

destinationIdstring required

The platform destination: a pixel, a conversion action, a conversion rule, or a GA4 web stream measurement id (G-…).

eventNamesstring[]
sourcesstring[]

Forward only events from these sources, such as only web for a tracked website. Leave it out to forward events from every source.

apiSecretstring

Google Analytics streams only: the stream's Measurement Protocol API secret (GA4 Admin › Data streams). Optional when the connection has edit access, since Zernio then creates it. Checked against Google's validation server, stored encrypted, never returned. Change it with PATCH /v1/events/forwarding-rules/{ruleId}.

Response

Rule saved.

Changes

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status

    • warning

      added the new stripe enum value to the // response property for the response status

    • info

      added the new stripe enum value to the request property /