Davinci Commerce API Documentation
v1.0
GenAI & Template Generation
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Carousel API
AI Tools
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
Overview
Davinci Commerce Programmable Personalization API supports carousel dynamic ad creation. Our omni channel capability ensures ad formats across multiple channels are supported: Video, Banners, Mobile, Social, Native.
| Method Type | Description |
|---|---|
| GET | To get all the carousel cards for a particular campaign. |
If the requested card is n, then there should be n default rows in the asset source. For example, if you are requesting four cards, then you should have minimum four default rows present in your asset source.
GET Carousel
Parameters
| Name | Data Type | Requirement | Parameter Type | Description |
|---|---|---|---|---|
| callback | string | Mandatory | -- | pass the call back function name as value |
| ccards | number | Mandatory | path | cards is the number of carousel cards |
Sample Implementation
The function call jvxAd.getCarousel(ccards, callback); will invoke the Get Carousel wrapper API function.
Sample Request
Javascript
<script> function initiate() { jvxAd.getCarousel(2, 'myCallback') } function myCallback(resp) { console.log(resp); } </script>Sample Response
Javascript
xxxxxxxxxx{ "trackers": {}, "data": { "Carousel-Asset": [ { "Product_Image": "http://cdn.jivox.com/files/60344/Products Test/ClifBars.jpg", "_jvxRtnGroup": "rg1", "Product_Price": "$6", "_assetKey": "Product_6", "City": "Seattle", "_jvxRtnWeight": 0, "Rotation Group": "RG1" }, { "Product_Image": "http://cdn.jivox.com/files/60344/Products Test/ChickenBroth.jpg", "_jvxRtnGroup": "rg1", "Product_Price": "$5", "_assetKey": "Product_5", "City": "Seattle", "_jvxRtnWeight": 0, "Rotation Group": "RG1" } ] }, "reporting-key": "Product_6::Product_5", "selected-rule": "_Default_", "segment-name": "_Default_", "carousel-card": [ { "icon": "http://cdn.jivox.com/files/60344/Products Test/ClifBars.jpg", "card-reporting-key": "Product_6" }, { "icon": "http://cdn.jivox.com/files/60344/Products Test/ChickenBroth.jpg", "card-reporting-key": "Product_5" } ]}VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Cloud Servicesnull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message