Content Management
Playlists
A playlist is either static, with videos you add and order yourself, or smart, with videos chosen by rules. The playlist calls are listed in the API reference under Playlist (https://developer.target-video.com/v1.0/reference); this page covers what you need to know to use them.
Static and smart playlists
Set is_smart when you create a playlist with playlist/add: 1 for a smart playlist, 0 (or nothing) for a static one. A smart playlist’s videos come from its rules (see Smart playlist rules below); a static playlist’s videos are the ones you add.
Creating and editing
Parameter | Description |
|---|---|
name | Playlist name. Required when you create a playlist. |
partner_id | Your website ID. Required when you create a playlist. |
publish | Publish date, as |
status |
|
tags | The playlist’s own tags, comma-separated. |
exclude_tag | Static playlists: a tag name. Videos in the playlist that carry it aren’t shown. |
Send the publish date and the tags with every edit. An edit without publish sets the publish date to today, and an edit without tags removes all of the playlist’s tags.
Smart playlist rules
Send the rules with playlist/add or playlist/edit/{id}. Lists are comma-separated.
Parameter | Description |
|---|---|
include_tags_taxonomy_ids | Videos in any of these IAB categories (by ID), including their sub-categories. |
exclude_tags_taxonomy_ids | Leaves out videos in these IAB categories and their sub-categories. |
lang | Only videos in this language, matched exactly as set on the video. |
video_type |
|
video_publish_date | A date as |
video_publish_date_period |
|
max_duration | Longest video length, in seconds. Applied when the playlist plays in the player, not to |
A smart playlist only ever contains videos that are published and past their publish date, not expired, not rejected and not DRM-protected. The newest videos come first.
Videos in a static playlist
playlist/add_videos/{id}withids: the videos are added at the top of the playlist. Videos already in it are skipped. Use it also to fill a new static playlist afterplaylist/add.playlist/sort/{id}withsort: the comma-separated IDs of all the playlist’s videos, in the new order. A list that misses or adds a video is rejected.playlist/delete_videos/{id}withidsremoves those videos.These calls only affect static playlists. A smart playlist ignores videos added this way.
Reading playlists
Call | Returns |
|---|---|
| Only the IDs and names of the playlists, e.g. |
| Full playlist records, each with a few of its videos. |
| One playlist and its videos, page by page ( |
Webhooks
Playlist changes send these events to your webhook endpoint (see Webhooks):
Event | Sent after |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|