In Dragon Ball Z: Raging Blast 2, the Dragon Balls turn up in Galaxy Mode. You earn one by defeating the boss tied to each character's route.
So the method is straightforward if a little repetitive: work through the character you're playing, clear their boss, and collect the ball as a reward.
Gather the full set and you can put them toward the usual wish-granting payoff, which is why completionists tend to rotate through several characters rather than sticking with one.