An fx rule multiplies one amount column by a rate you supply, so that rows from accounts in different currencies arrive in a single currency. You name the column in field and the target currency in to; both are required. The rates object maps each source currency code to the number you multiply by to get the target currency. When the rule converts cost, it also converts cpc, cpm and cpa, and it sets the row's currency column to the target. Without an fx rule, etlmcp never converts anything: every amount is delivered in the currency the platform reports it in.
The rule's shape
A pipeline's rules are a JSON list, applied in order. This pair converts spend and revenue into US dollars, using made-up rates:
[
{"op": "fx", "field": "cost", "to": "USD", "rates": {"AUD": 0.66, "GBP": 1.27}},
{"op": "fx", "field": "conversion_value", "to": "USD", "rates": {"AUD": 0.66, "GBP": 1.27}}
]
fieldis the column to convert. It can be a base column such ascostorconversion_value, or a platform metric underextra., writtenextra.<name>.tois the currency code the amounts end up in. Write codes exactly as thecurrencycolumn holds them, for exampleUSD, notusd.ratesis keyed by the currency a row is in now. A rate of 0.66 underAUDmeans one Australian dollar becomes 0.66 of thetocurrency. You need no entry for the target itself: a row already inUSDis left as it is.- The rates are fixed numbers stored in the rule. They do not change by date, so every day in a sync is converted at the same rate.
- A rule with no
rates, or emptyrates, changes nothing. - A row whose
fieldis empty or not a number is skipped.
What changes in each row
For a row in a currency you listed, the rule multiplies field by that currency's rate and writes to into the row's currency column. Because currency is a standard delivered column, your table shows which currency each row ended in.
Converting cost carries its ratios along: cpc, cpm and cpa are multiplied by the same rate, because each is cost divided by something. ctr, impressions, clicks and conversions are counts and ratios of counts, so they never change.
Converting cost does not convert conversion_value. Give revenue an fx rule of its own, as in the example above, or a row will say USD while its revenue is still in Australian dollars. etlmcp keeps track of each column separately inside the rule list, so the second rule still knows the revenue is in AUD even though the first rule already set currency to USD.
Where to put it in the rule list
The rules run top to bottom, so put an fx rule:
- Before any
derivethat mixes money columns. A ROAS worked out asconversion_value / costis only right when both amounts are in the same currency. Convert both first, then derive. - Before a
grouprule. Grouping adds upcostandconversion_valueacross rows with no regard for currency, so an Australian and a British account summed together give a number in neither currency. A group whosebylist leaves outcurrencydrops that column, so anfxrule with rates placed after it is refused when you save, unless an earlierfxrule already converted the rows. Even then, an amount column that the earlier rule did not convert has no known currency once rows in different currencies are combined, and the later rule fails on it. - Before a
selectorrenamethat removescurrency. If an earlier rule drops thecurrencycolumn, a laterfxrule with rates is refused when you save, with a message that startsfx (rule {…}): an earlier rule drops currency, so the. Move thefxrule up, or keepcurrencyin the list. Aconstantrule that setscurrencygives the rows a currency again.
Errors
When you save or preview rules, a rule without field or to is refused with fx (rule {…}) needs 'field' and 'to'. Rule positions in these messages count from 0, while the dashboard editor numbers its rows from 1, so rule 0 is the editor's first row.
Two errors appear only when the rule meets rows, in a preview or while a sync applies the rules:
fx: no rate for {…} -> {…}names the row's currency and the target, for example aEURaccount whenrateslists onlyAUDandGBP. Add the missing currency torates.fx: a row has no currencymeans etlmcp could not tell what currency the amount is in: the row'scurrencyis empty, or agroupafter an earlierfxrule combined rows whose unconverted amounts were in different currencies. Move everyfxrule above thegroup.
During a sync, either one fails the run and nothing is delivered. etlmcp does not retry it, because running the same rules again gives the same error; fix the rule and start the sync again. See run statuses for how a failed run shows, and transform errors for every other rule message.
Adding an fx rule
The pipeline editor in the dashboard has no fx option. When a pipeline already has an fx rule, the editor shows it as a read-only line of JSON with its kind locked. Saving from the editor keeps that rule exactly as it is, in its place, and you can delete it with the remove button, but you cannot type a new one or change its rates there.
The public REST API and the MCP tools do not write rules either: Get a pipeline and list_pipelines show a pipeline's rules, including any fx rule, but nothing there changes them. Today the only way to set one is the pipelines endpoint the dashboard itself calls, which takes the whole rule list as JSON and works only with your signed-in dashboard session and a verified email address.
Where amounts come from without it
A Google Ads or Meta row is in the ad account's own currency, a GA4 row is in the property's currency, and a Shopify row is in the store's currency. etlmcp does not look up exchange rates. If you report across accounts in several currencies and do not use an fx rule, keep currency in your table and convert in your own queries, or group by currency rather than adding amounts together.