> For the complete documentation index, see [llms.txt](https://docs.firework.com/firework-for-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.firework.com/firework-for-developers/android-sdk/integration-guide/feed-sources/dynamic-content-feed.md).

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.firework.com/firework-for-developers/android-sdk/integration-guide/feed-sources/dynamic-content-feed.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
