/samcodes-consent-demo

Demonstrates Haxe/OpenFL bindings for the Google Mobile Ads GDPR Consent SDK

Primary LanguageHaxeMIT LicenseMIT

Haxe GDPR Consent Demo

License

Demo of Google Mobile Ads Consent SDK bindings for Android and iOS Haxe OpenFL targets.

This is deprecated - I am no longer updating it because I do not currently use ads requiring GDPR consent in my projects. Feel free to fork this and bring it up to date though!

Usage

This demo app uses HaxeFlixel and one of my haxelibs, so install these first:

haxelib install flixel
haxelib install samcodes-consent # Or use lib/samcodes-consent submodule in the repo

Enter your AdMob publisher id in the ConsentWrapper class for the Consent SDK to work with. You can also optionally set your privacy policy URL.

Screenshots

Pre-rendered consent screen:

Screenshot of the actual demo:

Notes

  • Run the JavaScript build here. There's no web-based consent support yet.
  • Got an idea or suggestion? Open an issue on GitHub, or send Sam a message on Twitter.