cost is what the ad platform charged for one row's ad, ad group or campaign on one day. It is a decimal in whole units of the ad account's own currency: 12.40 means twelve euros and forty cents if the account bills in euros. etlmcp never converts it on its own. Every row carries a currency column beside it, and the amount changes currency only when you add an fx rule to the pipeline's transform.
Units: whole units, never micros
Some platforms send spend in micro-units, millionths of the currency, so that their API can pass it as an integer. etlmcp divides those by one million before it writes the row, so every platform lands in the same unit. You never need to divide cost yourself.
| Platform | Metric etlmcp reads | Unit the platform sends |
|---|---|---|
| Google Ads | metrics.cost_micros |
micro-units |
| Meta | spend |
whole units |
| Microsoft Advertising | Spend |
whole units |
costInLocalCurrency |
whole units | |
| TikTok | spend |
whole units |
SPEND_IN_MICRO_DOLLAR |
micro-units | |
| Snapchat | spend |
micro-units |
| GA4 | none: the column stays blank | |
| Shopify | none: the column stays blank | |
Demo (mock) |
made-up figures | whole US dollars |
The table above names the source metric only; each connector page gives the full mapping with its caveats. On TikTok, for example, etlmcp reads auction and reservation spend only, so spend from GMV Max and Branded Mission is not included.
Google defines metrics.cost_micros as the sum of the CPC and CPM costs in the period, and lists the customer's currency_code as immutable, so a Google Ads account cannot change its currency. Meta describes spend as an estimate of what you have spent, and returns the account's currency as account_currency. etlmcp copies that code into the row's currency column and stops the sync if a Meta or Microsoft Advertising row arrives without one. A LinkedIn account that does not state a currency is written as USD.
Adding cost across accounts
Because nothing is converted, two rows can hold cost in different currencies. Summing them gives a number with no meaning. Before you total spend across accounts, either keep currency in your GROUP BY, or convert first.
The fx rule converts at rates you write into the rule, such as one rate per source currency; etlmcp does not look rates up. When it converts cost, it also converts cpc, cpm and cpa on the same row and sets currency to the target, so the row stays consistent. A row whose currency has no rate in the rule fails the run with fx: no rate for {…} -> {…} instead of passing an unconverted amount through. For daily rates kept in your warehouse, see a daily FX rate table.
Ratios built on cost
cpc, cpm and cpa are computed from cost on each row: cost per click, cost per thousand impressions and cost per conversion. They are blank when the divisor is zero. The group rule sums cost and then works the ratios out again from the sums, rather than averaging them. Do the same in SQL; ratios from sums shows how.