isOptInEnabled

Deprecated

The parameter will be removed. Please use the new one instead.

Replace with

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 isOptInEnabled approach.

If isOptInEnabled is true, 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::isOptInEnabled,
true
)

// For the tag and tracking requests
AdService.setTrackingGlobalParameter(
TrackingGlobalParameters::isOptInEnabled,
false
)