Skip to main content

GET Ad Schedule Config

Overview


The following table contains important information about the GET method in regards to receiving the ad schedule's configuration in json.

GET Playlist by PublicId
MethodGET
URL or Endpoint/api/projects/projectId/ad-schedules/adScheduleId.json
HeadersAuthorization
ParametersprojectId, adScheduleId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project.
adScheduleIdYesstringUnique Id of the ad schedule.

Request Body

The request does not contain a request body

Response

{
"type": "string",
"isVmap": true,
"enableProgrammability": true,
"vmap": "string",
"skipAllAds": true,
"VPAIDmode": "string",
"adBreaks": [
{
"adTagUrl": [
"string"
],
"breakType": "string",
"breakTimingType": "string",
"breakTimingValue": 0,
"schedule": {
"liveCount": 0,
"type": "string",
"protectFirst": 0,
"protectLast": 0,
"occurEvery": 0,
"algorithm": "string",
"ranges": [
{
"startTime": 0,
"endTime": "string",
"count": 0,
"offset": 0,
"breaks": [
0
]
}
]
}
}
],
"bidding": true,
"bidders": [],
"functions": [],
"enableDemandManager": true,
"demandManager": {
"prebidUrl": "string",
"bidderTimeOut": 0,
"serverTimeOut": 0,
"coppaInventory": true,
"enableCache": true,
"adUnits": "string"
},
"frequency": {
"type": "string",
"value": 0
},
"maxCap": 0,
"initialDelay": {
"type": "string",
"value": 0
},
"adCycleDelayMs": 0,
"adRetryLimit": 0,
"adCycleRestartMs": 0
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
typestringThe type of ad schedule.
isVmapboolIndicates if the schedule uses a VMAP.
enableProgrammabilityboolSpecifies whether programmability features are enabled for ad selection.
vmapstringThe VMAP configuration or URL if applicablied.
skipAllAdsboolIf true, skips all ads during playback.
VPAIDmodestringSpecifies the mode of VPAID.
adBreaksarrayA list of ad break configurations defining when and how ads play.
adTagUrlarrayList of VAST tag URLs associated with the ad break.
breakTypestringThe type of break (e.g., preroll, midroll, postroll).
breakTimingTypestringDefines how the break timing is determined.
breakTimingValuenumberSpecifies the break timing value.
scheduleobjectConfiguration object for ad repetition, protection, and algorithm rules.
liveCountnumberNumber of ads to show in a live stream context.
typestringThe type of scheduling strategy.
protectFirstnumberNumber of content units to protect from ad insertion at the beginning.
protectLastnumberNumber of content units to protect from ad insertion at the end.
occurEverynumberFrequency at which ads occur.
algorithmstringSpecifies the scheduling algorithm.
rangesarrayCustom time ranges within which ad breaks should be applied.
startTimenumberThe start time of the custom ad range.
endTimestringThe end time of the custom ad range.
countnumberThe number of ads allowed in this time range.
offsetnumberOffset value applied before inserting the ad break.
breaksarrayBreak points in time where ads should be inserted.
biddingboolDetermines whether header bidding is active for ad selection.
biddersarrayList of bidders participating in header bidding auctions.
functionsarrayCustom functions that can be applied during the ad execution process.
enableDemandManagerboolEnables the Demand Manager integration for managing ad demand sources.
demandManagerobjectConfiguration for the Demand Manager integration.
prebidUrlstringURL to fetch Prebid.js configuration or script.
bidderTimeOutnumberTimeout (in ms) for how long to wait for bidders to respond.
serverTimeOutnumberTimeout (in ms) for server-side auction logic to complete.
coppaInventoryboolWhether inventory should be marked as COPPA (child-appropriate) compliant.
enableCacheboolIndicates whether caching of bid responses is enabled.
adUnitsstringAd units used in the demand configuration.
frequencyobjectSettings related to frequency capping of ad display.
typestringThe type of frequency rule.
valuenumberThe value that defines the limit based on the frequency type.
maxCapnumberDefines the maximum number of ads to be shown overall.
initialDelayobjectConfiguration for the delay before the first ad appears.
typestringType of delay (e.g., fixed, dynamic).
valuenumberValue of the delay in seconds or milliseconds.
adCycleDelayMsnumberDelay between ad cycles in milliseconds.
adRetryLimitnumberMaximum number of retry attempts for failed ads.
adCycleRestartMsnumberTime in milliseconds to wait before restarting the ad cycle.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed