v1
latestOpenAPI 3.1.02026-07-24251250397.8 KBssai
Create an ad config
Create an ad config for a site
post/v2/sites/{site_id}/ad_configs/
Path parameters
site_idstring required
Unique identifier for a resource
Example:Ny05CEfj
Unique alphanumeric ID of the site
Request body
Example request
{
"metadata": {
"preroll_target_duration": "00:00:30.000",
"midroll_target_duration": "00:02:00.000",
"time_between_ads": "00:30:00.000"
}
}Response
Request to create ad config successful
Example response
{
"schema": "https://schema.jwplayer.com/types/thumbnail.json",
"id": "Ny05CEfj",
"created": "2019-09-25T15:29:11.042095+00:00",
"last_modified": "2019-09-25T15:29:11.042095+00:00",
"metadata": {
"preroll_target_duration": "00:00:30.000",
"midroll_target_duration": "00:02:00.000",
"time_between_ads": "00:30:00.000"
}
}