Import Google costs
import_google_costsBook Google Ads daily spend into click costs — the rows the Torvex Google Ads Script reads inside the advertiser's own account (one row per day × Google campaign × ad group). Google campaigns are matched to tracker campaigns by the {campaignid} ValueTrack parameter carried on the clicks themselves (a Google campaign feeding several tracker campaigns is split by click share), with the '(TID: N)' campaign-name marker as fallback; unmatched ones are reported back. Non-USD accounts are converted at the current rate; a request must carry every row of a Google campaign for the days it covers (a day is set, not incremented).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| currency | No | Account billing currency; converted to USD at the current rate (code bad_currency when the rate is unknown) | |
| timezone | No | IANA timezone of the Google Ads account (its report days are in it); missing → workspace timezone | |
| customer_id | No | Google Ads customer id (dashes optional) — for the audit log only |