OnUserEarnedIncentive

Overview

Notifies that placement has earned incentive (by rewarded ads).

Syntax

OnUserEarnedIncentive(incentiveData)

incentiveData (REQUIRED)

AATKitIncentiveData Object containing event's details. It contains below fields:

  • string PlacementName - Unique name of placement. The same name will be used in gravite.net account.

  • Reward Reward - Object containing information about reward. Might be null.

    • string Name - name of the reward.

    • string Value - value of the reward.

returns void

Examples

AATKitBinding.OnUserEarnedIncentiveDelegate += OnUserEarnedIncentive;

public void OnUserEarnedIncentive(AATKitIncentiveData incentiveData) {
    Debug.Log("onUserEarnedIncentive event: " + incentiveData.ToString());
}

Last updated