Found in a Meta documentation (link below ) that for v20.0+, the Impressions optimization goal has been deprecated for the legacy Post Engagement objective with ON_POST destination type.
https://developers.facebook.com/docs/marketing-api/reference/ad-campaign
enter image description here