Commit e90b108
authored
fix(google-ads): fix campaign and keyword metrics returning invalid data format (#167)
- Wrap retrieve_campaign_metrics response in {"results": ...} to match the
expected output schema (fixes ValidationError in production)
- Apply the same fix to retrieve_keyword_metrics (same issue)
- Default cost_micros to 0 instead of 1 when missing, preventing incorrect
Return On Ad Spend calculations1 parent 7035e1e commit e90b108
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| |||
0 commit comments