If you had the code in an ad location template you could do this easily with a template conditional, something like:
Code:
<if condition="$thread[threadid] != XXXX">
Ad code here
</if>
But I don't know how that specific mod works. You should ask for help with mods in the mod thread itself. People who have it installed (or the developer) would be in the best situation to help you.