Browse the help center

List media library files

The media library's files, newest first unless 'sort' says otherwise.

Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/media-library/assets.do

The media library's files, newest first unless 'sort' says otherwise. 'available' is false when the network's file storage service is switched off; the library is empty then and uploads are refused. Filters: 'kind' (VIDEO, IMAGE, HTML5), 'query' (part of the name or file name), 'advertiserId' (the advertiser a file was uploaded for), 'width' and 'height' together (exact pixel size, as an image or HTML5 creative of that size needs). Each file carries 'usedIn', the number of live creatives serving it, and 'url', a link to view it. Pages: 'start' and 'limit' (at most 100); 'total' counts every match and 'more' says whether another page exists. Requires the MEDIA_LIBRARY permission and view rights on campaigns.

Query Params

kind string

VIDEO, IMAGE or HTML5

VIDEO

query string

Part of the file's name or original file name

spring

advertiserId integer

Only files uploaded for this advertiser

1001

width integer

Exact width in pixels; used together with height

300

height integer

Exact height in pixels; used together with width

250

start integer

Index of the first file to return

0

limit integer

Files per page, at most 100

25

sort string

CREATED, NAME or SIZE

CREATED

dir string

ASC or DESC

DESC

Responses

200

{success, available, total, more, start, limit, assets:[{id, name, kind, advertiserId, advertiserName, fileName, contentType, fileSize, width, height, duration, video, url, usedIn, createdAt, createdBy}]}

400

Bad request — invalid or missing parameters

401

Authentication error

403

The role lacks MEDIA_LIBRARY or campaign view rights

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.