Prerequisites #
Before you start integrating Monetag ads into your Telegram Mini App, make sure that the following prerequisites are met. These conditions are necessary to ensure your app can support advertising functionality and comply with both Telegram and Monetag requirements.
Telegram Bot #
You must have a working Telegram bot that is responsible for launching your Mini App. This bot acts as the entry point for users and is required to initiate the Telegram Web App session using the web_app
parameter in the bot keyboard.
HTTPS Hosting #
Your Mini App must be hosted on a secure domain (HTTPS). Telegram will not allow Web Apps to load over insecure connections, and Monetag will only serve ads on secure pages.
Static File Server or Framework Support #
Your app should be either:
- Hosted as static HTML/CSS/JS files (for simple apps), or
- Served through a framework that supports server-side rendering or client-side routing (e.g., Next.js, React, Vue.js).
In either case, the page must render correctly inside Telegram’s WebView without excessive redirects or loading issues.
Basic App Structure #
At minimum, your app should contain:
- An HTML file that serves as the entry point
- A script file where Monetag SDK tags can be inserted
- Responsive layout for mobile screens
You can optionally integrate front-end libraries or UI frameworks, as long as the app remains lightweight and fast-loading.
JavaScript Enabled #
Since Monetag ads are delivered via JavaScript SDKs, the browser environment (Telegram WebView) must allow JavaScript execution. If your app includes features that disable or block JS for any reason, ads will not be displayed.
User Experience Preparedness #
Make sure your app has natural breaks, actions, or screens where ads can be placed without disrupting user experience. It’s best to identify these touchpoints in advance, so you can select appropriate ad formats during integration.
Access to Monetag Platform #
To proceed with integration, you must have a registered publisher account on the Monetag platform. Once logged in, you will be able to create ad zones, generate ad tags, and monitor performance metrics.