accessMode
An ad server automatically processes data on an opt-out basis, but if it has the right to collect user data, it can instead be configured to use an opt-in approach.
If accessMode is AccessMode.OPT_IN, the ad server will be able to process personal data.
This preference will be submitted to the server with every subsequent ad request. Users preference will not be persisted.
// For the ad request
AdService.setAdRequestGlobalParameter(
AdRequestGlobalParameters::accessMode,
AccessMode.OPT_IN
)
// For the tag and tracking requests
AdService.setTrackingGlobalParameter(
TrackingGlobalParameters::accessMode,
AccessMode.OPT_OUT
)Content copied to clipboard