Rewarded videos

  1. Receiving rewards
Restriction. Rewarded units can temporarily only be created through the support service. The format is only available for the mobile version of the site.

The Rewarded format contains video ads displayed on the entire screen of a mobile device. This format can be used to implement "game" mechanics within a content site, letting the user receive "rewards", such as accessing exclusive content after watching a video ad for a certain amount of time.

Rewarded videos can complement a subscription-based model, helping you monetize subscription-exclusive content. For example, a user without a subscription can watch a video and gain access to a paid article.

Receiving rewards

To invoke the reward event, add a callback function in function parameters for Ya.Context.AdvManager.render() in the embed code. Example:

Ya.Context.AdvManager.render({
    blockId: 'R-A-0000000-7',
    renderTo: 'adUnit',
    onRewarded: () => { console.log('onRewarded called'); },
    onClose: () => { console.log('onClose called'); }
});

Invocable events:

  • onOpen — Ad opened.
  • onClose — User closed the ad or the ad has been fully displayed.
  • onError — Error occurred during ad display.
  • onRewarded — Reward received, meaning the user watched the ad for allotted Time until reward specified in unit parameters.