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 AdServer.
This preference will be submitted to the AdServer with every subsequent ad request. Users preference will not be persisted.
The value of ExternalUID.uid is for setting the external identity. With the ExternalUID.isStable option you can tell the AdServer if the identity is stable, for example a user account, or not stable, for example an advertising ID.
val externalId = "externalIdCPu2HEAPu2HEAAFADBDEDNCoAPLAAAAAAAYgAtwAgATgBb"
// For the ad request
AdService.getInstance().setAdRequestGlobalParameter(
AdRequestGlobalParameters::externalUID,
ExternalUID(externalId, true)
)
// For the tag and track requests
AdService.getInstance().setTrackingGlobalParameter(
TrackingGlobalParameters::externalUID,
ExternalUID(externalId, true)
)
Content copied to clipboard