Web (JS/TS)
Version 1.3.15
Basic integration (recommended)
Add Taddy script to <head>...</head> section after telegram sdk script
<script src="https://sdk.taddy.pro/web/taddy.min.js?1317" data-pub-id="XXX"></script>Replace XXX with your Public ID
After the script is loaded, the init() method will be called automatically and the ready event will be emitted. Taddy object can be accessed via window.Taddy
Advanced integration
Add Taddy script to
<head>...</head>section after telegram sdk script
<script src="https://sdk.taddy.pro/web/taddy.min.js?1317"></script>Install TypeScript declarations (optional). This package includes only types declarations without implementation. Adding the Taddy script to the head section is required (see Step 1).
npm i taddy-sdk-web@1.3.17Initialize Taddy
const taddy = window.Taddy;
taddy.init('xxxxxxxxxxx-pub-id-xxxxxxxxxxx');Send "ready" event when app is loaded
taddy.ready()Exchange
Get exchange service
Fetch exchange feed
Send impressions (manual)
Open item via Telegram (item click handler)
Send custom event ...
Ads
Получаем рекламный сервис Taddy
Выполняем загрузку и показ рекламного объявления interstitial
Last updated