Unity3D GDPR (General Data Protection Regulation) Plugin Guide

Unity3D GDPR (General Data Protection Regulation) Plugin Guide

This guide is for our Unity3D GDPR plugin that can be bought on Asset Store

https://assetstore.unity.com/packages/tools/integration/google-mobile-ads-consent-plugin-gdpr-119718

Prerequisite:

1. Google Admob Account

https://admob.google.com/home/

2. Google Admob Account must be setup properly

3. Google Admob Publisher ID

4. Turbo VPN for Android if you are not in EU Country –  you need this to test the native GDPR form from Google

https://play.google.com/store/apps/details?id=free.vpn.unblock.proxy.turbovpn&hl=en

5. Unity3D GDPR Plugin

https://assetstore.unity.com/packages/tools/integration/google-mobile-ads-consent-plugin-gdpr-119718

6. Unity3D GDPR Plugin Dependencies

gson-2.8.5.jar – https://github.com/google/gson or http://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.5/

consent-library-release.aar – https://github.com/googleads/googleads-consent-sdk-android

Json.Net 9.0.1 – https://github.com/SaladLab/Json.Net.Unity3D/releases

 

Steps:

1. purchase our plugin on Unity3D Asset store

https://assetstore.unity.com/packages/tools/integration/google-mobile-ads-consent-plugin-gdpr-119718

2. Create an Google Admob Account

https://admob.google.com/home/

3. Login on your Google Admob Account and Setup up your google Admob Blocking for EU User Consent.

  • Click Blocking Controls on the left side panel
  • Scrol the menu to find EU User Cosent Tab
  • Click Select Providers
Setup EU User Consent
Setup EU User Consent

4. For this demo choose Google and Facebook only and then click done

Selecting Providers
Selecting Providers

5.  on the same tab you will also see your Publisher ID Copy it and save it some where for easy access

6. Install turbo VPN on your Android Device

https://play.google.com/store/apps/details?id=free.vpn.unblock.proxy.turbovpn&hl=en

7. Open unity3D on your PC or MAC and then Create a new empty Unity3d Project and then import our Unity3D GDPR Plugin sellect all and import everything

https://assetstore.unity.com/packages/tools/integration/google-mobile-ads-consent-plugin-gdpr-119718

8. download all required dependencies from this links and put it in your Unity3D project

gson-2.8.5.jar – https://github.com/google/gson or http://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.5/

consent-library-release.aar – https://github.com/googleads/googleads-consent-sdk-android

Json.Net 9.0.1 – https://github.com/SaladLab/Json.Net.Unity3D/releases

9. Copy all depencies or install depencies

you Assets/Plugins/Android directory must be look something like this

Android Plugin Dependencies
Android Plugin Dependencies

And your Assets/UnityPackages directory must be like this

Assets/UnityPackages
Assets/UnityPackages

10. Inside Unity3D project go to Assets/AndroidUltimatePlugin/Scenes directory  and then open or double click GDPRAdmonDemo scene

GDPR Demo Scene
GDPR Demo Scene

11. If you follow all the steps above you are now ready to build the application, make sure to switch to Android Platform and change the App Package ex. com.yourcompanyname.yourcallappname

12. build the Android application

 

Testing the Demo GDPR Application on Android

1. If you are not in EU Country open the Turbo VPN app select free tier and then choose Germany or any EU Country

Turbo VPN
Turbo VPN
Turbo VPN
Turbo VPN
Turbo VPN
Turbo VPN

2. Open our GDPR Demo Unity3D APP on your Android Device

GDPR Demo App
GDPR Demo App

3. On EU Consent Status input , Enter 2

4. On Admob Publisher ID , Enter your  valid and correct publisher ID from your Google Admob Account that you setup

5. On Privacy URL input, Enter any random valid website url ex. http://yahoo.com

6. Click or tap Set Consent Status Button

7. Click or tap Check Consent Button

8. Click or tap Create Consent form Button

9. If you follow all the steps and give the correct and valid input it will now show the Android Native GDPR Google consent form

Native Google GDPR Consent Form
Native Google GDPR Consent Form

 

Native Google GDPR Consent Form
Native Google GDPR Consent Form
Native Google GDPR Consent Form
Native Google GDPR Consent Form

 

Option 2 if you don’t use Turbo VPN and you are not in EU Country you are force to use the custom form that we created

Custom Google GDPR Consent Form
Custom Google GDPR Consent Form
Custom Google GDPR Consent Form
Custom Google GDPR Consent Form
Custom Google GDPR Consent Form
Custom Google GDPR Consent Form

 

And that’s all for Setting up, building and Testing the GDPR Demo app for Untiy3D , you can now study the code inside our plugin on how we use it, it will be so easy

if you are really proficient in C# and intermediate level on using Unity3D for more help you can always check the readme text inside our plugin directory.

We hope this guide help you and give you some light on how to use our GDPR Plugin for Unity3D

for more questions or inquiry please email us at gigadrillgames@gmail.com

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.