Carousel Items
A carousel ad is a single campaign item that holds several cards. Each card has its own landing page, title, and image, and the user can swipe between them.
In the API, a carousel is a parent item of type ITEM_WITH_HIERARCHY. Its cards are listed in hierarchy_data.hierarchy_children. Each card is a regular campaign item object.
Carousel items are created and managed with the standard campaign item endpoints. There is no separate carousel endpoint.
Guidelines
- Carousel ads run in Native campaigns.
- Scheduling fields (
activity_schedule,start_date,end_date) are not supported on the parent item or on its cards.- Lead forms are not supported on carousel items.
- Do not send
creative_typeon the parent item or on its cards.type: ITEM_WITH_HIERARCHYis what makes the item a carousel.creative_typeis read-only for carousels.- The number of cards per carousel is limited (minimum and maximum). If the count is out of range, the API returns HTTP 400 on
hierarchy_data.hierarchy_children.- If
hierarchy_datais not returned for your account, contact your Taboola account manager.
Launch a carousel campaign
A carousel campaign is a regular Native campaign whose ad is a carousel item. There is no separate carousel campaign type.
Step 1: Create a Native campaign
Call Create a campaign. Omit campaign_item_type, or set it to HAS_NO_ITEMS (Native). See Campaign types.
POST /backstage/api/1.0/{account_id}/campaigns/{
"name": "Summer collection - carousel",
"branding_text": "Example Brand",
"cpc": 0.25,
"spending_limit": 1000,
"spending_limit_model": "MONTHLY"
}{
"id": "1234",
"name": "Summer collection - carousel",
...
}Step 2: Add the carousel item
Add the carousel to the new campaign, as described in Create a carousel item. Use the id from step 1 as {campaign_id}.
Add the carousel to a campaign with no other items. A campaign that already contains single (non-carousel) ads or display ads cannot take a carousel item.
Step 3: Track review and delivery
The carousel goes through Taboola's approval process before it runs. Poll Get a campaign item with the parent item's ID and check status:
PENDING_APPROVAL: the carousel is in review.RUNNING: the carousel is approved and running (ifis_activeistrueand the campaign is active).REJECTED: the carousel was rejected. See Item statuses for all values.
The campaign starts delivering once it is active and its carousel item is RUNNING.
Fields
Parent item
| Field | Description |
|---|---|
type | Set to ITEM_WITH_HIERARCHY to create a carousel. |
url | Landing page of the parent item. |
title | (Required) Title of the parent item. |
thumbnail_url | (Required) Image of the parent item. |
hierarchy_data | (Required) Object that holds the cards. See hierarchy_data object. |
Other campaign item fields (for example description, branding_text, cta) are set the same way as on a regular item.
hierarchy_data object
hierarchy_data object| Field | Description |
|---|---|
hierarchy_children | (Required) Array of card objects. Each card is a campaign item object with its own url, title, thumbnail_url, and optional fields such as description and cta. |
fallback_policy | (Optional) The carousel's fallback policy. Possible values: NONE, FIRST_CHILD. |
Card fields (read-only)
| Field | Description |
|---|---|
id | ID of the card, returned after creation. Use it to update the card. |
hierarchy_rep_item_id | ID of the parent item the card belongs to. |
Create a carousel item
Send the parent item, with its cards in hierarchy_data.hierarchy_children, to Create a campaign item. To add the same carousel to several campaigns in one call, send the same item object in items to Bulk create items across campaigns.
Do not include
creative_typein the request. Sending"creative_type": "CAROUSEL"makes the request fail.
POST /backstage/api/1.0/{account_id}/campaigns/{campaign_id}/items{
"type": "ITEM_WITH_HIERARCHY",
"url": "https://advertiser.example.com/landing",
"title": "Discover our summer collection",
"thumbnail_url": "https://advertiser.example.com/images/main.jpg",
"hierarchy_data": {
"fallback_policy": "FIRST_CHILD",
"hierarchy_children": [
{
"url": "https://advertiser.example.com/product-1",
"title": "Lightweight linen shirts",
"thumbnail_url": "https://advertiser.example.com/images/card-1.jpg",
"cta": {
"cta_type": "SHOP_NOW"
}
},
{
"url": "https://advertiser.example.com/product-2",
"title": "Everyday summer sneakers",
"thumbnail_url": "https://advertiser.example.com/images/card-2.jpg",
"cta": {
"cta_type": "SHOP_NOW"
}
},
{
"url": "https://advertiser.example.com/product-3",
"title": "Beach-ready accessories",
"thumbnail_url": "https://advertiser.example.com/images/card-3.jpg",
"cta": {
"cta_type": "LEARN_MORE"
}
}
]
}
}{
"id": "1234567890",
"campaign_id": "1234",
"type": "ITEM_WITH_HIERARCHY",
"title": "Discover our summer collection",
"hierarchy_data": {
"fallback_policy": "FIRST_CHILD",
"hierarchy_children": [
{
"id": "1234567891",
"hierarchy_rep_item_id": "1234567890",
"title": "Lightweight linen shirts",
...
},
{
"id": "1234567892",
"hierarchy_rep_item_id": "1234567890",
"title": "Everyday summer sneakers",
...
},
{
"id": "1234567893",
"hierarchy_rep_item_id": "1234567890",
"title": "Beach-ready accessories",
...
}
]
},
...
}Read a carousel item
Get a campaign item and List campaign items return the parent item with type set to ITEM_WITH_HIERARCHY and its cards in hierarchy_data.hierarchy_children.
Update a carousel item
Send the updated fields to Update a campaign item, using the parent item's ID.
- To update parent fields only, omit
hierarchy_data. The cards are not changed. - To change cards, send the full
hierarchy_childrenarray:- A card with an
idupdates that existing card. - A card without an
idis added as a new card. - An existing card that is not in the array is stopped.
- A card with an
POST /backstage/api/1.0/{account_id}/campaigns/{campaign_id}/items/{item_id}{
"hierarchy_data": {
"hierarchy_children": [
{
"id": "1234567891",
"title": "Lightweight linen shirts - now 20% off"
},
{
"id": "1234567892"
},
{
"url": "https://advertiser.example.com/product-4",
"title": "Sun hats for every style",
"thumbnail_url": "https://advertiser.example.com/images/card-4.jpg"
}
]
}
}In this example, the first card's title is updated, the second card is kept as is, a new fourth card is added, and the third card (1234567893) is stopped.
AI disclosure
For carousel items, set ai_disclosure on each card in hierarchy_children individually, not on the parent item.
Errors
Validation errors return HTTP 400.
| Condition | Offending field | Error message |
|---|---|---|
type is ITEM_WITH_HIERARCHY but hierarchy_data.hierarchy_children is missing | hierarchy_data.hierarchy_children | Missing required field |
| Too few cards | hierarchy_data.hierarchy_children | At least N cards are required |
| Too many cards | hierarchy_data.hierarchy_children | You can select up to N cards in a carousel ad |
Parent item has no title or thumbnail_url | title / thumbnail_url | Missing required field |
activity_schedule, start_date, or end_date sent on the parent or a card | The field sent | Field should be null |
hierarchy_data sent on an item whose type is not ITEM_WITH_HIERARCHY | hierarchy_data | Field should be null |
creative_type set to CAROUSEL in the request | creative_type | Request fails. Omit creative_type |
| Carousel added to a campaign that already has single (non-carousel) ads | type | Carousel ads cannot be added to an existing single ads campaign |
| More than one carousel added to a campaign | type | Carousel campaigns are limited to a single carousel ad |
Related references
Updated about 8 hours ago
