isOptOutEnabled
An app can ask users if they want to opt out from process data. Use isOptOutEnabled to make the users choice visible for the Adserver.
if isOptOutEnabled is 'true', the Adserver will not process any personal data.
This preference will be submitted to the AdServer with every subsequent ad request. Users preference will not be persisted.
// For the ad request
AdService.getInstance().setAdRequestGlobalParameter(
AdRequestGlobalParameters::isOptOutEnabled,
true
)
// For the tag and track requests
AdService.getInstance().setTrackingGlobalParameter(
TrackingGlobalParameters::isOptOutEnabled,
false
)
Content copied to clipboard