For getting free gold, you have to mine it. It takes a lot of time, but you can progress in the game without using cheats. But if you want instant upgrades, you can use township cheats that you can install from the internet.