Bulk submit S2S conversions
Overview
When manually integrating server to server tracking, you have 2 options:
- Use the postback URL to submit each conversion separately.
- Use the
bulk-s2s-actionendpoint (described on this page) to submit a batch of S2S conversions in a singlePOSTrequest.
A quick comparisonPostback URL:
https://trc.taboola.com/actions-handler/log/3/s2s-action?click-id=CLICK_ID&name=EVENT_NAME...Invoke once for each conversion (using a simple
GETrequest).Bulk submit endpoint:
POST https://trc.taboola.com/{account-id}/log/3/bulk-s2s-actionInvoke via a
POSTrequest, passing a batch of conversions as aJSONobject. (See the example below).
First steps
Before you can invoke the bulk-s2s-action endpoint, you need to perform the relevant set-up in Realize, just as you would for the regular postback URL.
For more information, see: S2S Manual Integration > Realize
The endpoint
POST https://trc.taboola.com/{account-id}/log/3/bulk-s2s-action
Content-Type: application/jsonPath param
| Name | Modifiers | Type | Description |
|---|---|---|---|
account-id | Required | Long | Your numeric Taboola Account ID - e.g. 123456. |
Guidelines
- Submit a request body with a
JSONobject (see the example below).- No authentication is passed.
The network accountYou can pass your Taboola Network Account ID. In that case, the request body should contain conversions across your various sub-accounts.
Request body
The request body contains a JSON object with a single actions property, containing an array of objects. Each object in the array contains the following fields:
Fields
Name | Modifiers | Type | Description |
|---|---|---|---|
| Required | String (Case-sensitive) | The Taboola Click ID, as passed by Taboola to your landing page. (A sample Click ID value is provided below.) |
| Required | Long | Milliseconds since Unix Epoch - e.g. |
| Required | String (Case-sensitive) | The event name, as defined in Realize. (Refer to the |
| Optional | Float | The revenue amount - e.g. |
| Optional | String (Case-sensitive) | The A list of supported values is provided below. |
| Optional | Integer | The item quantity for the order - e.g. |
| Optional | String | An Order ID - e.g. an Order ID assigned by your CRM for this conversion. |
An example
POST https://trc.taboola.com/123456/log/3/bulk-s2s-action
Content-Type: application/json{
"actions": [
{
"timestamp": 1620723457405,
"click-id": "GiCsfhikbv6Ov6YdzFR8_JyZp76Rxqey1Lu0AQ",
"name": "LEAD"
},
{
"timestamp": 1620723457410,
"click-id": "GiCsfhikbv6Ov6YdzFR8_JyZp76Rxqey1Lu0AQ",
"name": "PURCHASE"
}
]
}
Content-Typeisapplication/json. No authentication is passed.
204 No ContentThe response
Each request returns
204with an empty body. This indicates only that Taboola received the request and is processing it. (It does not indicate that valid data was received.)
Processing occurs asynchronously, and no further response is sent by the server. If a given record fails, processing resumes with the next record. If invalid data was submitted (e.g. badly-formed JSON), no action is taken.
At this time, the param values in bulk submit requests are not validated.
Updated 2 months ago
