GuidesDiscussions
Log In
Guides

Opt-In/Opt-Out setting

Opt-In / Opt-Out settings :

The host application can provide an option to the users to Opt-In and Opt-Out of the Ads services. The same can be accomplished via the following methods to access or update the Status.

Update Opt-In Status

IUApp.updateOptInStatus(getApplicationContext(), boolean_value);

The method accepts boolean value. When TRUE is passed, the user is Opted-In to the Ad services and when FALSE is passed, the user is Opted-Out of the Ad Service.

Get Opt-In status

IUApp.getOptInStatus(getApplicationContext());

The method returns boolean value. If TRUE is returned, the user has Opted-In to the Ad Services and when FALSE the user is Opted-Out of the Ad Services.