A new study examines how retailers can benefit by showing ads from competing companies on their websites.