If it does not work, that means the product ID is not the default shopify ID. Instead it means you have using an SKU or some other type of ID.
In that case, you need to manually submit the URL’s in the feed: https://support.google.com/merchants/answer/13580733