Q on codeshare flights
I am flying CHA-ORD-YWG this summer. The ORD-YWG legs are AC flights, but I will have to buy the ticket with a UA number (AC has no service, not even codeshares, to CHA).
The question is, will I be able to get AC miles for those legs? (I know I will on the CHA legs--flown that route before when Chicago was my real destination.)