The fare class is what decides if you earn 100%. Unfortunately, not all of UA's fares translate into the same fare class with AC. The simplest solution is to follow the
earning chart. Usually this ends up requiring buying one or two fare classes higher than AC starts flex at so W at minimum.