Dynamic Content Feed
Dynamic Content Feed displays videos based on dynamic parameters for cohort-based targeting. This powerful feed type enables personalized content delivery based on user attributes, preferences, or segmentation criteria.
Overview
Dynamic Content Feed uses a parameter-based system to filter and deliver content tailored to specific user cohorts or segments. You can define custom key-value parameters that match against video metadata configured in the Firework CMS.
Usage
Required Parameters
channelId- Your encoded channel identifier (required, non-empty)parameters- Map of parameter keys to value lists (required)
Programmatic Configuration
val dynamicContentParameters = mapOf(
"<cohort key>" to listOf("<cohort value 1>", "<cohort value 2>"),
)
val viewOptions = viewOptions {
baseOptions {
feedResource(
FeedResource.DynamicContent(
channelId = "encoded_video_id",
parameters = dynamicContentParameters
)
)
}
layoutOptions {
feedLayout(FeedLayout.HORIZONTAL)
}
}
val videoFeedView = findViewById<FwVideoFeedView>(R.id.videoFeedView)
videoFeedView.init(viewOptions)Parameter Structure
Parameters are provided as a Map<String, List<String>> where:
Key: Cohort parameter name (e.g., "age_group", "interest", "location")
Value: List of possible values for that parameter
Important Notes
Encoded Channel ID Required - Channel ID must be an encoded value from Firework
See Also
Feed Sources Overview - All available feed types
Discovery Feed - Algorithmic personalization
BaseOption Configuration - Detailed configuration
FwVideoFeedView - Video feed widget
Last updated
Was this helpful?