Privacy configurations


Depending on the audiences targeted by your app and the regions/counries where your app is used, you might need to use some or all of the following functions to comply with the Google Play Store policies or applicable privacy regulations (the Children's Online Privacy Protection Act (COPPA), the General Data Protection Regulation (GDPR) or the California Consumer Privacy Act (CCPA)). Note that these configurations can only be used before (and not after) initializing the SDK.



Use of the SDK in child-directed apps:


If children under the age of 16 are among your app's target audiences, you need to communicate that to the SDK so that it behaves in a privacy-preserving manner. By default, the SDK collects several types of personal data including identifiers such as the Android Advertising ID and users' location.
Pass true to the following function to prevent the SDK from collecting these data types from children and serve contextual ads only. If you pass false or do not use the function in your app, the SDK will collect various types of personal data from your app users and serve personalized ads only.


  EasyAds.set_is_targeted_to_kids(true);



Obtaining user consent:


By default, the SDK assumes that the user consented to data collection unless the developer communicates otherwise to the SDK. If you wish to indicate that a user does not consent to data collection, pass false to the following function. You can pass true to indicate that the user consented at a later point in the application if needed.


The SDK will serve contextual ads only when false is passed and personalized ad only when true is passed.

  EasyAds.set_user_consented(false);



Opting users to sale of personal information:


If you need to prevent the sale of your users' personal information, you can pass not allowed to the following function. The SDK assumes that sale of personal information is allowed unless indicated otherwise by the developer using the this function. By default, the SDK shares users' personal information with our business partners for various purposes, including behavioral advertising. If you pass not allowed to this function, the SDK will continue to collect users' personal information, but will prevent sharing of collected personal data with our business partners.


  EasyAds.set_sell_personal_info("not allowed");



This function set_sell_personal_info is meant to prevent sharing of personal data with other parties. If you need to prevent collection of personal data as well, you can pass false to set_user_consented if your need to prevent collection of personal data for GDPR compliance purposes, or true to set_is_targeted_to_kids if you need to configure the SDK for child-directed treatment by preventing the collection of personal data from children.