Players > Ads

Update an ads

This endpoint allows you to update an Ads.

put/1/videos/{channel}/players/{player}/ads/{ads}

Path parameters

channelinteger required

The unique identifier (ID) of the channel to request.

playerinteger required

The unique identifier (ID) of the player to request.

adsinteger required

The unique identifier (ID) of the ads to request.

Query parameters

withstring

Optional : Allows loading additional data about a resource, which may include related resources.

account_idinteger required

Account identifier

The account identifier

Request body

is_periodicboolean

boolean to determine if ad should cycle

offsetinteger

the offset to play the ad

type'mid-roll' | 'pre-roll'

the ad type to play the ad

urlstring

the url of the vast XML

Example request

{
  "type": "\"toto\"",
  "url": "\"Hello world ! 😊\""
}

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

datastring

Example response

{
  "result": "success"
}

Changes

No recorded changes to this endpoint across all 3 revisions of this API.