Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Feed-based decisioning
Davinci Commerce Programmable Personalization API exposes the lists and details of Feed used by the platform. Feed based Decisioning is a dynamic expression which is built upon a single or multiple asset sources and allows the user to query the asset sources where the result of the said query can be used as a Feed based Decisioning value in the decision graph.
Methods
Action | Method Type | Description |
|---|---|---|
POST | Creates feed based decisioning expression using single or multiple assets with a configuration object specifying conditions, filters and joins to be applied on the asset sources, returning a unique identifier for the expression. | |
GET | Lists all the feed based decisioning expressions created under an account. | |
GET | Lists a single feed based decisioning expression corresponding to an expression ID, which is the unique identifier for the expression. | |
GET | Provides the configuration object that consists of conditions, filters and joins to be applied on the asset sources that are being used in an expression for a given expression ID, which is the unique identifier for the expression. | |
PUT | Updates feed based decisioning expression using single or multiple assets with a configuration object specifying conditions, filters and joins to be applied on the asset sources, returning a unique identifier for the expression. | |
POST | This API associates a feed based decisioning expression with a campaign for a given expression ID and Campaign ID. | |
POST | Returns preview of the queried result from asset sources with the drafted feed based decisioning expression applied before saving the expression | |
POST | Saves the draft of feed based expression | |
GET | Lists all the campaigns that are associated with the given feed based decisioning expression | |
GET | Lists all the feed based decisioning expressions that are using the given asset source for decisioning. |
Create Feed Based Decisioning
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
Sample Response
List Feed Based Decisioning for an account
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
Get Feed Based Decisioning for an Expression ID
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
expressionId | string | Mandatory | path | Unique ID assigned to the feed based decision expression. |
Sample Request
Sample Response
GET Configuration for Feed Based Decisioning
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
expressionId | string | Mandatory | path | Unique ID assigned to the feed based decision expression. |
Sample Request
Sample Response
Update Feed Based Decisioning
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
expression Id | string | Mandatory | path | Unique ID assigned to the feed based decision expression. |
Sample Request
Query Parameters
isPreview=true : 4
i) Optional query param with default value as false
ii) True when a preview needs to be saved as final smartlist expression
Request Body
Sample Response
Save Feed Based Decisioning for a Campaign
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
expression Id | string | Mandatory | path | Unique ID assigned to the feed based decision expression. |
campaignId | string | Mandatory | path | ID of the campaign created under a given user account on the platform. |
Sample Request
Sample Response
Fetch preview of Feed Based Decisioning
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
expression Id | string | Mandatory | path | Unique ID assigned to the feed based decision expression. |
Sample Request
Request Body
Sample Response
Save preview of Feed Based Decisioning
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
expression Id | string | Mandatory | path | Unique ID assigned to the feed based decision expression. |
Sample Request
Request Body
Sample Response
Get Campaigns for Feed Based Decisioning
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
expression Id | string | Mandatory | path | Unique ID assigned to the feed based decision expression. |
Sample Request
Sample Response
Get expressions associated with an Asset Source
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
dataService Id | string | Mandatory | path | It is a unique identifier for asset sources. |
Sample Request
Sample Response