Disable header banner on specific Posts

You can make the banner unavailable to certain posts by using if condition.

$post_id = get_the_ID();
if ($post_id != idwheredisabled || $post_id != id2wheredisabled || .... ){
    Adsense code
}

if there are many ids then you can load them into an array and check if exists in array.