If it is a codeshare, you get 100% of mileage and points.
No upgrades, though.
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Originally posted by worldtraveler19:
flying on AA, only choice is via MIA to MAD... otherwise, like from JFK... you codeshare on Iberia...and I do not recommend it... their service isn't the greatest...even though they are Oneworld alliance... and on cheap coach, only 30% of total mileage is accrued...</font>