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.Check if there are preloaded promotional materials on the user side with a reward type using the event
VKWebAppCheckNativeAds. - 2.Call an Event
VKWebAppShowNativeAdsto show ads. - 3.Do not forget to give the user a reward for viewing advertising.
- 1.
- •
To show ads between screens (interstitial):
- 1.Check if the user side has preloaded interstitial-type promotional materials using the event
VKWebAppCheckNativeAds. - 2.Call an Event
VKWebAppShowNativeAdsto show ads.
- 1.
- •
To display an ad banner, call the method
VKWebAppShowBannerAdand give him the parameters: location on the screen, display format, the presence of a button to close the banner.
Useful links
- •
- •
- •
- •
- •
- •
- •
- •
:::