mercenarily

adverb
  1. in a way that is motivated primarily by money or material gain rather than ideals or ethics

Examples