Returns all conversion actions accessible to the authenticated user for the specified campaign.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/actions.do
Returns all conversion actions accessible to the authenticated user for the specified campaign. Each action carries its own 'key' (the conversion action key the Postback URL uses; the same for every campaign) and a 'pixelKey' computed from the advertiser ID, campaign ID and action ID, which only the pixel tracking code needs. The campaign must exist and have actions enabled (enableActions=true); otherwise a 400 error is returned. Requires authentication.
Path Params
campaignIdintegerrequired
The numeric ID of the campaign whose actions to retrieve. The campaign must have actions enabled.
2001
Responses
200
JSON array of action objects, each with key, pixelKey, name, and conversion time frame settings
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/campaign/2001/actions.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());