[{"data":1,"prerenderedAt":504},["ShallowReactive",2],{"blog-/en/blog/telegram-mini-app-sdk-csp-webview-checklist/":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"author":11,"cover":12,"ogImage":12,"tags":13,"draft":6,"faq":19,"body":29,"_type":498,"_id":499,"_source":500,"_file":501,"_stem":502,"_extension":503},"/en/blog/telegram-mini-app-sdk-csp-webview-checklist","blog",false,"","Telegram Mini App Ad SDK Checklist: CSP Headers, Backup Loader, WebView and Show Rate","Engineering checklist for integrating an ad SDK in Telegram Mini Apps: Content-Security-Policy rules, backup-domain loader, WebView debugging, and separating request rate from show rate.","2026-11-24","GigaPub Team","/og-image.png",[14,15,16,17,18],"telegram-mini-apps","sdk","webview","fill-rate","rtb",[20,23,26],{"q":21,"a":22},"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.",{"q":24,"a":25},"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.",{"q":27,"a":28},"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.",{"type":30,"children":31,"toc":484},"root",[32,40,46,53,78,114,120,133,241,255,261,266,319,332,338,410,416,429,450,456,462,466,471,475,480],{"type":33,"tag":34,"props":35,"children":37},"element","h1",{"id":36},"telegram-mini-app-ad-sdk-checklist-csp-headers-backup-loader-webview-and-show-rate",[38],{"type":39,"value":8},"text",{"type":33,"tag":41,"props":42,"children":43},"p",{},[44],{"type":39,"value":45},"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.",{"type":33,"tag":47,"props":48,"children":50},"h2",{"id":49},"_1-verify-script-loading-and-the-backup-domain-loader",[51],{"type":39,"value":52},"1. Verify script loading and the backup-domain loader",{"type":33,"tag":41,"props":54,"children":55},{},[56,58,67,69,76],{"type":39,"value":57},"Follow the exact initialization snippet in the ",{"type":33,"tag":59,"props":60,"children":64},"a",{"href":61,"rel":62},"https://docs.giga.pub/integration-guide.html",[63],"nofollow",[65],{"type":39,"value":66},"GigaPub integration guide",{"type":39,"value":68}," (",{"type":33,"tag":70,"props":71,"children":73},"code",{"className":72},[],[74],{"type":39,"value":75},"https://ad.gigapub.tech/script?id=YOUR_PROJECT_ID",{"type":39,"value":77},") together with the documented backup-domain loader.",{"type":33,"tag":79,"props":80,"children":81},"ul",{},[82,96,109],{"type":33,"tag":83,"props":84,"children":85},"li",{},[86,88,94],{"type":39,"value":87},"Confirm ",{"type":33,"tag":70,"props":89,"children":91},{"className":90},[],[92],{"type":39,"value":93},"typeof window.showGiga === 'function'",{"type":39,"value":95}," before enabling or triggering a placement.",{"type":33,"tag":83,"props":97,"children":98},{},[99,101,107],{"type":39,"value":100},"In SSR frameworks (Nuxt, Next.js), guard SDK calls behind client-only lifecycle hooks so hydration never calls ",{"type":33,"tag":70,"props":102,"children":104},{"className":103},[],[105],{"type":39,"value":106},"window.showGiga()",{"type":39,"value":108}," prematurely.",{"type":33,"tag":83,"props":110,"children":111},{},[112],{"type":39,"value":113},"Keep one global in-flight lock so rapid double-taps cannot fire overlapping ad requests.",{"type":33,"tag":47,"props":115,"children":117},{"id":116},"_2-audit-content-security-policy-csp-on-production-headers",[118],{"type":39,"value":119},"2. Audit Content-Security-Policy (CSP) on production headers",{"type":33,"tag":41,"props":121,"children":122},{},[123,125,131],{"type":39,"value":124},"A strict ",{"type":33,"tag":70,"props":126,"children":128},{"className":127},[],[129],{"type":39,"value":130},"Content-Security-Policy",{"type":39,"value":132}," that passed local dev often blocks production ad scripts or media inside Telegram WebView.",{"type":33,"tag":134,"props":135,"children":136},"table",{},[137,156],{"type":33,"tag":138,"props":139,"children":140},"thead",{},[141],{"type":33,"tag":142,"props":143,"children":144},"tr",{},[145,151],{"type":33,"tag":146,"props":147,"children":148},"th",{},[149],{"type":39,"value":150},"Failure in WebView console",{"type":33,"tag":146,"props":152,"children":153},{},[154],{"type":39,"value":155},"What to inspect",{"type":33,"tag":157,"props":158,"children":159},"tbody",{},[160,184,207],{"type":33,"tag":142,"props":161,"children":162},{},[163,173],{"type":33,"tag":164,"props":165,"children":166},"td",{},[167],{"type":33,"tag":70,"props":168,"children":170},{"className":169},[],[171],{"type":39,"value":172},"Refused to load the script",{"type":33,"tag":164,"props":174,"children":175},{},[176,182],{"type":33,"tag":70,"props":177,"children":179},{"className":178},[],[180],{"type":39,"value":181},"script-src",{"type":39,"value":183}," missing the primary or backup GigaPub script host",{"type":33,"tag":142,"props":185,"children":186},{},[187,196],{"type":33,"tag":164,"props":188,"children":189},{},[190],{"type":33,"tag":70,"props":191,"children":193},{"className":192},[],[194],{"type":39,"value":195},"Refused to connect to",{"type":33,"tag":164,"props":197,"children":198},{},[199,205],{"type":33,"tag":70,"props":200,"children":202},{"className":201},[],[203],{"type":39,"value":204},"connect-src",{"type":39,"value":206}," blocking ad request or telemetry/billing endpoints",{"type":33,"tag":142,"props":208,"children":209},{},[210,215],{"type":33,"tag":164,"props":211,"children":212},{},[213],{"type":39,"value":214},"Blank creative or blocked iframe",{"type":33,"tag":164,"props":216,"children":217},{},[218,224,226,232,233,239],{"type":33,"tag":70,"props":219,"children":221},{"className":220},[],[222],{"type":39,"value":223},"frame-src",{"type":39,"value":225}," / ",{"type":33,"tag":70,"props":227,"children":229},{"className":228},[],[230],{"type":39,"value":231},"img-src",{"type":39,"value":225},{"type":33,"tag":70,"props":234,"children":236},{"className":235},[],[237],{"type":39,"value":238},"media-src",{"type":39,"value":240}," too restrictive for creative assets",{"type":33,"tag":41,"props":242,"children":243},{},[244,246,253],{"type":39,"value":245},"Always test the exact production headers inside Telegram Android and iOS WebViews using ",{"type":33,"tag":59,"props":247,"children":250},{"href":248,"rel":249},"https://core.telegram.org/bots/webapps#debug-mode-for-mini-apps",[63],[251],{"type":39,"value":252},"Telegram's Mini App debug mode",{"type":39,"value":254},", not only in desktop Chrome.",{"type":33,"tag":47,"props":256,"children":258},{"id":257},"_3-separate-fill-rate-from-show-rate-in-your-client-logs",[259],{"type":39,"value":260},"3. Separate fill rate from show rate in your client logs",{"type":33,"tag":41,"props":262,"children":263},{},[264],{"type":39,"value":265},"Logging only \"ad failed\" hides whether the problem is demand or your own frontend:",{"type":33,"tag":267,"props":268,"children":269},"ol",{},[270,281,299,309],{"type":33,"tag":83,"props":271,"children":272},{},[273,279],{"type":33,"tag":274,"props":275,"children":276},"strong",{},[277],{"type":39,"value":278},"Attempt accepted",{"type":39,"value":280}," — user tapped the button and your lock accepted the call.",{"type":33,"tag":83,"props":282,"children":283},{},[284,289,291,297],{"type":33,"tag":274,"props":285,"children":286},{},[287],{"type":39,"value":288},"SDK ready",{"type":39,"value":290}," — ",{"type":33,"tag":70,"props":292,"children":294},{"className":293},[],[295],{"type":39,"value":296},"window.showGiga",{"type":39,"value":298}," existed and started the request.",{"type":33,"tag":83,"props":300,"children":301},{},[302,307],{"type":33,"tag":274,"props":303,"children":304},{},[305],{"type":39,"value":306},"Filled vs No fill",{"type":39,"value":308}," — whether demand returned an eligible ad.",{"type":33,"tag":83,"props":310,"children":311},{},[312,317],{"type":33,"tag":274,"props":313,"children":314},{},[315],{"type":39,"value":316},"Completed / Shown",{"type":39,"value":318}," — user finished viewing and your UI restored cleanly.",{"type":33,"tag":41,"props":320,"children":321},{},[322,324,330],{"type":39,"value":323},"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 ",{"type":33,"tag":59,"props":325,"children":327},{"href":326},"/blog/telegram-mini-app-ads-not-showing/",[328],{"type":39,"value":329},"Telegram Mini App ads not showing",{"type":39,"value":331},".",{"type":33,"tag":47,"props":333,"children":335},{"id":334},"_4-keep-offerwall-and-rtb-integrations-isolated-from-rewarded-triggers",[336],{"type":39,"value":337},"4. Keep OfferWall and RTB integrations isolated from rewarded triggers",{"type":33,"tag":79,"props":339,"children":340},{},[341,368],{"type":33,"tag":83,"props":342,"children":343},{},[344,349,351,358,360,367],{"type":33,"tag":274,"props":345,"children":346},{},[347],{"type":39,"value":348},"OfferWall:",{"type":39,"value":350}," track task starts and verified claims separately from rewarded video views so reward callbacks never collide. See ",{"type":33,"tag":59,"props":352,"children":355},{"href":353,"rel":354},"https://docs.giga.pub/integration-offerwall-guide.html",[63],[356],{"type":39,"value":357},"OfferWall SDK integration",{"type":39,"value":359}," and ",{"type":33,"tag":59,"props":361,"children":364},{"href":362,"rel":363},"https://docs.giga.pub/offerwall-advanced-usage.html",[63],[365],{"type":39,"value":366},"advanced OfferWall usage",{"type":39,"value":331},{"type":33,"tag":83,"props":369,"children":370},{},[371,376,378,384,386,392,394,400,402,409],{"type":33,"tag":274,"props":372,"children":373},{},[374],{"type":39,"value":375},"RTB / programmatic buyers & partners:",{"type":39,"value":377}," verify ",{"type":33,"tag":70,"props":379,"children":381},{"className":380},[],[382],{"type":39,"value":383},"imp.id",{"type":39,"value":385},", ",{"type":33,"tag":70,"props":387,"children":389},{"className":388},[],[390],{"type":39,"value":391},"burl",{"type":39,"value":393}," billing fire-once rules, and ",{"type":33,"tag":70,"props":395,"children":397},{"className":396},[],[398],{"type":39,"value":399},"204",{"type":39,"value":401}," no-bid handling against the ",{"type":33,"tag":59,"props":403,"children":406},{"href":404,"rel":405},"https://docs.giga.pub/rtb-api-request.html",[63],[407],{"type":39,"value":408},"GigaPub RTB API specification",{"type":39,"value":331},{"type":33,"tag":47,"props":411,"children":413},{"id":412},"_5-sanitize-traces-before-escalating-to-support",[414],{"type":39,"value":415},"5. Sanitize traces before escalating to support",{"type":33,"tag":41,"props":417,"children":418},{},[419,421,427],{"type":39,"value":420},"When opening a support ticket, include project ID, UTC timestamp, country, OS, Telegram client version, and console/network status codes — and always strip ",{"type":33,"tag":70,"props":422,"children":424},{"className":423},[],[425],{"type":39,"value":426},"initData",{"type":39,"value":428},", bot tokens, and user auth parameters.",{"type":33,"tag":41,"props":430,"children":431},{},[432,434,441,443,449],{"type":39,"value":433},"Ready to deploy or verify your project ID? Open the ",{"type":33,"tag":59,"props":435,"children":438},{"href":436,"rel":437},"https://partner.giga.pub/?utm_source=blog&utm_medium=organic&utm_campaign=telegram-mini-app-sdk-csp-webview-checklist",[63],[439],{"type":39,"value":440},"GigaPub publisher dashboard",{"type":39,"value":442}," and review the ",{"type":33,"tag":59,"props":444,"children":446},{"href":61,"rel":445},[63],[447],{"type":39,"value":448},"SDK integration guide",{"type":39,"value":331},{"type":33,"tag":47,"props":451,"children":453},{"id":452},"frequently-asked-questions",[454],{"type":39,"value":455},"Frequently asked questions",{"type":33,"tag":457,"props":458,"children":460},"h3",{"id":459},"why-can-an-ad-sdk-work-in-a-desktop-browser-and-fail-inside-telegram-webview",[461],{"type":39,"value":21},{"type":33,"tag":41,"props":463,"children":464},{},[465],{"type":39,"value":22},{"type":33,"tag":457,"props":467,"children":469},{"id":468},"what-is-the-difference-between-fill-rate-and-show-rate",[470],{"type":39,"value":24},{"type":33,"tag":41,"props":472,"children":473},{},[474],{"type":39,"value":25},{"type":33,"tag":457,"props":476,"children":478},{"id":477},"should-my-mini-app-use-the-backup-domain-loader-from-the-documentation",[479],{"type":39,"value":27},{"type":33,"tag":41,"props":481,"children":482},{},[483],{"type":39,"value":28},{"title":7,"searchDepth":485,"depth":485,"links":486},2,[487,488,489,490,491,492],{"id":49,"depth":485,"text":52},{"id":116,"depth":485,"text":119},{"id":257,"depth":485,"text":260},{"id":334,"depth":485,"text":337},{"id":412,"depth":485,"text":415},{"id":452,"depth":485,"text":455,"children":493},[494,496,497],{"id":459,"depth":495,"text":21},3,{"id":468,"depth":495,"text":24},{"id":477,"depth":495,"text":27},"markdown","content:en:blog:telegram-mini-app-sdk-csp-webview-checklist.md","content","en/blog/telegram-mini-app-sdk-csp-webview-checklist.md","en/blog/telegram-mini-app-sdk-csp-webview-checklist","md",1796209557076]