SolinnTV House Ads · Developer docsDashboard

Quick start

Every SDK has the same five calls: configure(appKey, options), setTier(free | premium), moment(name), onUpgrade(handler) and, where the platform can know them, setInstalledApps(keys). Each SDK keeps the session ID and seconds since launch, draws the surface inside title-safe, handles OK and Back on the remote, reports events, and fails silently: on any error or a 1.5-second timeout nothing shows and your app carries on.

Test with your sandbox key (sbx_…, on each app's Integration tab). It always returns an advert marked “Sandbox” and is never counted in Insights or your quota. Swap in the app key to go live.

Roku (SceneGraph)

' Copy components/SolinnAds/ into your channel, then in your scene:
m.ads = m.top.createChild("SolinnAds")
m.ads.callFunc("configure", { appKey: "your-app-key", tier: "free", kids: false })
m.ads.callFunc("moment", "menu")
m.ads.observeField("upgrade", "onUpgrade")   ' fires when a viewer presses OK on an upsell

The component reads RIDA and the limit-ad-tracking flag with roDeviceInfo. Display house ads with a QR call to action sit outside Roku's video-ad (RAF) rules as written; do not use this SDK for paid video ads.

Android TV, Google TV and Fire TV (Kotlin)

// build.gradle.kts
implementation("uk.solinn:tv-ads:1.0.0")

// Application.onCreate()
SolinnAds.configure(this, appKey = "your-app-key", options = SolinnAds.Options(tier = Tier.FREE))

// In an Activity, at a moment:
SolinnAds.moment(this, Moment.MENU)
SolinnAds.onUpgrade { openPremium() }

Full-screen adverts are skippable at once (Android TV guideline TV-AD). OK opens the store page for the promoted app by intent, never a web page (TV-AU); otherwise the QR code is shown.

Apple TV (Swift package)

import SolinnAds

SolinnAds.configure(appKey: "your-app-key", options: .init(tier: .free, kids: false))
SolinnAds.shared.moment(.menu, in: viewController)
SolinnAds.shared.onUpgrade = { showPremium() }

Uses the identifier for vendor (IDFV), never IDFA. In kids mode no identifier is sent at all.

Samsung Tizen, LG webOS, Vizio and web (JavaScript)

<script src="https://ads.solinn.uk/sdk/v1/solinn-ads.js"></script>
<script>
  SolinnAds.configure("your-app-key", { tier: "free" });
  SolinnAds.moment("menu").then((shown) => { /* true if an advert showed */ });
  SolinnAds.onUpgrade(() => openPremium());
</script>

Under 15 KB gzipped with no dependencies. Network calls only; no proxying or scraping (Samsung and LG SDK rules).

Anything else: plain HTTP

Call the API directly from consoles, set-top boxes or your own renderer.