You’re thinking of Digital Markets Act which covers extra responsibilities of tech giants on things like interoperability and self-preferencing.
Being able to opt out of personalized ads is requirement of GDPR which has been in effect for a couple of years now and applies to every company providing services in EU.