Retrieves all targeting rules groups currently assigned to the specified banner.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/rules/banner/{bannerId}/get.do
Retrieves all targeting rules groups currently assigned to the specified banner. The response JSON contains 'success: true', a 'ruleGroups' array with each group's ID, rules, operator, and include/exclude flag, and 'rulesEnabled'. The groups are listed whether or not rules are switched on for the banner; they take effect only while rulesEnabled is true.
Path Params
bannerIdintegerrequired
The unique numeric identifier of the banner whose rules groups should be retrieved
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/rules/banner/7890/get.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());