Skip to main content

PUT Ad Schedule

Overview


The following table contains important information about the PUT method in regards to updating an ad schedule.

PUT Ad Schedule
MethodPUT
URL or Endpoint/api/projects/projectId/ad-schedules
HeadersAuthorization
ParametersprojectId
BodyCheck the request body below.

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique ID of the project.

Request Body

{
"adManagerId": 0,
"vpaidModeOptionId": 0,
"publicId": "{publicId}",
"name": "{name}",
"adScheduleTypeId": 0,
"adSeenOnSubsequentVisitOptionId": 0,
"vmapAdTag": "{vmapAdTag}",
"timeBetweenAds": 0,
"startOnPlaylistItem": 0,
"repeatOnInterval": 0,
"enableBidding": false,
"enableProgrammability": false,
"skipAllAds": false,
"enableDemandManager": false,
"wrapperId": "{wrapperId}",
"biddingTemplatePublicId": "{biddingTemplatePublicId}",
"playerTypeId": 0,
"playerType": "{playerType}",
"adFrequencyTimingTypeId": 0,
"adFrequency": 0,
"initialDelayTimingTypeId": 0,
"initialDelay": 0,
"adCapping": 0,
"adCycleDelayMs": 0,
"adRetryLimit": 0,
"adCycleRestartMs": 0,
"vpaidModeOption": {
"id": 0,
"name": "{name}"
},
"adSeenOnSubsequentVisitOption": {
"id": 0,
"name": "{name}"
},
"adManager": {
"id": 0,
"Value": "{Value}"
},
"adScheduleType": {
"id": 0,
"name": "{name}",
"value": "{value}",
"description": "{description}"
},
"adWorkflows": [
{
"id": 0,
"adScheduleId": "{adScheduleId}",
"adFunctionId": 0,
"adFunctionName": "{adFunctionName}",
"order": 0
}
],
"adBanner": {
"adUnitPath": "{adUnitPath}",
"isEnabled": false,
"adBannerSizes": [
{
"width": 0,
"height": 0
}
]
}
}

Information about the fields that appear when you type in the request body are displayed in the table below.

Request Body Properties

Field NameTypeDescription
adManagerIdintegerThe ID of the ad manager.
vpaidModeOptionIdinteger or nullThe ID of the VPAID mode option.
publicIdstringThe public ID of the ad schedule.
namestringThe name of the ad schedule.
adScheduleTypeIdinteger or nullThe ID of the ad schedule type.
adSeenOnSubsequentVisitOptionIdinteger or nullThe ID of the ad seen on subsequent visit option.
vmapAdTagstringThe VMAP ad tag URL.
timeBetweenAdsinteger or nullTime between ads in seconds.
startOnPlaylistIteminteger or nullThe playlist item number on which the ad schedule should start.
repeatOnIntervalinteger or nullThe interval at which the ad schedule should repeat.
enableBiddingbooleanIndicates whether header bidding is enabled.
enableProgrammabilitybooleanIndicates whether programmability features are enabled.
skipAllAdsbooleanIndicates whether all ads should be skipped.
enableDemandManagerbooleanIndicates whether the demand manager is enabled.
wrapperIdstringThe public ID of the wrapper.
biddingTemplatePublicIdstringThe public ID of the bidding template.
playerTypeIdinteger or nullThe ID of the player type.
playerTypestringThe name of the player type.
adFrequencyTimingTypeIdinteger or nullThe ID of the ad frequency timing type.
adFrequencyinteger or nullThe ad frequency value.
initialDelayTimingTypeIdinteger or nullThe ID of the initial delay timing type.
initialDelayinteger or nullThe initial delay before the first ad plays.
adCappinginteger or nullMaximum number of ads shown per session.
adCycleDelayMsinteger or nullDelay between ad cycles in milliseconds.
adRetryLimitinteger or nullMaximum number of ad retry attempts.
adCycleRestartMsinteger or nullTime in milliseconds before restarting the ad cycle.
vpaidModeOptionobjectThe VPAID mode option object.
adSeenOnSubsequentVisitOptionobjectThe ad seen on subsequent visit option object.
adManagerobjectThe ad manager object.
adScheduleTypeobjectThe ad schedule type object.
adWorkflowsarray[object]The workflows associated with the ad schedule.
adBannerobjectThe ad banner configuration object.

vpaidModeOption Properties

Field NameTypeDescription
idintegerThe ID of the VPAID mode option.
namestringThe name of the VPAID mode option.

adSeenOnSubsequentVisitOption Properties

Field NameTypeDescription
idintegerThe ID of the subsequent visit option.
namestringThe name of the subsequent visit option.

adManager Properties

Field NameTypeDescription
idintegerThe ID of the ad manager.
ValuestringThe name of the ad manager.

adScheduleType Properties

Field NameTypeDescription
idintegerThe ID of the ad schedule type.
namestringName of the ad schedule type.
valuestringValue of the ad schedule type.
descriptionstringDescription of the ad schedule type.

adWorkflows Properties

Field NameTypeDescription
idinteger or nullThe ID of the ad workflow.
adScheduleIdstringThe public ID of the associated ad schedule.
adFunctionIdintegerThe ID of the ad function.
adFunctionNamestringThe name of the ad function.
orderintegerThe execution order of the workflow.

adBanner Properties

Field NameTypeDescription
adUnitPathstringThe ad unit path for the banner.
isEnabledbooleanIndicates whether the ad banner is enabled.
adBannerSizesarray[object]The list of banner size configurations.

adBannerSizes Properties

Field NameTypeDescription
widthintegerThe width of the banner in pixels.
heightintegerThe height of the banner in pixels.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"adManagerId": 0,
"vpaidModeOptionId": 0,
"publicId": "{publicId}",
"name": "{name}",
"adScheduleTypeId": 0,
"adSeenOnSubsequentVisitOptionId": 0,
"vmapAdTag": "{vmapAdTag}",
"timeBetweenAds": 0,
"startOnPlaylistItem": 0,
"repeatOnInterval": 0,
"enableBidding": false,
"enableProgrammability": false,
"skipAllAds": false,
"enableDemandManager": false,
"wrapperId": "{wrapperId}",
"biddingTemplatePublicId": "{biddingTemplatePublicId}",
"playerTypeId": 0,
"playerType": "{playerType}",
"adFrequencyTimingTypeId": 0,
"adFrequency": 0,
"initialDelayTimingTypeId": 0,
"initialDelay": 0,
"adCapping": 0,
"adCycleDelayMs": 0,
"adRetryLimit": 0,
"adCycleRestartMs": 0,
"vpaidModeOption": {
"id": 0,
"name": "{name}"
},
"adSeenOnSubsequentVisitOption": {
"id": 0,
"name": "{name}"
},
"adManager": {
"id": 0,
"Value": "{Value}"
},
"adScheduleType": {
"id": 0,
"name": "{name}",
"value": "{value}",
"description": "{description}"
},
"adWorkflows": [
{
"id": 0,
"adScheduleId": "{adScheduleId}",
"adFunctionId": 0,
"adFunctionName": "{adFunctionName}",
"order": 0
}
],
"adBanner": {
"adUnitPath": "{adUnitPath}",
"isEnabled": false,
"adBannerSizes": [
{
"width": 0,
"height": 0
}
]
}
},
"resultInfo": null,
"statusCode": 200
}

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

Top-Level Properties

Field NameTypeDescription
successbooleanIf the response is successful it will return true. Otherwise will return false.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns the response message from back-end.
resultobjectReturns the updated ad schedule object.
adManagerIdintegerThe ID of the ad manager.
vpaidModeOptionIdinteger or nullThe ID of the VPAID mode option.
publicIdstringThe public ID of the ad schedule.
namestringThe name of the ad schedule.
adScheduleTypeIdinteger or nullThe ID of the ad schedule type.
adSeenOnSubsequentVisitOptionIdinteger or nullThe ID of the ad seen on subsequent visit option.
vmapAdTagstringThe VMAP ad tag URL.
timeBetweenAdsinteger or nullTime between ads in seconds.
startOnPlaylistIteminteger or nullThe playlist item number on which the ad schedule should start.
repeatOnIntervalinteger or nullThe interval at which the ad schedule should repeat.
enableBiddingbooleanIndicates whether header bidding is enabled.
enableProgrammabilitybooleanIndicates whether programmability features are enabled.
skipAllAdsbooleanIndicates whether all ads should be skipped.
enableDemandManagerbooleanIndicates whether the demand manager is enabled.
wrapperIdstringThe public ID of the wrapper.
biddingTemplatePublicIdstringThe public ID of the bidding template.
playerTypeIdinteger or nullThe ID of the player type.
playerTypestringThe name of the player type.
adFrequencyTimingTypeIdinteger or nullThe ID of the ad frequency timing type.
adFrequencyinteger or nullThe ad frequency value.
initialDelayTimingTypeIdinteger or nullThe ID of the initial delay timing type.
initialDelayinteger or nullThe initial delay before the first ad plays.
adCappinginteger or nullMaximum number of ads shown per session.
adCycleDelayMsinteger or nullDelay between ad cycles in milliseconds.
adRetryLimitinteger or nullMaximum number of ad retry attempts.
adCycleRestartMsinteger or nullTime in milliseconds before restarting the ad cycle.
vpaidModeOptionobjectThe VPAID mode option object.
adSeenOnSubsequentVisitOptionobjectThe ad seen on subsequent visit option object.
adManagerobjectThe ad manager object.
adScheduleTypeobjectThe ad schedule type object.
adWorkflowsarray[object]The workflows associated with the ad schedule.
adBannerobjectThe ad banner configuration object.
resultInfostringReturns extra information about the result.
statusCodeintegerReturns the HTTP Status Code.

vpaidModeOption Properties

Field NameTypeDescription
idintegerThe ID of the VPAID mode option.
namestringThe name of the VPAID mode option.

adSeenOnSubsequentVisitOption Properties

Field NameTypeDescription
idintegerThe ID of the subsequent visit option.
namestringThe name of the subsequent visit option.

adManager Properties

Field NameTypeDescription
idintegerThe ID of the ad manager.
ValuestringThe name of the ad manager.

adScheduleType Properties

Field NameTypeDescription
idintegerThe ID of the ad schedule type.
namestringName of the ad schedule type.
valuestringValue of the ad schedule type.
descriptionstringDescription of the ad schedule type.

adWorkflows Properties

Field NameTypeDescription
idinteger or nullThe ID of the ad workflow.
adScheduleIdstringThe public ID of the associated ad schedule.
adFunctionIdintegerThe ID of the ad function.
adFunctionNamestringThe name of the ad function.
orderintegerThe execution order of the workflow.

adBanner Properties

Field NameTypeDescription
adUnitPathstringThe ad unit path for the banner.
isEnabledbooleanIndicates whether the ad banner is enabled.
adBannerSizesarray[object]The list of banner size configurations.

adBannerSizes Properties

Field NameTypeDescription
widthintegerThe width of the banner in pixels.
heightintegerThe height of the banner in pixels.

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