Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Tags
Overview
Davinci Commerce Programmable Personalization API allows users to generate and manage tags which are then placed on websites. These tags fetch ads served by the Davinci Commerce Server. Tags can also be bundled with various trackers and DSP macros.
Method Name | Method Type | Description |
|---|---|---|
Get Tags | GET | Gets tags for a given media plan under a particular user account. |
List Media Plans | GET | Gets media plans for a given user account. |
Generate Tags | POST | Creates tags for a given media plan. |
Get Trackers | GET | Gets trackers for a particular media plan. |
Update Trackers | PUT | Updates trackers for a particular media plan used in a given campaign. |
Create Media Plans | POST | Creates media plans for a given user account |
Update Media Plans | PUT | Updates media plan for a given user account |
Get Tag Details | GET | Gets details of a particular tag for a given user account. |
Get Latest Tag | GET | Gets the latest tag generated for a given user account. |
Get List of Campaigns for a Media Plan | GET | Get list of campaigns associated with a given media plan. |
Get Media Plan Details | GET | Get details of a particular media plan. |
Get Tags
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account. |
Sample Request
Since this API needs an additional parameter, the path should be one of the following:
Note that based on the above 1, 2 and 3 scripts given:
API 1 will return all tags ever generated for that mediaPlan
API 2 will return the latest tag generated for each combo of site and placement in the mediaPlan
API 3 will return all the tags generated for a specific generation request (this request should have returned a tagId that should be passed here).
Sample Response
List Media Plans
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform |
Sample Request
Sample Response
Generate Tags
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account |
Sample Request
Request Body
Sample Response
Get Trackers
To get list of trackers for the selected campaignId.
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account |
campaignId | string | Mandatory | path | ID of the campaign created under a given user account on the platform. |
Sample Request
Sample Response
Update Trackers
To update trackers for the selected campaignId. PUT call replaces all trackers, while PATCH call appends trackers (ignoring duplicates).
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account |
campaignId | string | Mandatory | path | ID of the campaign created under a given user account on the platform. |
Sample Request
Request Body
Sample Response
Create Media Plan
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
Sample Request
Request Body Type 1
Request Body Type 2
The “ externalSiteId ” and “externalPlacementId” fields are optional parameters.
Sample Response
Update Media Plan
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
groupId | string | Mandatory | path | ID of the media plan created under a given user account. |
Sample Request
Request Body Type 1
Request Body Type 2
The “ externalSiteId ” and “externalPlacementId” fields are optional parameters.
Sample Response
Get All Tags
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account. |
Sample Request
This api will return all tags that have been generated for this mediaPlan.
Sample Response
Get Latest Tag
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account |
Sample Request
This API will return the latest tag that has been generated for every combination of site & placement in this mediaPlan.
Sample Response
Get List of Campaigns for a Media Plan
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account |
Sample Request
Sample Response
Get Media Plan Details
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account. |
Sample Request
Sample Response