profiles

When requesting an advertisement it is possible to send application targeting profiles which can be used to select the correct banner that should be delivered.

Profile targeting allows the developer to add key and value pairs when creating an Advertisement through the AdService.makeAdvertisement.

Profile targeting allows for complex targeting as one is able to set key and value pairs.

// Allow a banner to match with the profile expression
// "gender='male' and activity='news'".
val profiles = hashMapOf("gender" to "male", "activity" to "news")

val result = AdService.makeAdvertisement(
AdRequest(
contentUnit = CONTENT_UNIT,
profiles = profiles
)
)