externalUID

If your app has means to identify a user, for example through association with an user account or an advertising ID, you can share this with the ad server.

The value of ExternalUID.uid is for setting the external identity. With the ExternalUID.isStable option you can tell the ad server if the identity is stable, for example a user account, or not stable, for example an advertising ID.

This preference will be submitted to the server with every subsequent ad request. Users preference will not be persisted.

val externalId = "externalIdCPu2HEAPu2HEAAFADBDEDNCoAPLAAAAAAAYgAtwAgATgBb"

// For the ad request
AdService.setAdRequestGlobalParameter(
AdRequestGlobalParameters::externalUID,
ExternalUID(externalId, true)
)

// For the tag and tracking requests
AdService.setTrackingGlobalParameter(
TrackingGlobalParameters::externalUID,
ExternalUID(externalId, true)
)