Widget
The Tyr SDK offers multiple widgets to embed campaigns within your app, each designed for different use cases and campaign types.
This widget is accessible via the /widget route and supports different layout:
https://sdk.tyrads.com/widget?token=<TOKEN>&name=<WIDGET_NAME>π§© Premium Widget
The Premium Widget is designed specifically to showcase premium campaigns within your app. It uses predefined template layouts to present these campaigns with a polished, high-quality appearance.
π© Available Widget
premium_1 (default)
Default premium widget template with standard layout.


premium_2
Alternative premium template with a different design.


no_offers
Default layout when there are no offers available

Example Usage
You can load the widget by using the /widget route and specifying a layout:
<!-- This URL will load the Premium Widget using the `premium_2` layout -->
https://sdk.tyrads.com/widget?token=<TOKEN>&name=premium_2π FullScreen Integration
We're supports fullscreen mode to provide an immersive user experience. When integrated properly, the widget automatically enters fullscreen when the SDK loads.
Add the widget iframe to your page with allowfullscreen attribute:
Note: The allowfullscreen attribute is required for the browser's fullscreen API to work. Without it, the widget will fall back to CSS-based fullscreen.
π¨ CSS
Add these styles to your page:
π©π»βπ» Javascript
Add this script to handle fullscreen communication between the widget and your page:
Last updated