From Desert Operations Wiki
Gold is earned from the Mines. You can use it to pay your Spy Units. It will play a bigger role later in the game. When you attack a specific target. Spying can tell you how many Units your opponent has stationed. In the beginning of the game espionage is not too important.