Element g:mpn#
Basic information#
The g:mpn element (Manufacturer Part Number) contains the manufacturer part number. It is a unique identifier for a specific product among all products from the same manufacturer. The value in g:mpn must be unique within the feed. The maximum code length in g:mpn is 70 characters.
Elements related to g:mpn that can also be used in the feed:
- g:gtin — numeric product code (e.g. EAN)
- g:brand — product brand or manufacturer
- g:identifier_exists — used when no unique product identifier is available in
g:gtin,g:mpn, org:brand
Frequently asked questions#
- Is the g:mpn code required for products?
- Yes, when the product does not have a unique identifier assigned in
g:gtin(e.g. UPC code, EAN, ISBN). - If the product has no unique identifier at all (e.g. it is a custom item),
g:mpnis not required and is optional only.
- Yes, when the product does not have a unique identifier assigned in
- How do I populate the g:mpn element with a value from another element?
- Use the Bulk copy values rule to copy the value from another element — for example, from
PRODUCTNOtog:mpn. - You can also use the Rewrite rule to save the value of another element (a variable) into
g:mpn, for example:%PRODUCTNO%.
- Use the Bulk copy values rule to copy the value from another element — for example, from
- What if I manufacture products myself and have no unique identifier?
- If you have no
g:gtin(EAN), nog:mpn, and no brand (g:brand), you must use theg:identifier_existselement and set it tofalseorno.
- If you have no
- Can I hide products with a missing g:mpn in Mergado?
- Yes. Create a query to find such products and apply the Hide product rule to it.
What Mergado Audit checks for the g:mpn element#
- Whether
g:mpnis missing or empty for any products, in relation to theg:gtinandg:identifier_existselements. - Whether
g:mpncodes are unique and no duplicate values (i.e. the sameg:mpncode for multiple products) appear in the feed. - Whether the
g:mpnelement has the correct length — maximum 70 characters.
If you need help, contact our technical support.