That’s simple, just go to the store option in the game and tap on the “Restore Purchases” button.
Keep in mind that any Tokens or Mazes (purchased with Tokens) can’t be transferred from one device to another, as they’re treated as consumable items.
You can, however, restore the “No ads” feature by using the same iTunes or Google Play account with which you made purchases in the first place.