Purchases and stopping ads

How can I put the steps of the process of purchasing a game to stop ads in GDevelop?