[{"data":1,"prerenderedAt":164},["ShallowReactive",2],{"blog-/en/blog/integrate-sdk-in-5-minutes":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,"body":18,"_type":158,"_id":159,"_source":160,"_file":161,"_stem":162,"_extension":163},"/en/blog/integrate-sdk-in-5-minutes","blog",false,"","How to Integrate the GigaPub Ad SDK in 5 Minutes","Quick start for the GigaPub ad-network SDK: add ad mediation to your Telegram Mini App, show your first rewarded or interstitial ad, and confirm it works in five minutes.","2026-07-14","GigaPub Team","/og-image.png",[14,15,16,17],"telegram-mini-apps","sdk","ad-network","integration",{"type":19,"children":20,"toc":151},"root",[21,29,35,42,56,68,74,87,98,104,109,115,135],{"type":22,"tag":23,"props":24,"children":26},"element","h1",{"id":25},"how-to-integrate-the-gigapub-ad-sdk-in-5-minutes",[27],{"type":28,"value":8},"text",{"type":22,"tag":30,"props":31,"children":32},"p",{},[33],{"type":28,"value":34},"GigaPub is the ad network and ad-mediation layer for Telegram Mini Apps — and you do not need\na complex build pipeline to start earning. Here is the fastest path from zero to your first\nad impression.",{"type":22,"tag":36,"props":37,"children":39},"h2",{"id":38},"_1-add-the-loader-script",[40],{"type":28,"value":41},"1. Add the loader script",{"type":22,"tag":30,"props":43,"children":44},{},[45,47,54],{"type":28,"value":46},"Drop the SDK loader into your app's HTML. It exposes a global ",{"type":22,"tag":48,"props":49,"children":51},"code",{"className":50},[],[52],{"type":28,"value":53},"GigaPub",{"type":28,"value":55}," object.",{"type":22,"tag":57,"props":58,"children":63},"pre",{"className":59,"code":61,"language":62,"meta":7},[60],"language-html","\u003Cscript src=\"https://ad.gigapub.tech/loader.js\" data-app-id=\"YOUR_APP_ID\">\u003C/script>\n","html",[64],{"type":22,"tag":48,"props":65,"children":66},{"__ignoreMap":7},[67],{"type":28,"value":61},{"type":22,"tag":36,"props":69,"children":71},{"id":70},"_2-show-an-ad",[72],{"type":28,"value":73},"2. Show an ad",{"type":22,"tag":30,"props":75,"children":76},{},[77,79,85],{"type":28,"value":78},"Call ",{"type":22,"tag":48,"props":80,"children":82},{"className":81},[],[83],{"type":28,"value":84},"show()",{"type":28,"value":86}," at a natural moment — for example, when the player asks for a bonus. It returns\na promise that resolves when the mediated ad finishes.",{"type":22,"tag":57,"props":88,"children":93},{"className":89,"code":91,"language":92,"meta":7},[90],"language-js","try {\n  await window.GigaPub.show()\n  grantReward()\n} catch (e) {\n  // No ad available or the user closed it early — continue gracefully\n}\n","js",[94],{"type":22,"tag":48,"props":95,"children":96},{"__ignoreMap":7},[97],{"type":28,"value":91},{"type":22,"tag":36,"props":99,"children":101},{"id":100},"_3-verify",[102],{"type":28,"value":103},"3. Verify",{"type":22,"tag":30,"props":105,"children":106},{},[107],{"type":28,"value":108},"Open your app, trigger the ad, and check the publisher dashboard — the impression appears in\nreal time. That's it.",{"type":22,"tag":36,"props":110,"children":112},{"id":111},"next-steps",[113],{"type":28,"value":114},"Next steps",{"type":22,"tag":116,"props":117,"children":118},"ul",{},[119,125,130],{"type":22,"tag":120,"props":121,"children":122},"li",{},[123],{"type":28,"value":124},"Add rewarded and interstitial placements at the right moments",{"type":22,"tag":120,"props":126,"children":127},{},[128],{"type":28,"value":129},"Let the ad mediation optimise fill rate and CPM across networks",{"type":22,"tag":120,"props":131,"children":132},{},[133],{"type":28,"value":134},"Enable offerwalls and smart links for extra revenue",{"type":22,"tag":30,"props":136,"children":137},{},[138,140,149],{"type":28,"value":139},"Register and grab your app id for the Telegram Mini App ad network at\n",{"type":22,"tag":141,"props":142,"children":146},"a",{"href":143,"rel":144},"https://giga.pub",[145],"nofollow",[147],{"type":28,"value":148},"giga.pub",{"type":28,"value":150},".",{"title":7,"searchDepth":152,"depth":152,"links":153},2,[154,155,156,157],{"id":38,"depth":152,"text":41},{"id":70,"depth":152,"text":73},{"id":100,"depth":152,"text":103},{"id":111,"depth":152,"text":114},"markdown","content:en:blog:integrate-sdk-in-5-minutes.md","content","en/blog/integrate-sdk-in-5-minutes.md","en/blog/integrate-sdk-in-5-minutes","md",1784538169180]