Advertiser buys ads (via a network intermediary) on "Good sites, but not Pirate Bay"
Evil person creates a (simple, weak) good site, and sells ads on it.
Advertiser pays Evil person to show ads on simple, weak, good site.
Evil person then displays those ads (via iframe) on Pirate Bay.
Advertiser thinks the end-user visited Good site.