As described, I’m using metaobjects.
When printing {{ product.metafields.namespace.key }} I get the gid reference url.