Browse the help center

Add media library videos to an Advanced Local Video(s) banner

Adds media library videos to the banner's video files: one by 'mediaAssetId', or several at once by 'mediaAssetIds'.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/vast/media-files/from-library.do

Adds media library videos to the banner's video files: one by 'mediaAssetId', or several at once by 'mediaAssetIds'. Every file is checked first — it must be a video the user can see in the library and within the network's video size limit — and if any is refused nothing is added: the 400 names each refused file in errors['mediaAssetIds[<id>]'] (errors.mediaAssetId for the single form, which answers a file it cannot find with 404). A file is referenced, not copied, so deleting the row later leaves the library file in place. A video the banner already has is not added again; 'skipped' names it and its row ('alreadyAdded' gives that row's id for the single form). Needs the Advanced Local Video(s) and Media Library permissions and update rights on the banner's advertiser.

Path Params

bannerId integer required

Advanced Local Video(s) banner id

5001

Form Params

mediaAssetId integer

One media library video id; or send mediaAssetIds

42

mediaAssetIds array<integer>

Several media library video ids, added together or not at all

42

Responses

200

As the list, plus created:[ids], skipped:[{mediaAssetId, mediaFileId}] and, for the single form, alreadyAdded

400

Neither mediaAssetId nor mediaAssetIds, a file that is not a video, is not visible or is over the size limit (per file in errors; nothing is added), not an Advanced Local Video(s) banner, or the file storage service is switched off

401

Authentication error

403

The Advanced Local Video(s) or Media Library permission is off, or no update rights on the banner

404

The banner does not exist, or (single form) the library file does not exist or is not visible

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.