curl --request GET \
--url https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan \
--header 'X-API-Key: <api-key>'import requests
url = "https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Playback Plan
The plan the IL adapter of an app that plays its own breaks draws during this playback: the project’s ad plan with cuts: [], its scenes and its product windows, and commerce with a host grant for this playback’s session (commerce.session, the same for the whole playback). The windows keep clear of the breaks IL would place, not of the app’s: the adapter applies scenes.pacing.cut_clearance_seconds around the breaks the app reports. commerce.break_url is present only when the playback was created with graphics, walks routing steps without AdRouter, the scene product is on and the project saved an iADServer step with a tag. A version 2 plan expires soon: read it again before expires_at. 204 when there is nothing to draw (AdRouter on, analysis not finished, server-side insertion, playback ended, video changed since the playback started, or no scenes and no product). It may schedule a plan build and never touches the playback’s opportunities or steps.
curl --request GET \
--url https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan \
--header 'X-API-Key: <api-key>'import requests
url = "https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.interactivelayers.com/v1/vod/playbacks/{playback_id}/plan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}