Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Applovin Rewarded Videos

Discussion in 'Editor & General Support' started by iEpic, May 29, 2015.

  1. iEpic

    iEpic

    Joined:
    Sep 29, 2013
    Posts:
    119
    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...
    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3.  
    4. public class ApplovinRewardHoe : MonoBehaviour {
    5.  
    6.     // Use this for initialization
    7.     void Start () {
    8.         AppLovin.InitializeSdk();
    9.  
    10.         AppLovin.SetUnityAdListener ("ApplovinRewarded");
    11.         AppLovin.LoadRewardedInterstitial();
    12.  
    13.     }
    14.     void onAppLovinEventReceived(string ev){
    15.         if(ev.Contains("REWARDAPPROVEDINFO")){
    16.  
    17.             Debug.Log ("give reward");
    18.         }
    19.         else if(ev.Contains("LOADEDREWARDED")){
    20.             Debug.Log ("A rewarded video was successfully loaded.");
    21.         }
    22.         else if(ev.Contains("LOADREWARDEDFAILED")){
    23.             Debug.Log ("A rewarded video failed to load.");
    24.         }
    25.         else if(ev.Contains("HIDDENREWARDED")){
    26.             Debug.Log ("A rewarded video was closed.  Preload the next rewarded video.");
    27.             AppLovin.LoadRewardedInterstitial();
    28.         }
    29.     }
    30.  
    31.     public void ModApplovinRewarded()
    32.     {
    33.         AppLovin.ShowRewardedInterstitial ();
    34.         AppLovin.LoadRewardedInterstitial();
    35.         Debug.Log ("should show reward");
    36.     }
    37.  
    38.  
    39.  
    40. }
    41.  
     
  2. applovinmike

    applovinmike

    Joined:
    May 29, 2015
    Posts:
    1
    Hello,

    This is Michael from AppLovin, I can help with you with the integration issue directly. Feel free to reach out to me at mike.eisenberg@applovin.com, I'll be able to help you resolve the issue.
     
  3. umer-rammay

    umer-rammay

    Joined:
    Jun 5, 2013
    Posts:
    6
    I am facing issue michael and I have sent an email please check
     
  4. flytrendapps

    flytrendapps

    Joined:
    Sep 8, 2018
    Posts:
    1
    Estou tendo o mesmo problema