← All articles
November 24, 2026

Telegram Mini App Ad SDK Checklist: CSP Headers, Backup Loader, WebView and Show Rate

Most "low revenue" tickets in Telegram Mini Apps start as a quiet technical leak: a blocked script tag, a missing CSP directive, duplicate button clicks, or an unhandled WebView timeout. This checklist covers the five engineering checks to run before shipping a new monetization build.

1. Verify script loading and the backup-domain loader

Follow the exact initialization snippet in the GigaPub integration guide (https://ad.gigapub.tech/script?id=YOUR_PROJECT_ID) together with the documented backup-domain loader.

  • Confirm typeof window.showGiga === 'function' before enabling or triggering a placement.
  • In SSR frameworks (Nuxt, Next.js), guard SDK calls behind client-only lifecycle hooks so hydration never calls window.showGiga() prematurely.
  • Keep one global in-flight lock so rapid double-taps cannot fire overlapping ad requests.

2. Audit Content-Security-Policy (CSP) on production headers

A strict Content-Security-Policy that passed local dev often blocks production ad scripts or media inside Telegram WebView.

Failure in WebView consoleWhat to inspect
Refused to load the scriptscript-src missing the primary or backup GigaPub script host
Refused to connect toconnect-src blocking ad request or telemetry/billing endpoints
Blank creative or blocked iframeframe-src / img-src / media-src too restrictive for creative assets

Always test the exact production headers inside Telegram Android and iOS WebViews using Telegram's Mini App debug mode, not only in desktop Chrome.

3. Separate fill rate from show rate in your client logs

Logging only "ad failed" hides whether the problem is demand or your own frontend:

  1. Attempt accepted — user tapped the button and your lock accepted the call.
  2. SDK ready — window.showGiga existed and started the request.
  3. Filled vs No fill — whether demand returned an eligible ad.
  4. Completed / Shown — user finished viewing and your UI restored cleanly.

If fill rate is healthy in the dashboard while your app's completed count lags far behind, look for WebView closure, slow creative load, or premature modal unmount rather than blaming demand. For full failure triage, read Telegram Mini App ads not showing.

4. Keep OfferWall and RTB integrations isolated from rewarded triggers

5. Sanitize traces before escalating to support

When opening a support ticket, include project ID, UTC timestamp, country, OS, Telegram client version, and console/network status codes — and always strip initData, bot tokens, and user auth parameters.

Ready to deploy or verify your project ID? Open the GigaPub publisher dashboard and review the SDK integration guide.

Frequently asked questions

Why can an ad SDK work in a desktop browser and fail inside Telegram WebView?

Telegram Android, iOS and Desktop WebViews enforce stricter policies around third-party scripts, Content-Security-Policy headers, autoplay and network timeouts than a regular desktop browser tab.

What is the difference between fill rate and show rate?

Fill rate measures how often an ad request receives an eligible ad from demand sources, while show rate tracks how many of those filled responses actually finish rendering and register a valid impression in the user's WebView.

Should my Mini App use the backup-domain loader from the documentation?

Yes. Using the documented fallback loader protects SDK availability when a regional ISP or network route slows down or blocks the primary script endpoint.