Davinci Reporting APIs

User events that are tracked using Davinci ad widgets return metrics such as click-through to the Davinci platform. The Davinci Reporting API provides a systematic interface for integrating these Davinci metrics with a publisher's dashboard of metrics. The Reporting API allows an application to query the Davinci platform using an HTTP Post request. The response includes advertiser and ad data formatted in XML. For details on each API, see:

API Access

Note that for all APIs:

1- All parameters are passed as HTTP POST

2- For authentication the following parameters are passed with each call:

  • apiId — ID of the API
  • apiKey — Authentication key.
  • apiVersion — Version number of the API for which Authentication key is generated.
  • publisherId — ID of the affiliate for which Authentication key is generated.

3- The requests are made to the Davinci reports server referred to as in the rest of this document.

When a Davinci client first requests access to Reporting APIs, Davinci Support provides:

  • API authentication parameters
  • Davinci reports server

Server Failure Response

In case of failure for any API lookup, the following response is returned:

Javascript
Copy

The error codes in the failure response are outlined below:

CodeDescription
100Internal server error, try the request again later
200Authentication failed
300The URL request included invalid API arguments
400API servers are currently down for maintenance or upgrade; try the request again later
500Advertiser was not found
600Invalid input, specifically invalid date or date format
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard