Adds one or more third-party tracking event pixels to the specified entity.
Reference
PUT https://YOUR-NETWORK-DOMAIN/rest-api/placement/{id}/vast/tracking-events.do
Adds one or more third-party tracking event pixels to the specified entity. Each event in the request body JSON array must specify a 'type' (CLICK, IMPRESSION, or EVENT), a valid 'url' to fire, and for EVENT type a 'vastEvent' name (e.g., AD_MUTE). URLs are validated before saving; invalid URLs cause a 400 error. The event list must not be empty. The caller must have update permissions on the entity. Returns a JSON object with a 'success' boolean.
Path Params
idintegerrequired
The unique numeric identifier of the entity to add third-party tracking events to
5001
Body
A JSON body. An example, built from the field definitions:
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://YOUR-NETWORK-DOMAIN/rest-api/placement/5001/vast/tracking-events.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new StringContent("[{\"id\":\"12345\",\"url\":\"https://tracker.example.com/vast?event=impression&cb=[CACHEBUSTER]\",\"type\":\"EVENT\",\"vastEvent\":\"AD_START\"}]", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());