In this guide, I will show you how to add an in-app purchase to remove ads.
I used our free template Martian Marathon to set this up.
After opening the template, go to the mind map and open the Start UI.
Then drag the purchase button to the project.
Now click on the pen icon, so you can select the button that you want to use. If you have your own button, you can just drag it down to the image box.
After selecting the button, scale it down to the size you want.
Now drag one of the fonts to label the button.
Enter the button’s name into the text box.
Make sure it’s in front of the button.
Now it is time to edit the purchase button.
Make sure that the remove ads button is selected in the TYPE field.
Put a check on Buy and Use.
Select In-App Purchase
Select One Time Purchase (so players don’t keep on purchasing every time they open the game)
Add your store identifier and make sure it is all in lower case, and use underscore if you have more than one word.
Now go to Google Play Console to get the License key you need to paste into project settings.
Go to Google Play Console and select your game.
Go to Monetization setup.
And copy the license key.
Now let’s go to File> Project Settings> Google Play Store>
Then paste the license key. Also, make sure to put ‘1’ as your version code and remember to increase it as you upload a new version to update your game.
Next, we will add In-App Purchase in Google Play Console.
Click the ‘Create product’ button, which you can find under Monetize> Products> In-app products.
The ‘Product ID’ is your store identifier found on your purchase button inside Buildbox (11th screenshot labeled number 5). Then proceed to enter your details.
You can add a pricing template for future games or just set a price.
Don’t forget to save your game, so it becomes active.