GET /api/v2/buyer/advertisers/{advertiserId}/measurement-freshness
Checks for gaps in measurement data coverage relative to a flight schedule and the registered source cadence. Run this during flight to confirm data is actually arriving for the geos and windows you expect.
Only daily and weekly sources are checked. A weekly source expects one record per geo for each week from flightStart; a daily source expects one per geo for each day from flightStart through flightEnd. Each window is due lagWeeks after it ends: a weekly window after the start of its last day, a daily window at the end of the day. Sources carry lag in whole weeks only, so a daily source with lagWeeks: 1 flags a missing day one week after that day. Days are UTC days. Daily sources are checked for at most the last 366 days of the flight that are due; older days are not reported. Weekly sources are checked for every week of the flight.
A weekly window counts as present when any record for the source’s outcomeType, that week’s start date and the geo exists. A daily window counts as present only when the record’s source is also the daily source’s sourceKey, so two sources that share an outcome type do not fill each other’s days. Upload daily records with source set to the source’s sourceKey.
Sources with any other cadence, and sources with no window due yet, are listed in sourcesSkipped and not checked. Each reason starts with a stable code, unsupported_cadence: or no_window_due:, followed by a readable explanation; for no_window_due it says when the first window falls due.
Request
Parameters
Response
status before totalMissing. A zero totalMissing means nothing is missing only when status is evaluated:
gaps[] lists each source / window / geo combination where expected data has not arrived. For a daily source, expectedWeekStart and expectedWeekEnd are both the missing day. totalMissing is the number of missing geo-windows across gaps; mostOverdue is the single gap with the highest daysOverdue (or null when there are none). lastUploadDate is the most recent record received (or null), and baselineCoverage summarizes how many of the 52 weeks before flightStart have data for the first source, and in how many of the requested geos (or null when the advertiser has no sources).
Errors
400 VALIDATION_ERROR— missingflightStartorgeos, or a malformed date.404 NOT_FOUND—advertiserIddoes not exist or is not visible to the authenticated account.
Related
Measurement tasks
All measurement operations
Measurement overview
Pipeline, belief state, and concepts
Upload measurement records
Fill the gaps with outcome records