---
updatedAt: 2026-06-12T07:18:18.000Z
agentTools:
  siteIndex: https://developer.bitmovin.com/llms.txt
  projectIndex: https://developer.bitmovin.com/playback/llms.txt
---

# AdSource

com.bitmovin.player.api.advertising

# AdSource

data class AdSource@[JvmOverloads](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-overloads/index.html)constructor(val type: [AdSourceType](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-advertising-ad-source-type), val tag: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), val vastLoadTimeout: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = DEFAULT\_VAST\_LOAD\_TIMEOUT, val videoLoadTimeout: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = DEFAULT\_VIDEO\_LOAD\_TIMEOUT) : [Parcelable](https://developer.android.com/reference/kotlin/android/os/Parcelable.html)

Represents an ad source which can be assigned to an [AdItem](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-advertising-ad-item). An [AdItem](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-advertising-ad-item) can have multiple AdSources as waterfalling option.

## Constructors

|          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AdSource | @[JvmOverloads](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-overloads/index.html)<br>constructor(type: [AdSourceType](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-advertising-ad-source-type), tag: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), vastLoadTimeout: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = DEFAULT\_VAST\_LOAD\_TIMEOUT, videoLoadTimeout: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = DEFAULT\_VIDEO\_LOAD\_TIMEOUT) |

## Properties

| Name             | Summary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| tag              | val tag: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>The ad tag / url to the ad manifest.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| type             | val type: [AdSourceType](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-advertising-ad-source-type)<br>The [AdSourceType](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-advertising-ad-source-type) of this AdSource.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| vastLoadTimeout  | val vastLoadTimeout: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)<br>The amount of seconds until the VAST loading is canceled after the download request started.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| videoLoadTimeout | val videoLoadTimeout: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)<br>The amount of seconds until the video loading is canceled after the download request started. In case this AdSource is of type [AdSourceType.Ima](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-advertising-ad-source-type), this is equivalent to [AdsRenderingSettings.loadVideoTimeout](https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/AdsRenderingSettings.html#setLoadVideoTimeout\(int\)) in the IMA library. Has no effect for AdSources of type [AdSourceType.Progressive](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-advertising-ad-source-type) or [AdSourceType.Bitmovin](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-advertising-ad-source-type). |