If you mean the literal resource, you mine it. If you mean money, the way to earn it is by completing missions or minigames — and in a minigame you have to actually take the coin prize at the end rather than another reward.