It is important to note that the purchase of the version with no ads is linked to the email address with which you registered in the game.
That is why, if you change your device and enter the game with the same email from which you made the purchase, you will have the possibility to continue playing the version of the game with no ads (not having to pay again).
If you log into the game with a different email address, you will need to pay again for the version with no ads.
For more information, we invite you to visit the article: Why can't I change my email address?