Asking for help with how to make an ad removal service in a mobile game I have searched on youtube and they are nothing on how to make an ad removal.
-
Your question kinda reads as _["where they want to start, and where they want to end, but there are way too many pieces to fill in"](https://meta.stackexchange.com/a/223458/284550)_ and if so might be considered too broad. Consider adding more information about how you would like your problem solved, perhaps with a code sample of what you have already tried. Good luck! – Oct 04 '22 at 23:17
2 Answers
I gather, that you want it to be a paid service.
First, you would need to create a product in your gpg/appstore consoles. It could be a non-consumable, if you want it to be a one time purchase or a subscription, if you want to give ad free state for a limited time. If you haven't already implemented shop, that should be time to do so. You can find a lot of info on how to do it on the internet.
Then, you would need to write logic that prevents ads from showing ads if user is as free. Simple bool should be enough. Just be sure to store it somewhere (any save system, player prefs for eg.) and enable user an option to restore their purchase in case they reinstall your app or switch devices.
If you want this service to be bought not by real money, but for some sort of currency, you can just skip the part about creating products and implementing shop. All you need to do is to remember, that it's an ad free user and when to revoke their rights if necessary.
That should serve as a good start, comment if you have any questions.

- 562
- 2
- 12
-
@MickyD I usually went with approach: downvote, and provide partial solution that encourages research, but probably you are right – bartol44 Oct 04 '22 at 23:46
-
First thing you would do is create a database like firebase then you would have a bool for shouldShowAd and once you have that store it in the database and when you are showing the ad you should wrap it in a if statement for example: [Code][1]
now if you want to make it buyable what you would do it watch a youtube video on how unity handles purchases and once its purchased you would want to store it in a database with the users id, there is a good firebase database tutorial I would suggest: https://www.youtube.com/watch?v=Vdgd9TLczY4 [1]: https://i.stack.imgur.com/rRUEA.png

- 1
- 1
-
1Please don't post screenshots of code. You should edit your answer to include the code from your screenshot as text. – Luke Oct 10 '22 at 11:48
-
As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 17 '22 at 01:20