feat: automatic ads data loading and attributed sales line in chart

This commit is contained in:
Christian Vidal Wolf
2026-01-21 10:46:50 +01:00
parent 1c826c2487
commit e5c72c48c5
6 changed files with 307 additions and 9 deletions
+8
View File
@@ -112,6 +112,14 @@ export interface PivotRow {
// Dynamic buckets
totalsByYear: Record<string, YearlyData>;
months: MonthlyPivot[]; // Always 12 elements
// Ads data (optional, aggregated by ASIN)
adsByYear?: Record<string, {
adSpend: number;
attributedSales: number;
acos: number;
tacos: number;
}>;
}
export interface TimeSeriesData {