Retrieves all 3rd party country-level tracking codes configured for the specified placement.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/tracking-code/placement/list.do
Retrieves all 3rd party country-level tracking codes configured for the specified placement. The response is a JSON array of objects, each containing the tracking code 'id', the 'code' (HTML snippet), the 'country' ISO code ('*' for global), and a human-readable 'countryStr' name. The caller must be authenticated. The placement's own tracking code feature must be enabled for codes to be active.
Query Params
domainIdintegerrequired
The unique numeric identifier of the placement to list tracking codes for
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/tracking-code/placement/list.do?domainId=4001");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());