Shawn Casey edited this page Sep 6, 2018 · 15 revisions

This documentation is provided for compliance with the European Union's General Data Protection Regulation (GDPR). If you are collecting consent from your users, you can make use of APIs discussed below to inform AdColony and all downstream consumers of this information. Please see our GDPR FAQ for more information.

Passing Consent via AdColonyAppOptions

In the Android SDK v3.3.4, we added explicit methods to our AdColonyAppOptions API for GDPR compliance. We require the GDPR consent string to have a value of "1" or "0". A value of "1" implies the user has given consent to store and process personal information and a value of "0" means the user has declined consent.

Code Example

// Your user's consent String. In this case, the user has given consent to store
// and process personal information.
String consent = "1";

// The value passed via setGDPRRequired() will determine the GDPR requirement of 
// the user. If it's set to true, the user is subject to the GDPR laws.
AdColonyAppOptions options = new AdColonyAppOptions()
    .setGDPRConsentString(consent)
    .setGDPRRequired(true); 

// Pass options object to AdColony in configure call, or later in the session via
// AdColony.setAppOptions().
AdColony.configure(activity, options, APP_ID, ZONE_ID);

NOTE: Originally this method for passing consent was designed to follow the guidelines provided by the Interactive Advertisement Bureau. At the time of our GDPR compliant 3.3.4 release, these guidelines have not been finalized. A separate announcement will be made in the future when this changes.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.