# 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

```kotlin
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](https://docs.firework.com/firework-for-developers/android-sdk/integration-guide/feed-sources) - All available feed types
* [Discovery Feed](https://docs.firework.com/firework-for-developers/android-sdk/integration-guide/feed-sources/discovery-feed) - Algorithmic personalization
* [BaseOption Configuration](https://docs.firework.com/firework-for-developers/android-sdk/integration-guide/configuration/base-options) - Detailed configuration
* [FwVideoFeedView](https://docs.firework.com/firework-for-developers/android-sdk/integration-guide/configure-video-feed) - Video feed widget
