The “altars” of this verse seem to be the same with those of 2 Kings 21:5, and consequently were not in the temple building, but in the outer and inner courts.
Related Commentaries of 2 Kings 21:4
2 Kings 21:4
4 And he built altars in the house of the LORD, of which the LORD said, In Jerusalem will I put my name.