Switches per-action conversion limits on for an advertiser, campaign or banner.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/per-action/limits/{type}/{entityId}/enable.do
Switches per-action conversion limits on for an advertiser, campaign or banner. The limits added through /per-action/add/limit only cap delivery while this switch is on. Requires the MANAGE_CAPPING_AND_LIMITATIONS and CAMPAIGN_ACTION_LIMIT permissions and UPDATE access to the owning advertiser. Only ADVERTISER, CAMPAIGN and BANNER are accepted; other types return 400.
Path Params
typestringrequired
Type of the entity: ADVERTISER, CAMPAIGN or BANNER
CAMPAIGN
entityIdintegerrequired
Unique numeric identifier of the entity
2001
Responses
200
Per-action limits enabled; actionLimitsEnabled echoes the new state
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/per-action/limits/CAMPAIGN/2001/enable.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());