Reporting/Insights Hub/Diagnostics
Get a publisher's diagnostics
A health check of one publisher: consent, heavy ads, mobile ad density, tag latency and errors, viewability, direct demand, ads.txt issues, expired integrations, the CMP stub and the traffic trend. Most figures are for yesterday. Fetches the publisher’s home page (and any script with “stub” in its URL) to look for a CMP stub, unless a CMP integration is connected.
GET
/
v1
/
report
/
insight
/
diagnostics
/
{uid}
Get a publisher's diagnostics
curl --request GET \
--url https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": {
"cmp_error_rate": 0.0000122486,
"cmp_rejection_rate": 0.0007226761,
"heavy_ad_intervention": 0.0088838084,
"mobile_ad_density": 0.057,
"tag_latency": 2541.999829099,
"tag_error_rate": 0.0147908736,
"tag_error_types": [
{
"type": "Network Request Failed",
"count": 412,
"rate": 0.0098561,
"details": [
{
"label": "reason",
"value": "Failed to fetch",
"count": 301
},
{
"label": "reason",
"value": "Load failed",
"count": 111
}
],
"network_average": 0.0021
},
{
"type": "GPT Load Failed",
"count": 206,
"rate": 0.0049282,
"details": [],
"network_average": 0.00087
}
],
"viewability": 0.5244113081,
"cmp_stub_status": "Found",
"direct": 0.6921014873,
"expired_integrations": null,
"ads_txt_issues": 2,
"traffic_trend": "In decline"
},
"success": true
}{
"success": false,
"message": "Token not found."
}{
"success": false,
"message": "User forbidden"
}{
"success": false,
"message": "Resource not found"
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}Authorizations
Was this page helpful?
⌘I
Get a publisher's diagnostics
curl --request GET \
--url https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/report/insight/diagnostics/{uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": {
"cmp_error_rate": 0.0000122486,
"cmp_rejection_rate": 0.0007226761,
"heavy_ad_intervention": 0.0088838084,
"mobile_ad_density": 0.057,
"tag_latency": 2541.999829099,
"tag_error_rate": 0.0147908736,
"tag_error_types": [
{
"type": "Network Request Failed",
"count": 412,
"rate": 0.0098561,
"details": [
{
"label": "reason",
"value": "Failed to fetch",
"count": 301
},
{
"label": "reason",
"value": "Load failed",
"count": 111
}
],
"network_average": 0.0021
},
{
"type": "GPT Load Failed",
"count": 206,
"rate": 0.0049282,
"details": [],
"network_average": 0.00087
}
],
"viewability": 0.5244113081,
"cmp_stub_status": "Found",
"direct": 0.6921014873,
"expired_integrations": null,
"ads_txt_issues": 2,
"traffic_trend": "In decline"
},
"success": true
}{
"success": false,
"message": "Token not found."
}{
"success": false,
"message": "User forbidden"
}{
"success": false,
"message": "Resource not found"
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}