Elbuz calculates ad labels for each product and puts them into the custom_label_0…4 tags of a Google, Meta or TikTok feed. In ad accounts, they split products into bidding groups.
When you need this:
- Same bids for profitable and loss-making products — the margin label splits the catalog: high, mid, low, loss, no_cost.
- Ads run on out-of-stock products — the stock label marks them out.
- Best sellers need a campaign — the ABC label picks out products with 80% of revenue.
- Too few ready-made segments — feed rules build your own label.
Where to start: Google, Meta or TikTok template → “Ad labels (custom_label)” → “Add labels to the feed”.
What ad labels can do
- One checkbox — tags in every product — no need to edit the XML template.
- Six ready-made labels — margin, stock, ABC by sales, new arrival, price tier and Google performance.
- Your own slot mapping — you decide which label goes into which
custom_label_N. - Thresholds for your business — margin, “low stock”, sales period, new arrival age, price boundaries.
- Your own labels — feed rules see the ready-made labels and can overwrite any slot.
- CSV feed for Meta and others — labels are fields in the price list palette.
How to add labels to the feed
Labels are turned on in the template card of the “Google Merchant (XML)”, “Facebook / Instagram (Meta)” and “Tiktok” formats, as well as Kelkoo, Pinterest and Microsoft Merchant Center — they all run on the Google feed engine.
Where: template card → the “Select data to export” tab → the “Ad labels (custom_label)” block below “Export limits”.
- Expand the block and select “Add labels to the feed”.
- In the five lists
custom_label_0…custom_label_4, choose which label goes into which slot, or “— not used”. - Click the flask button “Check”: the product should get
g:custom_label_Ntags with values.
1
Add labels to the feed2
custom_label slots3
Margin thresholds4
ABC period5
Price limits- Turns on the g:custom_label_0…4 tags in every feed product.
- Which label goes to which tag; “— do not use” frees the slot.
- The high and mid limits in margin percent.
- How many days of revenue to count; 730 here.
- Empty — thirds of prices in the product category.
By default the slots are mapped like this: custom_label_0 — margin, 1 — stock, 2 — ABC, 3 — new arrival, 4 — price tier. The sixth label, “Google performance”, isn't in the default slots: choose it in any slot instead of another one once you connect Merchant Center.
What goes into the file. Tags for occupied slots only are added to each product before the closing </item> tag, and the “XML template” itself doesn't change. A tag with an empty value isn't written to the file.
1
Margin2
ABC3
Price segment- custom_label_0 — product margin: low, mid or high.
- custom_label_2 — ABC by sales.
- custom_label_4 — the price third within the category.
If the template already has custom_label tags — you added them yourself at some point — the program adds nothing and your template is used. To get the ready-made labels into these tags, put the macros {custom_label_0}…{custom_label_4} in them — they take values according to the slot mapping. The macros are in the card's macro list, “Ad labels” group.
What each label means
| Label | Values | How it's calculated (default thresholds) |
|---|---|---|
| Margin | high, mid, low, loss, no_cost | (price − cost price) ÷ price × 100. high — from 30%, mid — from 15%, low — under 15%. loss — price below cost price. no_cost — no cost price, or price 0 |
| Stock | in_stock, low_stock, preorder, out | low_stock — stock from 1 to 5 pcs. in_stock — stock above 5 or an “In stock” type stock status. preorder — an “On order” type status. Everything else — out |
| ABC by sales | A, B, C, none | Product revenue in customer orders over 90 days, excluding canceled ones, from all channels. Products are ranked from the highest revenue: A — the first 80% of revenue, B — up to 95%, C — the remaining products with sales, none — no sales in the period |
| New arrival | new, regular | new — the product was added to the catalog no more than 30 days ago |
| Price tier | low, mid, high, none | Price thirds within the product's main category: bottom — low, middle — mid, top — high. If the category has fewer than 10 products with a price — thirds of the whole catalog. Price 0 — none |
| Google performance | leader, ballast, no_impr, regular, none | Google Merchant Center performance over 30 days. leader — from 2 conversions, ballast — 0 conversions and from 20 clicks, no_impr — no impressions, regular — the rest with impressions, none — performance data not loaded yet. If the data has no conversions at all, leader and ballast aren't assigned. Not in any slot by default — choose it in a slot yourself. How to load the data: connecting Google Merchant Center. If Google Ads is connected and has 30 days of data, the label is calculated from ads: leader also needs positive profit after ad spend, ballast is also assigned when ad spend ate the profit |
no_cost isn't the same as zero margin. A product without a cost price gets a separate value so it doesn't land in the loss-making or low-margin group. Fill in the cost price and the product moves to a margin segment.
The top product by revenue is always A, even if it alone brings more than 80% of revenue. A product with no sales in the period is none, not C.
How to change thresholds
Thresholds are the fields below the slot lists in the same block. They apply to this template only.
| Field | Default | What it changes |
|---|---|---|
| “Margin mid — from, %” | 15 | lower bound of mid; everything below is low |
| “Margin high — from, %” | 30 | lower bound of high; if you enter less than the mid bound, the program sets it equal to the mid bound |
| “Low stock (low_stock) — up to, pcs” | 5 | the highest stock at which a product is still low_stock; 0 — low_stock isn't assigned |
| “ABC — sales over, days” | 90 | sales period for ABC, up to 1095 days |
| “New — added within, days” | 30 | product age for new, up to 365 days |
| “Price: low → mid threshold”, “Price: mid → high threshold” | empty | your own price boundaries instead of category thirds: price below the first — low, below the second — mid, otherwise high |
| “Leader (leader) — conversions from” | 2 | how many conversions in 30 days make a product leader |
| “Dead weight (ballast) — clicks from, no conversions” | 20 | how many clicks without a single conversion make a product ballast |
Price boundaries work only as a pair: if one field is filled or the second boundary isn't greater than the first, the program falls back to category thirds. Your own boundaries are the same for the whole catalog, so the “cheap” tier means the same amount for cables and for laptops.
When and from what labels are calculated
Labels are calculated during each export and aren't stored anywhere: they're not in the product card or in the “Products” grid. To see a specific product's values, use the “Check” button in the template card.
Labels are calculated for all catalog products with the “Export to file (to website)” checkbox, not just the template's filtered set, and price thirds are calculated from them too. ABC is based on all store sales. So with the same ABC period, a product that is A in the Google feed is also A in the Meta feed.
- Margin is based on the catalog's base “Price”. Not on the sale price, not on the price after feed rules (for example, a channel markup) and not on the formula in the
g:pricetag. Cost price comes from the product card, not from the warehouse; currencies aren't converted. - Stock is based on the product's stock and stock status in the catalog. The template's warehouse and the “Stock-based update setup” table don't affect the label — only
g:availability. - ABC is shared across the store, not per channel. A product variant counts as a separate product.
- Price tier is based on the product's main category.
How to build your own label with feed rules
In the template's “Feed rules”, the ready-made labels are condition fields: “Label: margin”, “Label: stock”, “Label: ABC by sales”, “Label: new arrival”, “Label: price tier”, “Label: Google performance” and the number “Margin, %”. The custom_label_0…custom_label_4 fields can be both checked and changed with the “Set value” action.
The order is: first the program calculates labels and maps them to slots, then feed rules run, and only then values go into the template. So a rule sees custom_label_N already filled in and can overwrite any of them.
Rule examples:
- “If Label: margin = high and Label: ABC by sales = A →
custom_label_0=hero” — a separate campaign for products that both sell and earn; - values can be built from fields:
top_{ad_label_abc}givestop_A,top_B…; - “If Label: stock = out → Exclude” — the product won't be in the feed at all, not just out of the campaign;
- “If Margin, % is less than 5 and Label: margin is not equal to no_cost →
custom_label_0=thin” — your own threshold without touching the general ones. The second condition is needed: for a product without a cost price, “Margin, %” is empty and the rule would read it as 0.
How conditions, actions and rule order work is covered in “Feed rules”. The “Export limit (filter)” tab has no labels: you can filter products by label only with a feed rule.
Labels in CSV and XML
A CSV feed (for Meta, TikTok or another channel that accepts a table) is built on the “Price list (XLSX, CSV)” type. In the “Add field to export” palette, “Macros” group, there are fields “Ad label: margin”, “…: stock”, “…: ABC by sales”, “…: new arrival”, “…: price tier”, “…: Google performance”. Add a field and enter custom_label_0 in “Field name” — this becomes the column header.
XML templates fill in labels with the macros {ad_label_margin}, {ad_label_stock}, {ad_label_abc}, {ad_label_new}, {ad_label_price}, {ad_label_perf}, {ad_margin_pct} if you put them in the “XML template”.
The price list and XML have no settings block: thresholds there are always the defaults. The prom.ua (XLSX), CommerceML, Elbuz Tunnel templates and direct API connections don't support labels.
Scenarios
Margin-based bids in Google Shopping
Turn on labels in the Google template. In Google Ads, subdivide the product group by custom_label_0: high — higher bid, mid and low — lower, loss and no_cost — minimum or excluded.
Don't pay for clicks on out-of-stock products
Slot 1 — stock; exclude custom_label_1 = out in the campaign. Or use the feed rule “Label: stock = out → Exclude”: then the product won't be in the file at all.
A separate campaign for best sellers
Slot 2 — ABC. A campaign for custom_label_2 = A, the rest in the general one. Seasonal sales — increase “ABC — sales over, days” so that A doesn't contain only last month's products.
Your own price boundaries
“Price: low → mid threshold” = 500, “Price: mid → high threshold” = 3000. Tiers become the same for the whole catalog, and one “up to 500” campaign can cover all categories.
CSV feed for Meta
Price list → “Add field to export” → “Ad label: margin”, “Field name” — custom_label_0.
What to do when labels are wrong
| What you see | Why | What to do |
|---|---|---|
No custom_label tags in the feed |
“Add labels to the feed” is cleared or all slots are “— not used” | Select the checkbox and choose labels in the slots |
| Tags are there but empty or with old values | The “XML template” already had its own custom_label tags — the program doesn't add its own |
Put {custom_label_N} macros in these tags or remove them from the template |
Almost all products are no_cost |
Products have no cost price | Fill in the cost price in the product cards |
Almost all products are ABC none |
They have no orders in 90 days | Increase “ABC — sales over, days” |
low_stock never appears |
Stock is above the threshold, or there's no stock quantity at all — only a stock status | Change “Low stock (low_stock) — up to, pcs”; this label doesn't work without stock quantities |
A rule changed custom_label, but the file has the old value |
A rule higher up with “Stop here” fired on this product | Check the rule order in the “Feed rules” preview |
FAQ
Where can I see a specific product's label?
With the “Check” button in the template card: choose a product, and the result shows the g:custom_label_N tags with values. The product card has no labels because they're calculated during export.
Is margin calculated from the sale price?
No, from the catalog's base “Price”. The sale price, a feed rule markup and the formula in g:price don't affect the label.
Can I export only high-margin products to the feed?
Yes, with a feed rule: “If Label: margin is not equal to high → Exclude”. The “Export limit (filter)” tab has no label conditions.
Will labels slow down the export?
Not noticeably: labels are calculated in one pass over the catalog at the start of the export. If the checkbox is cleared and labels aren't used in the template or rules, the program doesn't calculate them at all.
Can I have different margin thresholds for Google and Meta?
Yes: thresholds are stored in each template separately. Price thirds are the same for all templates, and so is ABC if the sales period is the same in the templates.
Where to find it and who has access
- Menu
- Directories → Operations → Data export → Google, Meta or TikTok template card
- Access right
- “Export template setup”
- Have ready
- product cost prices — for the margin label
Related topics
- If the Google feed isn't set up yet — Google Merchant feed.
- If you need your own label or to exclude products by label — Feed rules.
- If you need labels in a CSV feed — Price list columns.
- If you need the “Google performance” label — How to connect Google Merchant Center.
- If the stock label doesn't match what's in the warehouse — Stock statuses.
