Great question — answering as the UphillTech team:
The short answer is "yes" - in-app purchases can earn affiliate commissions. However, there are a few technical details. With the new platform (PHG, that took over for LinkShare and DGM on Oct. 1), only in app purchases from within the app that was referred in your affiliate link will be eligible for commissions. Previously, and still with Tradedoubler, an in app purchase from any app is eligible for a commission. It's also important to point out that the affiliate window (how long the affiliation lasts for) is/was 72 hours for LinkShare, DGM, and Tradedoubler while it's 24 hours for PHG.
Full answer by Geniuslink: https://stackoverflow.stackexchange.com/a/19339864 (CC BY-SA 3.0).
Need it done for your business? UphillTech.