Browse the help center

Traffic Quality API endpoints

Endpoint reference for the Traffic Quality tag (6 endpoints): Per-placement invalid-traffic scores, deep analysis and reports

Reference network manager admin

Per-placement invalid-traffic scores, deep analysis and reports. 6 endpoints, generated from the OpenAPI spec. Authentication, the response envelope, pagination and error codes are shared by all endpoints — see REST API overview. Parameters marked form go in an application/x-www-form-urlencoded request body.

GET /rest-api/traffic-quality/{placementId}/detail.do

Request examples

Get the deep Traffic Quality analysis of a placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesPlacement id
datequerystringnoDay, yyyy-MM-dd; default yesterday

Responses: 200 — {success, placementId, date, status: stored | generating | failed | none, runningMinutes (while generating), failure (when failed), score {…}, detail {…} | null} · 404 — No such placement, or no score for it that day. Errors follow the shared conventions.

POST /rest-api/traffic-quality/{placementId}/detail.do

Request examples

Compute the deep Traffic Quality analysis of a placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesPlacement id
dateformstringnoDay, yyyy-MM-dd; default yesterday

Responses: 200 — {success, placementId, date, status: ready (it is already stored) | started | generating (already running for this placement and day), runningMinutes (while generating)} · 404 — No such placement, or no score for it that day · 429 — Another placement’s analysis or report is running; the message names it and how long it has run. Errors follow the shared conventions.

GET /rest-api/traffic-quality/{placementId}/report-pdf.do

Request examples

Download the Traffic Quality report PDF of a placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesPlacement id
datequerystringnoDay, yyyy-MM-dd; default yesterday

Responses: 200 — The PDF · 404 — No such placement, no score that day, or the report has not been generated. Errors follow the shared conventions.

GET /rest-api/traffic-quality/{placementId}/report.do

Request examples

Get the Traffic Quality report of a placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesPlacement id
datequerystringnoDay, yyyy-MM-dd; default yesterday

Responses: 200 — {success, placementId, date, status: ready | generating | failed | none, runningMinutes (while generating), failure (when failed), analysis {…} | null, pdfUrl | null} · 404 — No such placement, or no score for it that day. Errors follow the shared conventions.

POST /rest-api/traffic-quality/{placementId}/report.do

Request examples

Generate the Traffic Quality report of a placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesPlacement id
dateformstringnoDay, yyyy-MM-dd; default yesterday

Responses: 200 — {success, placementId, date, status: ready (it already exists) | started | generating (already running for this placement and day), runningMinutes (while generating)} · 404 — No such placement, or no score for it that day · 429 — Another placement’s analysis or report is running; the message names it and how long it has run. Errors follow the shared conventions.

GET /rest-api/traffic-quality/scores.do

Request examples

List Traffic Quality scores of placements for a day.

ParameterInTypeRequiredDescription
datequerystringnoDay, yyyy-MM-dd; default yesterday
siteIdsqueryarray<integer>noKeep only placements of these sites
placementIdsqueryarray<integer>noKeep only these placements
levelsqueryarray<string>noKeep only these levels: GREEN, YELLOW, RED, BLOCKED
limitqueryintegernoRows returned, highest risk first; default 100, at most 500

Responses: 200 — {success, date, summary {green, yellow, red, blocked, totalImpressions, fraudSpend}, total, more, limit, rows […]}; total counts the matching placements, more says rows were cut at limit. Errors follow the shared conventions.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.