Meta solo cuenta registration leads; Google guarda fracciones y redondea al sumar; ventas CRM usan pipeline Online con importe > 0. Co-authored-by: Cursor <cursoragent@cursor.com>
6 lines
249 B
SQL
6 lines
249 B
SQL
-- Store fractional Google Ads conversions so period totals match Ads Manager
|
|
-- (Math.round of the exact sum) for any date range.
|
|
ALTER TABLE public.ad_daily
|
|
ALTER COLUMN platform_leads TYPE numeric(14, 6)
|
|
USING platform_leads::numeric(14, 6);
|