
Product feeds: attribute reference
Discover the most-read articles
When you add a product feed, Affilae reads the columns of your file and asks you to map them to its own attributes. This page is the reference for those attributes: which ones are required, what they are used for, which column names Affilae recognises on its own, and their equivalent in a Google Shopping export.
How Affilae reads your columns
- Affilae compares each column name with a list of known names. The match is exact, regardless of case:
Priceis recognised,product priceis not. - An unrecognised column is not lost: pick it yourself in the attribute’s drop-down list, on the Attribute and value mapping screen.
- Columns you do not map to any attribute stay, unchanged, in the tracked feed your affiliates receive. Affilae simply does not use them.
The attributes, one by one
| Attribute | Required | Used for | Names recognised automatically | Google Shopping equivalent |
|---|---|---|---|---|
| Product ID | Yes | Identifies each product. For Top Sold Products, it is the import key: a product without an ID is not imported. | id, id_product, product_id, g:id, ref, reference |
g:id |
| Title | Yes | The product name, shown by your affiliates and on the top selling products cards. | title, name, g:title |
g:title |
| Description | Yes | The sales description, without HTML tags. | description, g:description |
g:description |
| Landing page | Yes | The URL of the product page. This is the column rewritten with tracking in your affiliates’ feed. | url, link, product_url, deep_link, g:link |
g:link |
| Image | Yes | The URL of the main picture, shown by your affiliates and on the top selling products cards. | image_link, image, url_image, g:image_link |
g:image_link |
| EAN | Yes | The barcode. If your file has none, Affilae fills in No match for you. | ean, ean13, gtin, g:gtin |
g:gtin |
| Price | No | The price your affiliates display. | price, g:price, sale_price, g:sale_price |
g:price |
| Category | No | The product category, passed on as it is. | category, product_type_en |
g:product_type or g:google_product_category, to pick by hand |
| Availability | No | In stock or not. | availability, g:availability |
g:availability |
| Language | No | The product language. | language |
— |
| Additional images | No | The other pictures of the product. | additional_images_link, g:additional_image_link, product image 1 |
g:additional_image_link |
| Promotion | No | The promotional price or label. | promo |
g:sale_price, to pick by hand |
| Promo code | No | A voucher code tied to the product. | code |
— |
Attributes specific to Top Sold Products
For a feed created with the Top Sold Products use, two attributes are added to the mapping screen:
| Attribute | Required | Used for | Names recognised automatically | Google Shopping equivalent |
|---|---|---|---|---|
| Conversion tag | Yes, for Top Sold Products | The feed field holding the product reference your conversion tag sends. See Top selling products: sending the products of each order. | — | — |
| Product group identifier | No | The ID shared by every variant of an item (sizes, colours). | not detected, pick it by hand | g:item_group_id |
The Product separator in the conversion tag is set there too: semicolon by default, comma or vertical bar.
File structure
- CSV: a first header row naming the columns, then one row per product. The field separator can be a comma, a semicolon, a vertical bar or a tabulation.
- XML: a tag repeated for each product, to give in XML Item. Affilae recognises it on its own when it is called
item,entry,product,produit,row, among others. - JSON: the key holding the list of products, to give in JSON Item.
- Accepted encodings: UTF-8, UTF-16 and ISO-8859-1. Files compressed with gzip are accepted.
The same product in a semicolon CSV:
id;title;description;link;image_link;gtin;price;availability TRW-28;Sac à dos Trailwind 28L;Sac de randonnée léger, 28 litres;https://www.exemple.com/trailwind-28;https://www.exemple.com/img/trw-28.jpg;3760123456789;89.90 EUR;in stock
And in a Google Shopping XML export, where the product tag is item:
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
<channel>
<item>
<g:id>TRW-28</g:id>
<g:title>Sac à dos Trailwind 28L</g:title>
<g:description>Sac de randonnée léger, 28 litres</g:description>
<g:link>https://www.exemple.com/trailwind-28</g:link>
<g:image_link>https://www.exemple.com/img/trw-28.jpg</g:image_link>
<g:gtin>3760123456789</g:gtin>
<g:price>89.90 EUR</g:price>
<g:availability>in stock</g:availability>
<g:item_group_id>TRW</g:item_group_id>
</item>
</channel>
</rss>
Values your affiliates can read
Affilae passes your values on to your affiliates as they are. Their tools (comparison engines, aggregators, import modules) most often read the Google Shopping format: that is the safest choice.
- Price: the amount with a decimal point followed by the currency, for example
89.90 EUR. - Availability:
in stock,out of stock,preorder,backorder. - Links and images: full URLs starting with
https://, answering without authentication. - Identifiers: stable from one export to the next, with no leading or trailing space.
Best practices
- Name your columns as in Google Shopping: most are recognised automatically and your affiliates find their bearings.
- Fill in Price, Category and Availability even though they are optional: these are the columns your affiliates use most.
- For Top Sold Products, choose as Conversion tag the column holding exactly the reference your conversion tag sends.
- After a change in your export structure, reopen the feed and validate the column mapping again.
Related articles
- Adding a product feed
- Product feeds: what they are for and what your file must contain
- Top selling products: sending the products of each order
- Product feed error codes
- Publishers: getting and using a tracked product feed
Frequently asked questions
Yes, it is the most common case. Declare it as XML: most columns are recognised automatically. Only the category and the product group identifier have to be picked by hand.
Pick it yourself in the drop-down list of the attribute, on the Attribute and value mapping screen. You can also rename it in your export with a recognised name.
They stay, unchanged, in your affiliates’ tracked feed. Affilae does not use them, but your partners can.
No. If your file has no EAN column, Affilae fills in No match for that attribute itself.
The one holding exactly the product reference your conversion tag sends with each order. It depends on your integration: see Top selling products: sending the products of each order.
