Davinci Dynamic APIs

Davinci enables developers to use APIs to access dynamic data for use in personalized ads. These APIs can return data from asset sources or from Davinci system data signals.

There are three APIs available to work with Dynamic Data in Davinci:

  • getDynamicData This API returns the values of dynamic data signals for an ad impression.
  • getDynamicService This API provides more sophisticated options to look up one or more asset sources.
  • dynamicDataCallback This API provides the most flexible set of options to look up asset sources.

API Usage Guidelines

To use any of these APIs:

1- Include a reference to the Davinci APIs as the first line in the section of the primary HTML or JavaScript file:

Javascript
Copy

2- Call these APIs within the initiate() method as a top-level function in the Javascript code.

API Response Format

Dynamic data is returned by the system as a JSON Object. The lookup from any asset source is returned as an Array within this object. The rest of this document describes the dynamic APIs in detail.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard