Ask YC: Instead of online ads, wouldn't seamless website embedding work better?
Taking it further, one might even restrict the selection of books to those that would interest acm.org visitors.
One problem though is that of handling accounts. Requiring people to register on acm.org to buy a book when they already have an amazon.com account is questionable -- though doing so would preserve the illusion that this is all acm.org.
Another problem is that seamless embedding requires an amazon.com UI that fits in with the rest of acm.org. Trying to automate this would present some interesting research problems.