Skip to content

Privacy

rprunskas edited this page Jul 15, 2020 · 1 revision

GDPR

By default Adform Advertising SDK will check CMP settings and use that information. More information about this here

It is possible to set GDPR and GDPR consent manually. You need to use setGdpr(boolean) and setGdprConsent(consent) methods. For Gdpr consent you need to set base64-encoded string.

Example:

AdformSDK.setGdpr(true);
AdformSDK.setGdprConsent(Base64.encodeToString("GgdprConsent".getBytes(), Base64.NO_WRAP));

US policy

You can use this method to manually set the US Privacy value. This value is not persisted between app launches. You can pass in null to clear a previously set value.

Example:

AdformSDK.setUSPrivacy("1---");
Clone this wiki locally