You don't even need a custom client. Bittorrent is based on pieces (or was it parts?), which are relatively small blocks of data. As long as your ads do not affect the file otherwise (and they shouldn't) people can seed the common parts (= the actual content), and the incorrect ad pieces would be ignored.