Facebook already has this software.
It generates the gift (ad) from our likings, taste, birth date etc., we have provided to it.
So it maintains the database of preference, but keeps it on its server, and creates gifts, but from its sellers. Only sending the gift through drone is due, I think.
Regards,
Anand