Create ads on content

Set the full ad schedule on a VOD or live channel using a VAST url or a Dacast vod-id creative.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Set the ad schedule for the content with the ads array in this request. The list you send becomes the full configuration - include every slot you want to keep.

There is no update-one-slot call. To drop a single mid-roll while keeping pre-roll, POST again with only the slots that should remain (or GET, edit the list, POST).

Each ad uses either:

  • a VAST tag URL in url (your ad server or a public test tag such as Google IMA sample tags), or
  • a Dacast VOD as the creative via vod-id (UUID of another VOD on your account). Do not send url for that slot - list returns a generated ads.dacast.com tag URL.
FieldNotes
ad-typepre-roll, mid-roll, or post-roll
urlHTTPS VAST tag URL. Mutually exclusive with vod-id for the same slot.
vod-idUUID of a VOD used as the ad creative. Mutually exclusive with url.
timestampRequired for mid-roll. Integer seconds from content start (for example 120 for two minutes).

Success returns 200 { "message": "ok" }. Confirm with List ads on a content.

To add slots without rewriting the schedule, use Add ads to content (PUT). To clear every slot, use Remove ads from content (DELETE).

Step-by-step walkthrough: Ads on content.

Path Params
string
enum
required
Defaults to vod

Content type: vod or channel.

Allowed:
string
required

Content id (UUID string).

Body Params
ads
array of objects
required

Full ad configuration for the content. Replaces any existing ads. Each item uses url (VAST) or vod-id (Dacast VOD creative).

ads*
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json