A machine that can record your dreams? Surely a thing from science fiction - but no. As with many far-fetched ideas people would generally rule out as sci-fi this is another rooted in current science.
'Mind Reading' Software Could Record Your Dreams (New Scientist; Friday 12th December 2008)
Now with some of the fantasy apocalyptic epics I have this could be a truly exciting - and I'm not sure if inputting adverts in my dreams would actually be all that unique either because , as purplekaz pointed out the other day, I've had dreams that have been interrupted by ad breaks already!