CustomTargeting

data class CustomTargeting(val key: String, val value: List<String>)

Represents custom key-value targeting parameters for Google Mobile Ads requests.

Custom targeting allows publishers to pass custom key-value pairs in ad requests to target specific audience segments or ad placements.

Constructors

Link copied to clipboard
constructor(key: String, value: List<String>)

Properties

Link copied to clipboard
val key: String

The custom targeting key.

Link copied to clipboard

A list of string values associated with the targeting key.

Functions

Link copied to clipboard
fun toIos(): Map<Any?, Any>

Converts the custom targeting parameters to a Map format compatible with the iOS Google Mobile Ads SDK.