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:id must be unique for every product. Google Merchant Center will reject products with a duplicate g:id and 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.
  • What if g:id is missing from my feed — can I fix this in Mergado?
    • Yes. Use the Rewrite rule to populate the g:id element with the Mergado system variable @MERGADO_ID, which contains a unique number for every product. This gives you unique values for each g:id.
    • Other options:
      • Hide products with a missing g:id using the Hide product rule.
      • Import values into g:id using the Data file import rule.
      • If you have g:id values in another element, such as SKU, copy them using the Bulk copy values rule.
  • What is the difference between g:id and g:item_group_id?
    • g:id must be unique for every product, whereas values in g:item_group_id can be the same (duplicated) for variants of the same product. g:item_group_id is 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:id element using the enumeration condition — is contained in the enumeration.

What Mergado Audit checks for the g:id element#

  • Whether the g:id element is missing or empty for any products.
  • Whether the g:id element 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 in g:id.

If you need help, contact our technical support.

Was this article helpful?