ETLMCPData Conveyance Works
Log in Start free
Glossary

currency

What the currency column holds: the code of the currency an account reports money in, where etlmcp reads it for each platform, and why the fx rule needs it.

currency is the column that says which currency a row's money is in. It holds a three-letter code such as USD, EUR or AUD: the currency of the ad account, GA4 property or Shopify store the row came from. etlmcp never converts amounts on its own, so cost, conversion_value, cpc, cpm, cpa and any money column under extra are in that currency. The column is also what the fx rule reads to know which rate to apply, so a pipeline that converts money must keep it.

What the column means

currency describes the row, not the table: two rows in the same table can hold different codes when your pipelines pull accounts that bill in different currencies. A sum of cost over rows with different codes is a number in no currency at all.

The code is text. In a PostgreSQL destination etlmcp creates the column as text, next to the double precision money columns, so you filter and group on it like any other label.

Where etlmcp reads it, platform by platform

Each connector takes the code from the platform's own account settings or report:

Platform What etlmcp puts in currency
Google Ads The account's currency_code, read with each report row, or the currency stored for the account. Google's field reference marks the field immutable.
Meta The account_currency Meta returns on each insights row, or the currency stored for the account when a row lacks it. A row with neither fails the sync.
Microsoft Advertising The CurrencyCode in the report, or the currency stored for the account.
LinkedIn The ad account's currency. If LinkedIn reports none, etlmcp writes USD.
Pinterest The ad account's currency, in upper case. An account set to UNK is treated as having no currency.
Snapchat The ad account's currency, read before each report.
TikTok The currency on each report row, or the advertiser's currency when a row has none.
GA4 The currency code in each report's metadata, which is the property's reporting currency.
Shopify The currency of the store's order amounts (the shop currency, not what a buyer paid in).
Demo connector Always USD.

For GA4, Google's help page says a property's currency defaults to USD and that its reports show every money value in that one currency, converting transactions in other currencies at the previous day's rate. So a GA4 row's currency is the property's setting, not the currency each purchase was made in.

When the code is missing

For most platforms, etlmcp will not store money without knowing its currency. If the platform gives no code and none was stored when you picked the account, the sync stops with an error instead of writing the rows (LinkedIn is the exception, falling back to USD). The messages say which side is missing:

  • pinterest has no currency set for this ad account
  • tiktok did not report this account's currency
  • microsoft report did not say which currency the account uses

Shopify adds one more case. A day's orders are added up into one row, so if the store's currency changed partway through a day, that day cannot be summed and the sync fails with this store's currency changed during a day; its orders cannot be added.

After a currency change on the platform, days etlmcp already stored keep the code they were pulled with. The GA4 property currency change guide covers re-pulling older days after GA4 rewrites them.

How the fx rule uses it

The fx rule looks up each row's rate by the code in currency, multiplies the amount, then writes the target code into currency. So:

  • A rule that removes currency before an fx rule, such as a select that leaves it out, makes the fx rule fail when you save the pipeline. Keep the column, or convert first.
  • A row whose code is neither the target nor in the rule's rates fails the run. List every code your accounts report, exactly as the column shows them.

Using it in reports

Keep currency in every table that holds money. Before you add up spend across accounts, either convert with an fx rule or group by currency and compare totals per code. For LinkedIn spend that differs from a USD dashboard or invoice, see LinkedIn local currency vs USD. For rolling several Google Ads accounts into one report, see account currency and time zone.

Related

Sources

  1. customer | Google Ads API — developers.google.com, checked
  2. Currency reference - Analytics Help — support.google.com, checked