SW AdFlow

Documentation

Integrate ads into your Telegram Mini App

Rewarded Popup

A lighter rewarded format that opens on a user tap.

Pass 'pop' to open a rewarded popup. Use it from a button the user taps.

window.showAdFlow('pop')
  .then(() => {
    // ✅ User watched the ad — give the reward
  })
  .catch(e => {
    // ❌ No ad available or closed early
  });

The Code button in your dashboard always shows the right example for the ad format of your app.

Still stuck? Our team is happy to help.

Contact Support