I think I'll be able to do this all in the SHOWTHREAD template. With header bidding, you need to first make a bidding call in the header, for every ad that will be shown on the page. So, for example, if a thread has 0 responses, you shouldn't make header calls for ads that show after post #2.
I believe the modulo operation in a conditional statement can do this best, at the top of SHOWTHREAD. So, since I show ads in the 1st and 2nd posts on a page (post #1, post #2, post #11, post #12, etc.), it will look something like this:
Code:
<vb:if condition="$thread['replycount'] % $perpage == 0">
MAKE HEADER CALLS FOR 1ST POST ADS ONLY
<vb:else>
MAKE HEADER CALLS FOR 1ST AND 2ND POST ADS
</vb:if>
Let me know if that looks good.