Each level has the same five badges associated with it. These are:
- Successfully complete the level
- Collect more than a third of the coins
- Collect all treasure chests
- Shoot all targets
- Collect all powerups
Badges do not have to be earned all in one run. Furthermore, the locations of the coins, chests, targets and powerups are all static if you make the same turns each time. I recommend making all left or all right turns at a fork and only switch it up if something isn't working for you.
The last badge is unobtainable until you purchase a powerup in the store. I recommend Ghost Mode, the first powerup on the list underneath Extra Life. This will also earn you...
It's much easier to do it with just the one powerup rather than all three, as you only have to collect the one or two instances of Ghost Mode rather than up to six with the other two included.