There might be more powerful ideas, but I'm thinking pretty simple:
$downrank=%adcount%
www.amazon.com*tag=$inlinks,downrank=2
news.ycombinator.com$inlinks,boost=1