The conditional you are using is valid within a template only, however you can exclude usergroups within the plugin PHP code. For example:
PHP Code:
global $ids;
$excluded = array(5, 6, 7);
if (!is_member_of($vbulletin->userinfo, $excluded) AND $post['postid'] == $ids[2])
{
$template_hook['postbit_end'] .= 'Ad goes here...';
}
Make sure the HTML you add is within the single quotes...it needs to be a data string.
I prefer using plugins rather than hacking templates, if at all possible.