Well then openly ask users for consent. EU law does - in absolutely no way, shape or form - forbid targeted ads. What it does is it forces companies to specifically ask for consent before collecting data for such things and people must know that they're consenting to data collection specifically for ads.