↑↓ selectEnter openEsc close

    1. Elbuz
    2. Export and marketplaces
    3. Feeds and marketplaces

    How to split feed products into bidding groups: custom_label ad labels

    5 min readUpdated

    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

    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”.

    1. Expand the block and select “Add labels to the feed”.
    2. In the five lists custom_label_0…custom_label_4, choose which label goes into which slot, or “— not used”.
    3. Click the flask button “Check”: the product should get g:custom_label_N tags with values.
    The Ad labels (custom_label) block: the Add labels to the feed checkbox, five custom_label slots and thresholds
    1Add labels to the feed
    2custom_label slots
    3Margin thresholds
    4ABC period
    5Price limits
    1. Turns on the g:custom_label_0…4 tags in every feed product.
    2. Which label goes to which tag; “— do not use” frees the slot.
    3. The high and mid limits in margin percent.
    4. How many days of revenue to count; 730 here.
    5. 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.

    Template check on product 89: five g:custom_label_0…4 tags with labels at the end of the item node
    1Margin
    2ABC
    3Price segment
    1. custom_label_0 — product margin: low, mid or high.
    2. custom_label_2 — ABC by sales.
    3. 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

    LabelValuesHow it's calculated (default thresholds)
    Marginhigh, 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
    Stockin_stock, low_stock, preorder, outlow_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 salesA, B, C, noneProduct 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 arrivalnew, regularnew — the product was added to the catalog no more than 30 days ago
    Price tierlow, mid, high, nonePrice 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 performanceleader, ballast, no_impr, regular, noneGoogle 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.

    FieldDefaultWhat it changes
    “Margin mid — from, %”15lower bound of mid; everything below is low
    “Margin high — from, %”30lower 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”5the highest stock at which a product is still low_stock; 0 — low_stock isn't assigned
    “ABC — sales over, days”90sales period for ABC, up to 1095 days
    “New — added within, days”30product age for new, up to 365 days
    “Price: low → mid threshold”, “Price: mid → high threshold”emptyyour own price boundaries instead of category thirds: price below the first — low, below the second — mid, otherwise high
    “Leader (leader) — conversions from”2how many conversions in 30 days make a product leader
    “Dead weight (ballast) — clicks from, no conversions”20how 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:price tag. 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} gives top_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 seeWhyWhat 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

    Was this article helpful?

    Missing a feature? Tell us.

    We will add it for free if other users need it too.

    If only you need it, we will agree on it separately.

    Article contents

    Suggest an improvement

    Try Elbuz free