Switches per-action conversion limits off for an advertiser, campaign or banner and deletes its per-action limit records, the same as switching them off in the console.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/per-action/limits/{type}/{entityId}/disable.do
Switches per-action conversion limits off for an advertiser, campaign or banner and deletes its per-action limit records, the same as switching them off in the console. 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 disabled; 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/disable.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());