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 configuration as JSON.

GET Ad Schedule Config
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": "{type}",
"isVmap": false,
"enableProgrammability": false,
"vmap": "{vmap}",
"skipAllAds": false,
"VPAIDmode": "{VPAIDmode}",
"adBreaks": [
{
"adTagUrl": [
"{adTagUrl}"
],
"breakType": "{breakType}",
"breakTimingType": "{breakTimingType}",
"breakTimingValue": 0,
"schedule": {
"liveCount": 0,
"type": "{type}",
"protectFirst": 0,
"protectLast": 0,
"occurEvery": 0,
"algorithm": "{algorithm}",
"ranges": [
{
"startTime": 0,
"endTime": "{endTime}",
"count": 0,
"offset": 0,
"breaks": [
0
]
}
]
}
}
],
"bidding": false,
"bidders": [],
"functions": [],
"enableDemandManager": false,
"demandManager": {
"prebidUrl": "{prebidUrl}",
"bidderTimeOut": 0,
"serverTimeOut": 0,
"coppaInventory": false,
"enableCache": false,
"adUnits": "{adUnits}"
},
"frequency": {
"type": "{type}",
"value": 0
},
"maxCap": 0,
"initialDelay": {
"type": "{type}",
"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.

Top-Level Properties

Field NameTypeDescription
typestringThe type of ad schedule.
isVmapbooleanIndicates if the schedule uses a VMAP.
enableProgrammabilitybooleanIndicates whether programmability features are enabled for ad selection.
vmapstringThe VMAP configuration URL if applicable.
skipAllAdsbooleanIf true, skips all ads during playback.
VPAIDmodestringSpecifies the VPAID mode.
adBreaksarray[object]A list of ad break configurations defining when and how ads play.
biddingbooleanIndicates whether header bidding is active for ad selection.
biddersarray[object]List of bidders participating in header bidding auctions.
functionsarray[object]Custom functions applied during the ad execution process.
enableDemandManagerbooleanIndicates whether the Demand Manager integration is enabled.
demandManagerobjectConfiguration for the Demand Manager integration.
frequencyobjectSettings related to frequency capping of ad display.
maxCapintegerMaximum number of ads to be shown overall.
initialDelayobjectConfiguration for the delay before the first ad appears.
adCycleDelayMsintegerDelay between ad cycles in milliseconds.
adRetryLimitintegerMaximum number of retry attempts for failed ads.
adCycleRestartMsintegerTime in milliseconds to wait before restarting the ad cycle.

adBreaks Properties

Field NameTypeDescription
adTagUrlarray[string]List 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.
breakTimingValueintegerThe break timing value.
scheduleobjectConfiguration for ad repetition, protection, and algorithm rules.

schedule Properties

Field NameTypeDescription
liveCountintegerNumber of ads to show in a live stream context.
typestringThe type of scheduling strategy.
protectFirstintegerNumber of seconds to protect from ad insertion at the beginning.
protectLastintegerNumber of seconds to protect from ad insertion at the end.
occurEveryintegerFrequency in seconds at which ads occur.
algorithmstringThe scheduling algorithm used.
rangesarray[object]Custom time ranges within which ad breaks are applied.

ranges Properties

Field NameTypeDescription
startTimeintegerThe start time of the custom ad range in seconds.
endTimestringThe end time of the custom ad range.
countintegerThe number of ads allowed in this time range.
offsetintegerOffset value applied before inserting the ad break.
breaksarray[integer]Break points in seconds where ads are inserted.

demandManager Properties

Field NameTypeDescription
prebidUrlstringURL to fetch Prebid.js configuration or script.
bidderTimeOutintegerTimeout in milliseconds for bidder responses.
serverTimeOutintegerTimeout in milliseconds for server-side auction logic.
coppaInventorybooleanWhether inventory is marked as COPPA compliant.
enableCachebooleanIndicates whether caching of bid responses is enabled.
adUnitsstringAd units used in the demand configuration.

frequency Properties

Field NameTypeDescription
typestringThe type of frequency rule.
valueintegerThe limit value based on the frequency type.

initialDelay Properties

Field NameTypeDescription
typestringThe type of delay.
valueintegerThe delay value.

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