If someone wants to install an advert app on their fridge (I assume in exchange for money) then fair enough.
If I buy a tv I shouldn't just have to accept that, now or in the future, the manufacturer will sell advertising on it.
No, it should be illegal even when done willingly. Because this worsens the bargaining position of everyone else.