Element g:id#
Basic information#
This is the unique identifier of products in the feed. It is required for Google Shopping. Google recommends using SKU stock codes from your system as g:id values, since these are unique.
The value can contain up to 50 characters. Both uppercase and lowercase letters without diacritics, numbers, hyphens, and underscores are permitted.
Elements related to g:id that can also be used in the feed:
- g:item_group_id — shared identifier for product variants (group ID)
- g:gtin — numeric product code (e.g. EAN)
- g:mpn — Manufacturer Part Number (MPN)
Frequently asked questions#
- Can g:id be duplicated in the feed, i.e. the same value for multiple products?
- No.
g:idmust be unique for every product. Google Merchant Center will reject products with a duplicateg:idand they will not appear in campaigns. - For instructions on how to find and hide products with duplicate values, see the article How to find and remove duplicate products.
- No.
- What if g:id is missing from my feed — can I fix this in Mergado?
- Yes. Use the Rewrite rule to populate the
g:idelement with the Mergado system variable@MERGADO_ID, which contains a unique number for every product. This gives you unique values for eachg:id. - Other options:
- Hide products with a missing
g:idusing the Hide product rule. - Import values into
g:idusing the Data file import rule. - If you have
g:idvalues in another element, such asSKU, copy them using the Bulk copy values rule.
- Hide products with a missing
- Yes. Use the Rewrite rule to populate the
- What is the difference between g:id and g:item_group_id?
g:idmust be unique for every product, whereas values ing:item_group_idcan be the same (duplicated) for variants of the same product.g:item_group_idis the shared identifier for product variants.
- How do I filter products with specific g:id values?
- On the Products page in Mergado, create a query on the
g:idelement using the enumeration condition — is contained in the enumeration.
- On the Products page in Mergado, create a query on the
What Mergado Audit checks for the g:id element#
- Whether the
g:idelement is missing or empty for any products. - Whether the
g:idelement has the correct length (maximum 50 characters) and does not contain invalid characters — only underscores, hyphens, numbers, and letters without diacritics are permitted. Spaces and letters with diacritics are not allowed ing:id.
If you need help, contact our technical support.