Exclude products from a feed
Keep specific products out of a channel export by attaching an exclude product set, or limit an export to just one set with an include filter. A clean, rule-based way to control exactly what each channel receives.
Why exclude products
Not every product belongs in every channel feed. You might want to keep out-of-stock items, gift cards, low-margin products, or an entire discontinued line out of a specific export, without deleting them from your catalog.
MartechFlow handles this with product sets. You define a set once (the products to keep out), then attach it to an export as an exclude filter. The export skips any product that matches that set.
Because the filter is rule-based, it stays correct over time. As products move in and out of the set on each sync, the export follows along automatically.
Include vs exclude filters
Each export can carry an include set and an exclude set, and you can use either or both.
An include filter is the opposite of exclude: it restricts the export to only the products in a set, which is useful for a channel-specific or seasonal feed.
- Exclude set: every product in the set is removed from the export. Everything else is kept.
- Include set: only products in the set are kept. Everything else is dropped.
- Use both together to first narrow to a set, then carve out exceptions (include "Active catalog", exclude "Clearance").
Set up an exclusion
First build the set of products you want out, then attach it to the export.
- 1In the feed, create a product set describing the products to exclude (for example "Out of stock" or a rule like price is less than 5).
- 2Open the export for the channel you want to filter (Google Shopping, Meta, and so on).
- 3Set the exclude set to your new set. To narrow instead, set the include set.
- 4Save. MartechFlow rebuilds that export so the output reflects the filter right away.
- 5Open the export's output and confirm the excluded products are gone.
A quick way to drop out-of-stock items
If your only goal is to hide sold-out products, an export also has a dedicated "exclude out of stock" option that filters on availability without needing a set. Use a product set instead when your exclusion rule is more specific than just stock status, or when you want to reuse the same group across several exports.
Both approaches are evaluated as the feed streams to the channel file, so they scale to large catalogs without loading everything into memory.
What happens if you delete the set
Deleting a product set that an export uses is safe. The export simply stops applying that filter and the link is cleared, rather than the export breaking. After a deletion, review the affected exports if you still want the filtering, and reattach a set.
Editing a set that an export references automatically rebuilds the export so the output stays current with your new rule.