Skip to main content
Code examples
Paola avatar
Written by Paola
Updated over 2 months ago

Examples of Rewarded Interstitial Usage.

Reward types:

  • Boosters. Give users some boosters, such as a mining multiplier or a speed multiplier, reduce downtime, use an existing booster in your game, or create a new one.

  • One more chance. When players lose in the game, they have the option to obtain an ability that will allow them to continue playing.

  • Use ads as currency. If the user does not have enough in-game currency, offer to show ads and add the missing amount.

  • Earn page. Many applications have a separate page for earning in-game currency, which you can add along with other tasks.

  • Any reward suitable for your App. The above examples are not the only ones that are possible. There may be a more appropriate place for advertising in your mini app.

Examples of In-App Interstitial usage.

Simple code example for In-App Interstitial

In interstitial format, you don't need to reward the user, so you can call the show function in one row:

<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.

Also, you may show an Interstitial when it’s required, especially for you, by calling the show_XXX function, which returns a promise. In catch, you can get errors, such as an error when showing an ad or an error if no banner is shown. You can handle errors or just do nothing.

Interstitial open methods

You can use several open methods. The types below are just examples; you can create any Interstitial that works for your app.

  • App open. Display an ad when users open the app.

  • The transition between pages. When a user opens a page. You should not display an ad for every page to avoid a negative user experience.

  • The transition between game levels occurs when the user has completed a game level. After watching an ad, the user is redirected to the next level.

  • Any interstitial type suitable for your App (rewarded or not). The examples above are not the only ones that are possible. There may be a more suitable place for advertising in your application.

Did this answer your question?