Check measurement freshness
curl --request GET \
--url https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-freshness \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-freshness"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-freshness', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "no_sources",
"sourcesEvaluated": 4503599627370495,
"sourcesSkipped": [
{
"source": "<string>",
"cadence": "<string>",
"reason": "<string>"
}
],
"gaps": [
{
"source": "<string>",
"sourceName": "<string>",
"outcomeType": "<string>",
"cadence": "<string>",
"lagWeeks": 4503599627370495,
"expectedWeekStart": "2023-11-07T05:31:56Z",
"expectedWeekEnd": "2023-11-07T05:31:56Z",
"geosMissing": [
"<string>"
],
"geosPresent": [
"<string>"
],
"daysOverdue": 4503599627370495
}
],
"totalMissing": 4503599627370495,
"mostOverdue": {
"source": "<string>",
"sourceName": "<string>",
"outcomeType": "<string>",
"cadence": "<string>",
"lagWeeks": 4503599627370495,
"expectedWeekStart": "2023-11-07T05:31:56Z",
"expectedWeekEnd": "2023-11-07T05:31:56Z",
"geosMissing": [
"<string>"
],
"geosPresent": [
"<string>"
],
"daysOverdue": 4503599627370495
},
"lastUploadDate": "2023-11-07T05:31:56Z",
"baselineCoverage": {
"weeksPresent": 4503599627370495,
"weeksExpected": 4503599627370495,
"geosPresent": 4503599627370495,
"geosExpected": 4503599627370495
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Measurement
Check measurement freshness
Check for gaps in measurement data coverage relative to flight schedule and measurement source cadence.
GET
/
advertisers
/
{advertiserId}
/
measurement-freshness
Check measurement freshness
curl --request GET \
--url https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-freshness \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-freshness"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/measurement-freshness', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "no_sources",
"sourcesEvaluated": 4503599627370495,
"sourcesSkipped": [
{
"source": "<string>",
"cadence": "<string>",
"reason": "<string>"
}
],
"gaps": [
{
"source": "<string>",
"sourceName": "<string>",
"outcomeType": "<string>",
"cadence": "<string>",
"lagWeeks": 4503599627370495,
"expectedWeekStart": "2023-11-07T05:31:56Z",
"expectedWeekEnd": "2023-11-07T05:31:56Z",
"geosMissing": [
"<string>"
],
"geosPresent": [
"<string>"
],
"daysOverdue": 4503599627370495
}
],
"totalMissing": 4503599627370495,
"mostOverdue": {
"source": "<string>",
"sourceName": "<string>",
"outcomeType": "<string>",
"cadence": "<string>",
"lagWeeks": 4503599627370495,
"expectedWeekStart": "2023-11-07T05:31:56Z",
"expectedWeekEnd": "2023-11-07T05:31:56Z",
"geosMissing": [
"<string>"
],
"geosPresent": [
"<string>"
],
"daysOverdue": 4503599627370495
},
"lastUploadDate": "2023-11-07T05:31:56Z",
"baselineCoverage": {
"weeksPresent": 4503599627370495,
"weeksExpected": 4503599627370495,
"geosPresent": 4503599627370495,
"geosExpected": 4503599627370495
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Path Parameters
Query Parameters
Response
Check measurement freshness
Measurement data gaps for a flight
no_sources: the advertiser has no measurement sources. not_evaluated: it has sources, but none was checked, because none has a cadence this check evaluates or none has a window due yet (see sourcesSkipped). evaluated: at least one source was checked against at least one due window.
Available options:
no_sources, not_evaluated, evaluated Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$