Returns the complete list of all configured advertising categories, sorted by ID in ascending order.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/categories/advertising.do
Returns the complete list of all configured advertising categories, sorted by ID in ascending order. Categories are used to classify banners for targeting and filtering purposes. Each category in the response contains an id and a human-readable name.
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/categories/advertising.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());