POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/pmp-deals/enable.do
Switches PMP deals on for the campaign. The campaign's deals only reach OpenRTB bid requests while this switch is on; deals created through this API stay dormant until it is. Requires the RTB_PMP_DEALS permission and UPDATE access to the campaign's advertiser.
Path Params
campaignIdintegerrequired
Numeric ID of the campaign
2001
Responses
200
PMP deals enabled; pmpDealsEnabled echoes the new state
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/campaign/2001/pmp-deals/enable.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());