Removes one video file from the banner. An uploaded file is erased from storage; a media library file stays in the library. Needs the Advanced Local Video(s) permission and update rights on the banner's advertiser.
Path Params
bannerIdintegerrequired
Advanced Local Video(s) banner id
5001
mediaFileIdintegerrequired
Video file id
71
Responses
200
The banner's remaining video files
400
Not an Advanced Local Video(s) banner
401
Authentication error
403
The Advanced Local Video(s) permission is off, or no update rights on the banner
404
The banner does not exist, or the file is not one of its video files
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://YOUR-NETWORK-DOMAIN/rest-api/banner/5001/vast/media-files/71.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());