Replaces the custom key-value parameters for the specified banner.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/custom/parameters.do
Replaces the custom key-value parameters for the specified banner. The request body is a JSON array of objects with optional 'id' (for existing parameters), 'name', and 'value' fields. Omitting 'id' creates a new parameter; the banner's parameters the array leaves out are deleted. An id that is not one of this banner's parameters, or an entry without name or value, is refused with 400 and nothing changes; so is a banner that is not native (EXTERNAL_NATIVE or LOCAL_NATIVE), where the parameters would do nothing. Requires UPDATE permission on the banner's advertiser.
Path Params
bannerIdintegerrequired
ID of the banner to update custom parameters for
3001
Body
A JSON body. An example, built from the field definitions:
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/banner/3001/custom/parameters.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new StringContent("[{\"id\":\"0\",\"name\":\"headline\",\"value\":\"Buy Now — 50% Off!\"}]", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());