PlacementControllerOptions
Options for creating a PlacementController.
Properties
Section titled “Properties”autoTrackImpression?
Section titled “autoTrackImpression?”
optionalautoTrackImpression?:boolean
Whether to track an impression automatically when the decision is visible. Default true.
contextMode?
Section titled “contextMode?”
optionalcontextMode?:RevTurbineContextMode
Context resolution mode. Default 'auto'.
overrides?
Section titled “overrides?”
optionaloverrides?:RevTurbinePlacementDecisionOverrides
Override segment, plan, or usage for testing.
placement?
Section titled “placement?”
optionalplacement?:RevTurbinePlacementConfig
Placement configuration (name, scope key, metadata).
surfaceSlot?
Section titled “surfaceSlot?”
optionalsurfaceSlot?:RevTurbineSurfaceSlotConfig
Canonical surface slot configuration (preferred over placement).
traits?
Section titled “traits?”
optionaltraits?:Record<string,string|number|boolean>
Custom traits to include in the decision request.
ttlMs?
Section titled “ttlMs?”
optionalttlMs?:number
Decision cache TTL in milliseconds.
userId?
Section titled “userId?”
optionaluserId?:string
Target user ID. Falls back to the SDK’s current user context.