Ended up earning miles for the whole thing, including the part operated by LY, and getting the fly business to europe promo and fly AA business long-haul promo. Also worked out to be very well timed, because AA is shifting to the revenue based system at the end of the month.