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

Widget Name
Description
Example
With Currency Sales

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:

🎨 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.

πŸ‘©πŸ»β€πŸ’» Javascript

Add this script to handle fullscreen communication between the widget and your page:

Last updated