The bp admin bar gets called and generated in the footer by a add_action( 'wp_footer', 'bp_core_admin_bar', 8 );
call. When the action ‘wp_footer’ is triggered it gets generated. You might try sneaking your ad in with a priority of 7. Then it will get generated before the admin bar’s priority of 8. I don’t know what’s gonna happen with the css for the admin bar. You might have to modify that. Not sure.
So then would this code remove the admin bar? Would I place it in functions.php?
remove_action(‘wp_footer’, ‘bp_core_admin_bar’);