Returns all non-deleted banners belonging to the specified campaign.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/banners.do
Returns all non-deleted banners belonging to the specified campaign. For native banners, the response is enriched with native preferences and custom parameters. The caller must have VIEW permission on the campaign's advertiser and MANAGE_PRICING permission. Returns 404 if the campaign does not exist, or 400 if it has been deleted.
Path Params
campaignIdintegerrequired
Unique identifier of the campaign whose banners to list
2001
Query Params
selfServRequestboolean
When true, returns a simplified self-serve banner format
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/campaign/2001/banners.do?selfServRequest=false");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());