androidadsmopub

How to test GDPR if I'm not in Europe?


MoPub finally released their SDK for GDPR and I'm following their instructions and their code told me I did not need a consent, which makes sense since I'm in the US. I then switched to a VPN for Germany and it continued telling me the same. So how can I test this?

This is the code I'm using:

          PersonalInfoManager mPersonalInfoManager = MoPub.getPersonalInformationManager();
          boolean gdprApplies = mPersonalInfoManager.gdprApplies();
          boolean shouldShowConsentDialog = mPersonalInfoManager.shouldShowConsentDialog();

Both gdprApplies and shouldShowConsentDialog were false when using the VPN in Germany and I even tried it after clearing data of the app.


Solution

  • I used VPN to get a European IP-address and the EU-consent dialog showed correctly. Maybe you need to clear cache or reinstall your app.