In-app purchases won't show in "my apps" but they are still tied to your Google account and any time you reinstall to that account, the purchase will be automatically recognized and the ads will be removed. This is true for any device using that account, so for example if you have a phone and a tablet, or multiple phones using that account, you can install to both and both will be ad-free.