Citation?
The ads were making millions(1) to the people behind the TPB, and the legal cost is several orders of magnitude less.
update: (1) http://www.thelocal.se/20100930/29334 "The Pirate Bay earned up to 35 million kronor ($5.2 million) in advertising revenue from the file sharing website" (2010, already)