# Geo targeting data (ADCM-242)

**Full guide (existing data + future CSV updates):** see [`GEO-DATA-GUIDE.md`](./GEO-DATA-GUIDE.md)

## Quick commands

```bash
# From api.dsp.com
npm run geo:build          # rebuild CSVs from raw sources (optional)
npm run geo:load:dry-run   # preview only — no DB write
npm run geo:load           # sync CSV → catalog tables
```

## One-line summary

- **Saved targeting profiles:** not changed
- **Migration:** adds columns only (safe for existing rows)
- **Loader:** inserts/updates catalog; removed rows → inactive, never deleted
- **Typeahead:** DB-backed (max 20); DV states/cities/DMAs = US only
- **UI UX (ui.dsp.com, ADCM-242 Jira comment):** 3-char search; empty focus
  from DB (no static UI list); Redis caches empty-q top-20 only (1h, fail-open;
  bumped on geo:load); typed search always DB; payment = catalog + free-text
