Keyword

data class Keyword(val numSlots: Int, val keyword: String, val geo: String? = null, val opaqueUserId: String? = null, val placementId: Int? = null) : AuctionConfig(source)

Auction targeting a search keyword.

Constructors

Link copied to clipboard
constructor(numSlots: Int, keyword: String, geo: String? = null, opaqueUserId: String? = null, placementId: Int? = null)

Properties

Link copied to clipboard
val geo: String?
Link copied to clipboard

optional location string for geo-targeted auctions

Link copied to clipboard

the keyword to target (must not be blank)

Link copied to clipboard
Link copied to clipboard
open override val opaqueUserId: String?

Optional opaque user ID for targeting context.

Link copied to clipboard
open override val placementId: Int?

Optional experiment bucket (1-8) for A/B testing. Values outside the valid range are silently ignored during serialization.

Link copied to clipboard
val slots: Int

number of ad slots to fill (must be positive)