I figured with Christmas coming, it might be a good time to add this. If you want to claim your eshop gold coins on physical games that you received, you can do so by going to the main Switch screen. Then highlight a game, press +, select My Nintendo Rewards Program, select Earn Points.
Easy! Enjoy. Remember they expire after 12 months of redemption.