Sets or updates the CPM threshold configuration for the specified site.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/sites/{siteId}/cpm-thresholds.do
Sets or updates the CPM threshold configuration for the specified site. The request body is a JSON object containing a default cpmThreshold value and an optional array of per-country CPM thresholds (ISO 3166 country code to threshold value mappings). Existing per-country thresholds are replaced entirely. Requires ENABLED level on both MANAGE_PRICING and CPM_PRICING_TYPE permissions.
Path Params
siteIdintegerrequired
Unique numeric ID of the site
5001
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/sites/5001/cpm-thresholds.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new StringContent("{\"cpmThreshold\":\"0.50\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());