Skip to main content

POST Ad Break

Overview


The following table contains important information about the POST method in regards to the managing process.

POST Ad Break
MethodPOST
URL or Endpoint/api/projects/projectId/ad-schedules/adScheduleId/ad-breaks
ParametersprojectId, adScheduleId, api-version
BodyCheck the request body below.

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdNostringUnique id of the project.
adScheduleIdYesstringThe id of ad schedules.
api-versionNostringThe correct api version to use.

Request Body

{
"adBreakTypeId": 0,
"adScheduleId": "string",
"breakTimingTypeId": 0,
"breakTiming": 0,
"liveVideoPrerollsNr": 0,
"midrollTypeId": 0,
"secondsToRepeat": 0,
"protectFirstSeconds": 0,
"protectLastSeconds": 0,
"distributionMethodTypeId": 0,
"nonLinearOverlayAd": true,
"skipableAfterSeconds": true,
"skipableAfterSecondsNr": 0,
"adBreakSettings": [
{
"adBreakId": 0,
"fromSecond": 0,
"toSecond": 0,
"adsNumber": 0,
"percentages": [
0
]
}
],
"waterfallTags": [
{
"id": 0,
"adBreakId": 0,
"waterfallTagUrl": "string"
}
]
}

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

Parameter NameMandatoryTypeDescription
adBreakTypeIdinteger($int32)Id of the ad break type.
adScheduleIdstringId of the ad schedule.
breakTimingTypeIdinteger($int32)Id of the break timing type.
breakTiminginteger($int32)The break timing of the ad.
liveVideoPrerollsNrinteger($int32)The number of live video prerolls.
midrollTypeIdinteger($int32)Id of midroll type.
secondsToRepeatstringSeconds for the ad to repeat.
protectFirstSecondsstringProtecting the first seconds.
protectLastSecondsstringProtecting the last seconds.
distributionMethodTypeIdinteger($int32)Id of the distribution method type.
nonLinearOverlayAdboolIndictaes whether ads that appear before, n between or after the video content appear.
skipableAfterSecondsboolIndictaes whether the ad is skipable after a certain number of seconds.
skipableAfterSecondsNrinteger($int32)The number of skipable ads after a certain number of seconds.
adBreakSettingsarray[Object]Returns the response object.
adBreakIdinteger($int32)Id of the ad break in settings.
fromSecondinteger($int32)Second when ad begins.
toSecondinteger($int32)Second when ad ends.
adsNumberinteger($int32)The number of eds.
percentagesarray[Object]Returns the response object.
waterfallTagsarray[Object]Returns the response object.
idinteger($int32)Id of the waterfall tag.
adBreakidinteger($int32)Id of the ad break.
waterfallTagUrlstringThe url of the waterfall tag.

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