In Pokémon Gold, you can buy Ultra Balls at the Indigo Plateau. This is the main place mentioned for purchasing them.
Stocking up before challenging the Pokémon League is a smart idea. Ultra Balls are useful for catching rare or powerful Pokémon, so having enough can make the endgame easier.