Removes a country-specific price override from the given placement's fixed pricing model. The country is identified by its ISO 3166 two-letter code. If an actionId is provided, only the pricing entry matching both the country and action is removed; the action must be one the caller can see in the console's action list (a deleted one is accepted, so its leftover price can be removed). The code is case-insensitive, and GB reaches the price stored under UK. Pricing override must be enabled on the placement. Requires ENABLED level on the SITE_PAYMENT_MODEL permission.
Path Params
placementIdintegerrequired
Unique numeric ID of the placement
4001
countryCodestringrequired
ISO 3166 two-letter country code (e.g., US, GB, DE)
US
Form Params
actionIdinteger
Optional action ID for CPA pricing; null for CPM/CPC
42
Responses
200
Country pricing deleted successfully
400
Bad request
401
Authentication error
403
Permission denied
404
actionId names no action the caller can see, or there is no price for that country (and action) to remove
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://YOUR-NETWORK-DOMAIN/rest-api/placements/4001/pricing/US.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["actionId"] = "42" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());