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.
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:
The .fullscreen class is used as a fallback when the browser's native fullscreen API is not available or as a CSS-based alternative.