This page covers data collection for the App version variable. See App version for the corresponding reporting dimension.
The app version variable identifies the version of your media player application. Set it once during SDK initialization; the value is automatically included in every subsequent session start request. Use a version string that matches your application’s release cycle (for example, "2.1.0" or "prod-YYYY-03-15").
media.sdkVersionRecommended implementation types
Set appVersion in the streamingMedia configuration object when calling configure:
| code language-javascript |
|---|
|
Set edgeMedia.appVersion in the app configuration before initializing the media tracker:
| code language-swift |
|---|
|
Set edgeMedia.appVersion in the app configuration before initializing the media tracker:
| code language-kotlin |
|---|
|
Set the app version in the SDK configuration using ADB_CONSTANTS.CONFIGURATION.MEDIA_APP_VERSION:
| code language-brightscript |
|---|
|
Include appVersion in the sessionDetails object of the sessionStart request:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Set appVersion on the MediaConfig object before calling ADB.Media.configure:
| code language-javascript |
|---|
|
Set sdkVersion in the mediaHeartbeat section of the ADBMobile configuration. This field captures your player application version, not the Chromecast SDK library version.
| code language-javascript |
|---|
|
Include media.sdkVersion in the params object of your sessionStart POST request:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.