Nick Delgrego Welcome to FT
The normal practise would be to contact ANA and ask for "original routing credit". UA cannot send ANA a request for ff miles to be credited to your account, as you did not fly the UA flight The ANA/UA codeshare complicates the issue. Try both again with the words "original routing credit".
The good news is you can/may be able to get ff miles for the AA flight.
Are you a member of any Oneworld airlines ffp? JL or AA or xx?
Where to Credit | Where to Credit American Airlines Flights