I was integrating distriqt's ANE-Adverts into my game. And I thought of creating a wrapper class for service functions: automatically preloading ads, detecting ads inavailability reasons, and of course for showing ads.
So after adding ANE-Adverts into the game it's possible just to add this wrapper class and all the service functions will be inside. I published it as a public GitHub repository: feel free to use in your projects and add with functions you might find useful, too.
https://github.com/GeneralVimes/AdvertsWrapper
This is what it can do currently:
- 2 ways of initialization: after your own "GDPR gate" or with Google's UMP form
- Show Interstitial ads or Rewarded Videos
- Automatically preload them
- Define if the ads are not available due to the network connection or because of the player's selection in the Google's UMP form