Upsert trackings
const url = 'https://portal.staging.arago-tech.com/trackings';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"trackings":[{"id":"63e2d42a27ad5f2b345ca123","double_trackings":[{"source_url":"example","url":"example","type":"DOUBLE_TRACKING_TYPE_UNSPECIFIED","vendor_id":1}]}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://portal.staging.arago-tech.com/trackings \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "trackings": [ { "id": "63e2d42a27ad5f2b345ca123", "double_trackings": [ { "source_url": "example", "url": "example", "type": "DOUBLE_TRACKING_TYPE_UNSPECIFIED", "vendor_id": 1 } ] } ] }'Creates or updates multiple trackings
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Request to upsert trackings
Request to upsert trackings
object
List of trackings to upsert
Tracking details for upsert
object
The tracking unique identifier. If not provided, a new tracking will be created.
Example
63e2d42a27ad5f2b345ca123The third party trackers fired alongside the ad. The url and vendor_id of each entry are generated from the source URL and ignored on input
object
Url is server generated, ignored on input.
DoubleTrackingType represents the type of double tracking mechanism.
Vendor_id is server generated, ignored on input.
Responses
Section titled “ Responses ”A successful response.
Response containing the upserted trackings
object
List of trackings
The tracking information referenced by line items
object
The tracking unique identifier in hexadecimal format
The third party trackers fired alongside the ad. The url and vendor_id of each entry are generated from the source URL and ignored on input
object
Url is server generated, ignored on input.
DoubleTrackingType represents the type of double tracking mechanism.
Vendor_id is server generated, ignored on input.
Provider_id is server generated, ignored on input.
The creation date and time of the tracking
The last update date and time of the tracking
Example
{ "trackings": [ { "id": "63e2d42a27ad5f2b345ca123", "double_trackings": [ { "type": "DOUBLE_TRACKING_TYPE_UNSPECIFIED" } ], "created_at": "2021-01-01T00:00:00Z", "updated_at": "2021-01-01T00:00:00Z" } ]}Bad request
object
Example
{ "error": { "code": "BAD_REQUEST", "details": [ { "code": "MAX_ITEMS", "field": "line_items", "message": "value must contain no more than 3000 item(s)", "params": { "max": "3000" } } ], "message": "Bad request" }}Unauthorized
object
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Unauthorized" }}Internal server error
object
Example
{ "error": { "code": "INTERNAL_ERROR", "message": "Internal server error" }}default
Section titled “default”An unexpected error response.
object
object
Examplegenerated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}