How to Combine Direct Sales and Online Ad Networks