If you don't have a Monetag account, feel free to create one according to this manual.
Step 2: Add your App to the Self-Service Platform
2.1. Go to the «Telegram Mini Apps» Tab in your Monetag account and press the "ADD APP" button.
2.2. Fill in general information about your Telegram App: set up its name and provide the link to your application. After filling in the info, click the "Add and Continue" Button.
Alternatively, you can click "+Create new" in the upper right corner of your Monetag dashboard.
Then select "Telegram Mini App" and click "Add new app" button.
Please be sure that the content of your Telegram Mini App does not violate Monetag Terms.
Important Note:
Please ensure you have preliminarily created a Telegram bot (via @BotFather) and the Mini App itself. Also, to work with Monetag, you should have some experience using JavaScript to manage your Telegram Mini App.
Step 3: Create an Ad Tag in the Monetag dashboard
The first tag will be created automatically once you add the App to the Monetag dashboard.
You can add many placements for the Rewarded Interstitial Tags inside one Telegram Mini App. To add the new ones, please click on "+Create new" button.
Step 4: Add an Ad Tag to your app
4.1. Copy the JS code of your ad tag from the Monetag Dashboard.
4.2. To connect your Mini App to the Monetag, place the copied script below the <head> tag of your Mini App's source code.
Step 5. Insert the Interstitial format code into the platform.
In interstitial format, you don't need to reward a user, so you can call the show function in one row. In catch, you can get errors like errors during showing ads or errors if there is no banner to show. You can handle errors or just do nothing.
<script src="https://domain.com/vignette.min.js" data-zone="XXX" data-sdk="show_XXX" data-auto="2/0.1/30/5/0"></script>
This value is decoded as follows:
Show automatically 2 ads within 0.1 hour (6 minutes) with a 30-second interval between them and a 5-second delay before the first one is shown. The last digit 0 means that the session will be saved when you navigate between pages. If you set the last digit as 1, then at any transition between pages, the session will be reset, and the ads will start again.