Gold is obtained as a random and fixed reward from missions, bosses and the dungon. You can also get gold from the daily task, the copper box and the adventure.
However, the most important source of gold income is the sale of the built and unneeded weapons, armor and surplus materials.