Hello,
You mentioned you purchase Fences via Steam, Fences from steam do not need an activation code. You just need to login to Steam and activate via it. If you have popup asking for activation, than you have installed not steam version. You need to uninstall that and reinstall only Fences for Steam version.
Thank you,
Basj,
Stardock Community Assistant