If it's S class booked on UA stock and on UA metal, then you'll get your AP status miles.
If it's S class booked on UA stock but AC metal then it depends on the city-pairing on transborder routes. For example ORD-YYZ S class UA stock on AC metal is Tango mapped.