I cannot seem to get this working at all.
The interstitials and everything work fine, but I cannot get this to work, even when I enable testing.
heres what I got so far…
using UnityEngine;
using System.Collections;
public class ApplovinRewardHoe : MonoBehaviour {
// Use this for initialization
void Start () {
AppLovin.InitializeSdk();
AppLovin.SetUnityAdListener ("ApplovinRewarded");
AppLovin.LoadRewardedInterstitial();
}
void onAppLovinEventReceived(string ev){
if(ev.Contains("REWARDAPPROVEDINFO")){
Debug.Log ("give reward");
}
else if(ev.Contains("LOADEDREWARDED")){
Debug.Log ("A rewarded video was successfully loaded.");
}
else if(ev.Contains("LOADREWARDEDFAILED")){
Debug.Log ("A rewarded video failed to load.");
}
else if(ev.Contains("HIDDENREWARDED")){
Debug.Log ("A rewarded video was closed. Preload the next rewarded video.");
AppLovin.LoadRewardedInterstitial();
}
}
public void ModApplovinRewarded()
{
AppLovin.ShowRewardedInterstitial ();
AppLovin.LoadRewardedInterstitial();
Debug.Log ("should show reward");
}
}