Lists the companion ads of a video banner, as the console's Companions grid does.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/vast/companions.do
Lists the companion ads of a video banner, as the console's Companions grid does. Needs the VAST Companion Ads permission and view rights on the banner's advertiser.
Path Params
bannerIdintegerrequired
Video banner id
5001
Responses
200
'companions' lists {id, type, width, height, creativeType, fileName, fileUid, imageUrl, iframeUrl, markup, templateId, templateName}; imageUrl is the served address of a STATIC companion's stored image
400
The banner is not a video banner
401
Authentication error
403
The VAST Companion Ads permission is off, or no view rights on the banner
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/banner/5001/vast/companions.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());