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 ad server.
If isOptOutEnabled is true
, the ad server 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.setAdRequestGlobalParameter(
AdRequestGlobalParameters::isOptOutEnabled,
true
)
// For the tag and tracking requests
AdService.setTrackingGlobalParameter(
TrackingGlobalParameters::isOptOutEnabled,
false
)
Content copied to clipboard