Reward

Rewarded ads zoneType: Reward

Rewarded ads do not need to create a container. Ad rendering is performed by calling the window.adsTag.renderReward(zoneId, doneFn) method.

Parameter Description:

parameter
type
illustrate
Is it necessary to transmit
default value

zoneId

string

Specify the ad unit group. Use this parameter to distinguish the ad group revenue.

yes

--

doneFn

function

The rewarded ad completes the execution function, and the rewardStatus parameter returns the display status of the rewarded ad

no

(rewardStatus) => {}

Example:

View Demo

window.adsTag.renderReward(zoneId, (rewardedStatus) => {
    if (rewardedStatus) {
	// Execute actions after rewarded ad display is completed
	} else {
        // Perform unfinished operations on rewarded ad display
	}
});

Note:

  • Rewarded ads may display video ads. It is recommended to call this method after the user interacts with the page.

Last updated