Opt-in/out
Optional opt-in and out from Ads
Step 17 : Opt-In / Opt-Out settings [OPTIONAL] :
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.
17.1 : Update Opt-In Status for Monetization
IUApp.updateOptInStatus(context, optInValue);
The method accepts boolean value for optInValue. 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.
17.2 : Get Opt-In status for Monetization
IUApp.getOptInStatus(context);
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.
17.3: Update Opt-In Status for Engagement
The host application can provide an option to the users to Opt-In and Opt-Out of the Engagement Ads services. The same can be accomplished via the following methods to access or update the Status.
IUApp.updateOptInStatusForEngagement(context, optInValue);
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.
17.4: Get Opt-In Status for Engagement
IUApp.getOptInStatusForEngagement(context);
Updated over 2 years ago