# Feed Mapping: Columns, Renames, and Transforms

Source: https://ducted.app/help/kb/feed-mapping
Category: Feeds & Mapping

Feed mapping lets you control exactly what columns appear in your custom feed, what they're called, and how values are transformed.

## Adding a column

In the Feed Editor, the column picker on the left shows all available source columns. Click a column to add it to your mapping, or click **+ Add Row** to add an empty mapping row manually.

## Source types

For each mapping row, you choose a source:
- **Column** - maps from a source column. You can rename the output column to anything.
- **Fixed value** - always outputs the same static text value (e.g. `new` for condition, `in stock` for availability)
- **Mixer column** - maps from a data source joined via Feed Mixer (if active on this project)

## Price columns

The source picker lists every column we recognise as a price (by its name, such as price, pricing, MSRP, fee, rebate, discount, savings, cost, payment, amount, also with a currency ending such as `price_dollars`, and reviewed by us as sources teach us new ones) under **Prices**, and on a price field that group comes first, right under the best matches. On a DealerOn website every price line the dealer configured is its own column there (`price.selling_price`, `price.dealer_fee` and so on), and the ready-made `price`, `msrp`, `regular_price` and `sale_price` columns say which line they were picked from. The picker lists them whether or not your Source Data row includes them in its URL.

## If empty, use another column

In the field inspector, **If empty, use another column** gives a mapped field a second source that fills only the records whose first source is empty. AutoMap sets some up for you, marked next to the source: **+ VIN** for the vehicle specs decoded from the VIN, and **+** with your business address's name (for example **+ Showroom**) for the location fields of automotive channel feeds, which then take that address from **Settings > Location** for every vehicle your own column leaves empty. If you remove a fallback, AutoMap does not add it back.

A column of your own with a value wins over a project field of the same name, even when it is spelled differently: an `Address`, `LATITUDE` or `Store_Code` column in your data is served as it is.

## Values saved on the project

A few fields take one value for the whole project rather than a column of your data. In the Feed Editor their row shows its own control instead of the column picker while it is empty or reads the project's value:

- **Store code** on Google Vehicle Listing Ads (the `store_code` row and the Store code part of `vehicle_fulfillment`): a text box, *Your Google store code*. It must match the store code in your Google Business Profile. Type it and click **Save** or press Enter. When your data has a `store_code` column of its own, the row keeps the column picker.
- **Vehicle category** on a vehicle project (`google_product_category` on Google Vehicle Listing Ads, `vehicle_type` on Meta, TikTok and Microsoft automotive feeds): the **Set vehicle category** button opens the project's category editor in a popup. See [Vehicle Categories](https://ducted.app/help/kb/vehicle-categories).

Both save on the **project**, not on the feed, so every feed of the project uses the same value: the open feed reads it at once (click Save on the feed to keep it), and another feed whose row is still empty picks it up the next time you open and save it. These rows stay in the feed while they are still empty, so the control is there when you come back (the feed serves the column empty until then). **Map a column instead**, under the row, gives the row the ordinary column picker back.

## Renaming columns

The **Output column name** is what appears in the downloaded feed. Set it to whatever the target platform expects. For example, map `product_title` → `title` for Google Shopping, or `img_src` → `image_link`.

## Transforms

Transforms modify values before output. Apply one or more transforms per row - they run in order.

Available transforms:
- **lowercase / UPPERCASE / Title Case** - change text case
- **strip** - remove leading and trailing whitespace
- **number** - strip all non-numeric characters (useful for price columns with currency symbols)
- **prepend / append** - add fixed text before or after the value (e.g. prepend `https:` to relative URLs)
- **replace** - find and replace text within the value
- **truncate(N)** - cut value to N characters maximum

## Reordering

Drag the handle at the left of each row to reorder columns. The CSV output preserves your row order.

## Group fields (several parts in one column)

Some platforms pack several values into one column. Google Vehicle Listing Ads wants an in-store offer as `vehicle_fulfillment(option:store_code)` with the value `in_store:STORE123` - the option and the store code, joined by a colon, under a header that names both parts.

In the Feed Editor such a field is a small tree instead of one text box:

- The **parent row** is the field. It shows the value the feed will serve and carries the field's health badge.
- One **child row per part**. A part is a **choice** from the platform's values (In store / Online), a **column**, or a **text** you type - a store code can be typed once, picked from a column when every vehicle carries its own, or saved on the project with **Save on the project** so every feed of the project reads the same code.
- A part that only applies with a certain choice (the store code only matters for in-store offers) appears while that choice is made and leaves when it is not. Nothing stays hidden in the feed.

The feed header and the value follow the parts you filled: `vehicle_fulfillment(option)` with `online`, or `vehicle_fulfillment(option:store_code)` with `in_store:STORE123`. Feed health checks the served value and points at the part that needs attention. A feed that already sends the value as one fixed text keeps working; the inspector's **Parts** row type converts it when you want the tree.

### Lease and finance offers (Google Vehicle Listing Ads installment)

Google's `installment` is the same kind of field with more parts, and which parts an offer needs depends on the **credit type** and the **country**. The tree asks for the choice first - **Finance** or **Lease** - then shows the term (months) and the monthly payment every offer needs, and the parts your market requires: the **APR** for finance offers in the US, Canada, Germany, Italy, Spain and France (and for every offer in France), the **total amount** for finance offers in Italy and Spain. Down payment, APR, total amount and the German-only mileage allowance wait behind **+ add part** until you want them.

Pick the columns your site exports (`LeaseTerm`, `LeasePayment`, `DueAtSigning`...): a payment part is formatted like a price - two decimals and your project currency - the moment it gets a column, so `$219.72` serves as `219.72 USD`. The feed header lists the parts you filled, `installment(months:amount:downpayment:credit_type)`, and feed health points at the exact part Google would reject. When your source carries a term or a payment column, AutoMap adds the installment row for you; without one it leaves the optional field out.

#### A payments export with both leases and finance offers

When one export carries both deals - a lease on some vehicles, a finance offer on others - switch the credit type from **Choice** to **Column** and pick the column that says which offer each vehicle has. Words like "Lease", "Lease Offer" or "Finance" are understood on their own; a word the platform does not know is kept as written and feed health flags it. Give each payment part its lease column and the finance column as its fallback (the inspector's **fallback** step): every vehicle then serves its own term, payment and down payment, and the APR check applies to the finance offers only.
