Add an event destination
Saves an ad platform destination for a profile, so events sent to POST /v1/events for that profile are forwarded
to it. Pick destinationId from GET /v1/accounts/{accountId}/conversion-destinations. Set eventNames to forward
only those events (for example only Purchase); leave it out to forward every event.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
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.conversions.createEventDestination({ body: { profileId: 'profile_abc123', accountId: 'account_abc123', destinationId: 'destination_abc123', },});console.log(data);{ "destination": { "id": "string", "profileId": "string", "accountId": "string", "destinationId": "string", "eventNames": [ "string" ], "createdAt": "2019-08-24T14:15:22Z" }}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`.
Get a conversion destination
Shows one LinkedIn conversion rule with its full settings. LinkedIn-only today. Returns the full destination record for one conversion rule. The `adAccountId` query parameter is required because LinkedIn rules are scoped to a sponsored ad account.