Returns a single conversion action identified by its numeric database ID.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/action/id/{id}.do
Returns a single conversion action identified by its numeric database ID. If the optional 'campaignId' query parameter is provided, the response will include the computed pixel key for that campaign context (derived from advertiser ID + campaign ID + action ID). Without campaignId, 'pixelKey' is omitted from the response. A deleted action answers 404, as an unknown id does. Requires authentication.
Path Params
idintegerrequired
The numeric database ID of the action to retrieve.
301
Query Params
campaignIdinteger
Optional campaign ID. When provided, the response includes the computed pixelKey for this campaign context (advertiserID + campaignID + actionID).
2001
Responses
200
Action object with id, key, name, conversion time frames, and optionally a campaign-specific pixelKey
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/action/id/301.do?campaignId=2001");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());