That would require more detail, as that message can show up on numerous pages.
If your not logged in and click on a members profile and they are disabled for guests, it will produce that message on member.php, same for trying to make a new post as a guest, it would show up on newreply.php etc...
If you talking only about the register.php page, then you can wrap that ad in a if statement and exclude it from that one page.
Code:
<vb:if condition=”THIS_SCRIPT !== ‘register’”>
Your Ad Code Here
</vb:if>
But as i said above, that is only going to block it on that single page.
Im sure you dont want to block the ad for all guests wither, so doing a if for the group wouldnt work either.