Play Console data collection: state, tooling, and what's automatable

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
56/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
github-actions, python
Domain
tooling

Research direction

Start with collect-play.yml, since it is the CI entry point for the Play collection jobs, and review/run the scheduled workflow output. Then inspect vitals.py and android_installs.py and see where they write data/android-*.csv. Check the current behavior against the issue’s “works / blocked” notes, and then either document the manual Installed audience path or implement Active Device Installs with a filter for incomplete zero days. Done means the repository records a clear decision and CI outputs stay consistent with that metric choice.

Written by the indexing model from the issue text.

Description

Tracking issue for the Play Console data-collection capability that now lives in this repo (vitals.py, android_installs.py, collect-play.yml), what works, and open decisions. Related: #4, aw-android#176.

Service account

[email protected] — key at ~/.config/activitywatch/play-sa.json (local + Bob's machine); repo secrets PLAY_SA_JSON + PLAY_BUCKET set.

✅ Works — Play Developer Reporting API (vitals + errors)

vitals.py works end-to-end; collect-play.yml runs it daily:

  • crash-rate / anr-rate → data/android-crash-rate.csv, data/android-anr-rate.csv
  • errors [--stacktraces] → top crash/ANR clusters + stacktraces (errorIssues/errorReports)

Actionable for agents/devs: the current top crash is ChromeWatcher.onAccessibilityEvent NPE at ChromeWatcher.kt:76 (~791 reports).

✅ Works — GCS bulk reports (installs)

Update: the SA's bucket access finally propagated (well past Google's "up to 24h"), so android_installs.py can now list and read the pubsite_prod_rev_… reports. CI automation via the SA is viable (earlier this was blocked by 403 storage.objects.list; resolved).

installed.csv metric — the real remaining decision

Access is no longer the blocker; the metric is:

  • Manual export used "Installed audience" (unique users) — not present in any bulk report (installs/acquisition/ratings/crashes/store_performance); Statistics-dashboard-only, no API. Cannot be automated.
  • Bulk reports offer "Active Device Installs" (devices, ~10% higher) — automatable in CI now, matches the chart's "Installed Devices" label.

So: Installed audience = manual forever, or switch to Active Device Installs = full CI automation.

Open items

  • Decide installed.csv metric (Installed audience manual vs Active Device Installs automated).
  • If switching: skip spurious 0 values from not-yet-finalized recent days (e.g. saw 2026-07-06 = 0 between ~6300 neighbors).
  • "Mobile usage" metric — no programmatic source (#4).
  • Fix the dominant crash: ChromeWatcher.kt:76 NPE (aw-android#176).
Dominant language
Python
Stars
12
Forks
3
Avg merge
15d 13h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/stats

All issues in ActivityWatch/stats

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.