store-analytics: query Play vitals up to the Reporting API freshness #185

Open
founder wants to merge 1 commit from claude/kse-0191-play-freshness into main
Owner

Follow-up to #174. With play-reports@ granted in Play Console, the vitals queries 400d: the Reporting API rejects timelines past the metric set freshness (Play data lags 2-3 days). Read the DAILY freshness first, query the 7 days up to it, expose key_store_store_vitals_freshness_timestamp_seconds.

Verified live on the forge through WIF as play-reports@: google-play 0 errors, freshness 2026-08-20.

Needs a deploy-forge-host switch to take effect (or wait for the next one).

🤖 Generated with Claude Code

Follow-up to #174. With play-reports@ granted in Play Console, the vitals queries 400d: the Reporting API rejects timelines past the metric set freshness (Play data lags 2-3 days). Read the DAILY freshness first, query the 7 days up to it, expose key_store_store_vitals_freshness_timestamp_seconds. Verified live on the forge through WIF as play-reports@: google-play 0 errors, freshness 2026-08-20. Needs a deploy-forge-host switch to take effect (or wait for the next one). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The Play Developer Reporting API rejects any timeline past the metric
set's current freshness ("'timeline_spec.end_date' field should be at most
the current freshness 2026-08-20"; Play data lags 2-3 days), which made
every crashRate/anrRate query a 400 once play-reports@ had access. Read the
DAILY freshness first, query the seven days up to it in the app's reporting
time zone, and expose key_store_store_vitals_freshness_timestamp_seconds.

Verified live on the forge through WIF as play-reports@: 0 errors.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin claude/kse-0191-play-freshness:claude/kse-0191-play-freshness
git switch claude/kse-0191-play-freshness
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
key-store/key.store!185
No description provided.