The translation was generated automatically and may contain mistakes

Module: 7. Monetization

Lesson 2. Advertising: Connecting in a mini-app

The main thing in the lesson

  • To show a reward advertisement (rewarded):

    1. 1.
      Check if there are preloaded promotional materials on the user side with a reward type using the event VKWebAppCheckNativeAds .
    2. 2.
      Call an Event VKWebAppShowNativeAds to show ads.
    3. 3.
      Do not forget to give the user a reward for viewing advertising.
  • To show ads between screens (interstitial):

    1. 1.
      Check if the user side has preloaded interstitial-type promotional materials using the event VKWebAppCheckNativeAds .
    2. 2.
      Call an Event VKWebAppShowNativeAds to show ads.
  • To display an ad banner, call the method VKWebAppShowBannerAd and give him the parameters: location on the screen, display format, the presence of a button to close the banner.

Useful links

:::