SDK changelog
What changed in each version of the SofAds TV SDK, newest first. This page is generated from the SDK's own changelog when the site is built.
Your app always runs the SDK version you shipped: the copy bundled in your package, or the pinned version your hosted site loads (https://sdk.sofadsrv.com/sdk/v1.0.0/sofads.min.js, never "latest"). Server-side changes, such as new demand, need no SDK update. Upgrade when a version below brings something you want, and test it with test ads first. Your app's version is in the debug overlay and in SofAds.getInfo().
Unreleased
Added
Whale TV: the SDK reads the advertising ID itself. It uses Whale's Device Info API (
DeviceInfo.Product.WhaleAdID), adding Whale's script to the page when the app didn't, and falls back to theWhaleADIDcookie of Whale's player SDK. Apps no longer needwhale.getAdId(it still overrides);whale: { deviceInfoScript: false }stops the SDK from adding the script. Maker, model and firmware are now read from the Whale user agent.Per-call
startTimeoutMsonshowInterstitial()andshowRewarded()(round 33): give up when no ad screen has opened this long after the call (init included, the consent screen not; at least 500 ms, never aboveshowTimeoutMs). The call then resolves{ status: 'timeout', reason: 'start_timeout' }and nothing appears later; an ad that did open plays to its end. Made for video pre-rolls: an app that raced the show call against its own timer started its video under a playing ad, because the call resolves when the ad closes. The types and README now say that on every show call.Tizen AVPlay handover (round 28). On a Samsung TV the ad's
<video>and the app'swebapis.avplayshare one video pipeline: an ad that started while AVPlay played froze the stream for good (AVPlay kept sayingPLAYING, the screen stayed black after the ad). Now the SDK suspends an AVPlay that isREADY,PLAYINGorPAUSEDright afteronPause(before the ad's<video>exists) and restores it right after the ad, beforeonResume, then callsplay()when the TV leaves it paused. Restore order: the app'stizen.avplayUrlwhen given;restore()without arguments (AVPlay's own stored URL and position; the documentedrestore(null, …)throws aTypeMismatchErroron firmware 2130); then the URL the app passed towebapis.avplay.open(), which the SDK remembers from the moment its script runs, for firmware whererestore()throws. With a URL: VODrestore(url, 0, false), liverestore(url). New init optiontizen: { avplayUrl, avplayHandover }:avplayUrlis a function returning the URL (for live streams whose URL expires),avplayHandover: falsemeans the app hands AVPlay over itself. When every restore fails the SDK logs one console warning. Apps need no code change. Tested on a UE43DU7172 (firmware 2130) with HLS streams and channel changes.App install ads (round 22, format
app_install, interstitials only). A promoted TV app's video or image with a bar (icon, name, rating) and an Install button that has the focus from the first frame; Close after 5 s (← → move the focus between them); an end card with the large icon, name, rating, description, Install and Close. Only a press of Install opens the store page: webOS through Luna (com.webos.app.discovery,category/GAME_APPS/<package>), Tizen throughlaunchAppControltocom.samsung.tv.store(only whenconfig.xmldeclareshttp://tizen.org/privilege/application.launch), Vega through the host app (window.SofAdsHost.openStore: true; the page posts{ type: 'sofads:open-store', url: 'amzn://apps/android?asin=…', fallback }). The SDK listsapp_installin interstitial requests only where it can open the store. On webOS the store launch needs the ACG groupapplication.launcherinappinfo.jsonrequiredACG(webOS TV 26+); a packaged app whoserequiredACGlacks it gets no app install ads. New: thestore_openevent (tracker, batch event andSofAds.on('store_open')),ShowResult.store_opened, the CTAinstallin every frame language.The consent screen is a dialog (round 20): a card over the dimmed app instead of a full-screen page, titled "Your privacy in {app}" with the app's dashboard name from the bootstrap's new
app_name(nothing to pass ininit(); without it the plain "Your privacy"), and a small SofAds logo in the footer (inline, no request). Same buttons, settings, QR code and keys.Model and OS version from a native host (round 19).
window.SofAdsHosttakesmodelandosVersion(Vega:DeviceInfo.getModel()/getSystemVersion()from@amazon-devices/react-native-device-info), before load or through the latesofads:hostevent. They go out asdevice.model/device.os_versionin ad requests and analytics batches, and only fill gaps: a model the platform reads itself (Tizen, webOS, Titan OS) wins."unknown"(the library's answer when it has none) is ignored.The SofAds consent screen (round 18). Where GDPR applies (the app's
gdpr, or the bootstrap's newgdpr_appliesfrom the edge's geo lookup) and the app passed no consent of its own, the SDK asks once, right afterinit()(init doesn't wait for the answer; show calls made meanwhile do): "Accept" and "Reject" (equally prominent) and "Settings" with two switches ("Personalized ads", "Measurement", both off) and "Save", plus a QR code to the full privacy notice. Translated in every frame language (RTL for Arabic), remote-navigable, BACK closes without an answer. The answer is stored insofads_consentfor 12 months and becomes{gdpr: 1, ads, analytics}; no TCF string yet. New:init({ consentScreen: 'auto' | 'first-ad' | false })('first-ad': right before the first ad instead),SofAds.showConsent(),SofAds.getConsent(), theconsentevent,timeouts.consentScreenMaxSeconds(120), and a cookielesssofads_consentcustom event per answer. Bootstrapfeatures.consent_screen: falseturns the screen off network-wide. The screen's time doesn't count towardshowTimeoutMs.Device-side VAST requests (round 17). A fill with
vast_checkcarries a VAST Wrapper pointing at a partner tag (demand sources withrequest_from: device, for example Google Ad Manager). The TV requests the tag itself and follows the chain with the existing resolver (max 5 hops withintmax). Before showing anything, it POSTs the resolved InLine VAST (text/plain, at most 256 KB, at most 1500 ms) tovast_check, where the edge applies strict brand safety. Only{status: "ok"}shows the ad, with the returnedad_idandtrackersswapped in, so every event uses the checked ad's ID. A drop, a non-200 answer, bad JSON, a network error, a timeout or a too-large document shows nothing, fires nothing and resolvesno_fill(reason: 'vast_check'). An empty or broken chain still fires the partner error URLs and the fill'serrortracker. Device-side fills are never prefetched and never carry a QR.dist/sofads-preview.js(globalSofAdsPreview, alsodist/sofads-preview.cjs) and the ES module@sofads/tv-sdk/preview(dist/sofads-preview.esm.js):SofAdsPreview.preview(container, ad, opts?)renders the real ad UI as a static frame for dashboards and the demo gallery. It behaves like the oldSofAds.preview; the theme comes fromopts.theme.The build packs the npm package into
release/sofads-tv-sdk-<version>.tgz(npm pack), deployed next to the bundle:npm install https://sdk.sofadsrv.com/sdk/v<version>/sofads-tv-sdk-<version>.tgz. Publishers download it, orsofads.min.js, from the publisher dashboard (Apps & listings → Download SDK) and bundle it in the app package:npm install ./sofads-tv-sdk-<version>.tgz. The package is not published to the npm registry ("private": true).Amazon Vega OS (Fire TV) as a WebView platform (round 16b), on the same universal
sofads.min.js. The React Native for Vega host app passes the platform, the Amazon advertising ID, the tracking state and the package ID through a host contract:window.SofAdsHost = { platform: 'vega', ifa, lmt, nativeAppId }, set before the SDK loads, or later through asofads:hostevent or a same-windowpostMessage(exported typeSofAdsHost). Requests then carryplatform: "vega",make: "amazon", the raw ID withifa_type: "afai"andlmt: 1when interest-based ads are off. A missing tracking state sends nolmt(neverlmt: 0), values sent beforeinit()are kept, and a late hostplatformreplaces a user-agent guess. Without host values the install ID is used. Made for children and consent rules are unchanged. The SDK detects Vega only through the host contract, because Amazon documents no Vega WebView user agent. README section "Vega OS" with the host snippet (@amazon-devices/webview,AdIdRetriever.fetchAdvertisingId()andisAdvertisingTrackingEnabled()) and themanifest.tomlservice entry.On packaged Tizen apps the SDK reads
config.xmlonce at init, in the background, and logs one console warning listing the exact lines to add. It checks for<access origin="*" subdomains="true"></access>and the four base privileges (internet, adinfo, productinfo, tv.inputdevice), nothing else. The debug overlay shows the same warning. Hosted apps (pages served over http or https) are not checked.CHANGELOG.md(this file), andnpm run version:bump, which updatespackage.json,package-lock.jsonand the version insrc/config.tsand moves "Unreleased" into a dated version entry; it refuses to bump past a version that was never released.
Changed
Backup ads only after an unanswered request (round 32). After every show the SDK used to fetch a backup ad (
prefetch: 1) and preload its video for the next break. Every break makes a live request first, so the backup was thrown away unused in nearly every break, and it doubled the app's ad requests and fills. Now the SDK fetches one only when the show's live request got no answer (a timeout, no connection or a 5xx). Explicitprefetch()andinit({ prefetch })are unchanged.Bootstrap
gdpr_applies: truemakes the SDK treat the user asgdpr: 1unless the app setgdpritself (round 18). On a first launch, before any bootstrap has answered and without app consent, the SDK no longer creates an install ID for the bootstrap query; it only sends an existing one.Tizen access rules follow the revised set:
access origin="*"and the four base privileges (notizen:allow-navigation: it puts the app in Tizen's CSP-based security mode, and apps stopped working on TVs with it; the config.xml check never asks for it). This replaces the old allowlist that only covered*.sofadsrv.comand the list of Google hosts. Protection now lives in the SDK.The test-mode console line now ends with
Why: https://sofads.com/docs/troubleshooting#test-mode(a stable URL) instead of the test-ads page.The Tizen privilege table covers the four base privileges by short name (
internet,adinfo,productinfo,tv_inputdevice).The pinned CDN path is
https://sdk.sofadsrv.com/sdk/v<version>/sofads.min.js(CDN_SDK_URL);scripts/deploy-bunny.shuploads with Bunny's native Storage API tosdk/v<version>/andsdk/latest/(internal testing only) and prints the SRI hash.Test ads are only SofAds' own: the SofAds test video and the scan test ad (no Google sample ads). The SDK tests and the demo use SofAds-owned sample VAST files (
test/fixtures/vast-samples) instead of recorded Google tags.
Removed
SofAds.previewand the preview code in the TV bundle (round 17); useSofAdsPreview.previewfromsofads-preview.js.sofads.min.jsdrops from 128.2 KB to 125.2 KB minified (39.8 KB gzipped).Wrappers without
vast_check(the oldclient_side_wrapperssources) are no longer shown: a Wrapper reaches the SDK only as a device-side request, and an unchecked partner ad resolvesno_fill.Client adapters (round 16b):
SofAds.registerAdapter,SofAds.scriptAdapter, theadaptersinit option andtimeouts.adapterLoadTimeoutMs, theadaptersfield and theclient_adapterformat in ad requests, bootstrapkill.adapters, theclient_adapterfill,src/adapters/with the example adapter,dist/adapters/, the@sofads/tv-sdk/adapters/exampleexport and the CDNadapters/uploads. An older edge that still sendskill.adaptersor aclient_adapterfill is ignored (the fill is never shown). Error code 1004 is reserved and never reused.Signal providers and Google PAL (round 15):
src/signals/(google_pal, the provider host and the__tcfapishim), thesignalsfield in ad requests, bootstrapfeatures.signal_providers, fillsignalsand the provider hooks, thesignalProviders/signalPlatformsinit options andtimeouts.signalInitTimeoutMs, the "Signals" row in the debug overlay andsignalsingetInfo(), and the Google PAL privileges (system, telephony, network.public) from the Tizenconfig.xmlcheck.SofAds.setConsentand the consent fields stay. An older edge that still sendssignal_providersor fillsignalsis ignored.demo/pal-stub.jsand the Google demand example in the demo.
Security
- HTML ad iframes use the sandbox
allow-scriptsonly (HTML_AD_SANDBOX). That means noallow-top-navigation, noallow-top-navigation-by-user-activation, no popups and no same-origin access. A real-browser test shows that a creative tryingwindow.top.location = …,top.location.href = …orwindow.open(…, '_top')is blocked and the app stays on its page. A static test makes sure the SDK itself never navigates the top-level page.
Fixed
- The progress bar moves evenly (round 33). It used to move to each reported position over a fixed 220 ms and then stop until the next report, so on a TV, where a video's
timeupdateand the SDK's own clock arrive late, it went and stopped and jumped. Now every update aims at where playback will be one second from now and takes one second to get there: updates overlap into one linear move at playback speed that the TV's compositor runs by itself (will-change: transform). It never moves back; when playback stalls it runs at most one second ahead and waits. Measured in Chromium with a video ad: bar speed 115–117 px/s, was 74–146; with position reports every 600 ms the bar stood still 63 % of the time, now never. - Tizen: when
webapis.adinfo.isLATEnabled()throws, the TIFA goes out withlmt: 1(unknown opt-out = opted out), neverlmt: 0(Samsung TIFA guideline: TIFA,ifa_typeandlmtin every ad request; no interest-based ads under LAT).
1.0.0 - not released yet
The history up to round 14, reconstructed from the commits between 2026-10-06 and 2026-10-08.
Added
- Core SDK (2026-10-06):
SofAds.init,showInterstitial,showRewarded, the QR card format, VAST video with wrapper resolution, house/direct prefetch, batched events withsendBeacon, the install ID, and the bootstrap config with kill switches. Everything uses XHR, so it works fromfile://. The SDK never throws and never blocks the app. - Ad screen for the 10-foot UI: scan-to-reward with "Reward unlocked" and Continue, an opaque end panel, and screenshots of every ad state.
SofAds.previewand a demo gallery mode. - Three-owner ad screen (round 6): advertiser creative, publisher reward (an amount plus an icon, overridable in code) and the SofAds frame. Frame translations come as one file per language (EN, NL, DE, FR, ES, IT, PL, PT), and the frame renders in the creative's language.
- Targeting signals:
device.utc_offsetand a lower-caseddevice.make. - Google skippable-ads standard (round 7): a "You can skip in X s" countdown, then a focused "Skip ad" button. Arabic is added and the layout works right to left. A "Test ad" label.
- Signal providers (round 7), with Google PAL (
google_pal) as the first one: nonce generation at init and per session, a TCF__tcfapishim that never reports consent by default, and playback, click and touch hooks. The README includes a guide to writing a provider. - Tizen integration checks (round 7): when
webapis.jsis missing or a privilege throws aSecurityError, the SDK falls back to the install ID, logs one console warning and setswebapis_missing/privilege_missinginsession_start. A test-mode console line, and a debug overlay with the install ID as text and as a QR code. - Recorded Google IMA sample-tag fixtures, and VAST
<Icons>(AdChoices) rendering. - Titan OS: device info via
TitanSDK.deviceInfo.getDeviceInfo(). - Stable docs URLs (round 9): one
docs_base_url, and every printed docs link comes from the stable list. - Made for children (round 11):
features.child_directedis honored. The SDK reads no OS ID, sends no IFA, runs no signal providers and never sends the install ID asppid. Partner fills play without a QR. - Typed public event hooks (
SofAds.on/SofAds.off) for the live demo's log (round 14).
Changed
- Round 12: partner fills carry no QR code (
qr_suppressedis removed). - The OS advertising ID is read only after a bootstrap says the app is not made for children (review round 11).
Removed
- The init option
rewarded.scanAutoCloseSeconds. - Dead exports. The build now enables
noUnusedLocalsandnoUnusedParameters.
Keep reading
- SDK reference: every call, option and event in the current version.
- Release checklist: what to check before you ship an update.