Exemplo n.º 1
0
 public void ShowInterstitial()         //Interstitial Ad Button Show Clicked
 {
     Debug.Log("debug log ads => Showing Interstitial Ads...");
     if (Application.platform == RuntimePlatform.Android && plugin != null)
     {
         isInterstitialLoaded = false;
         plugin.ShowRewardAd("qj5ebyZ0F0vzW6yg", "Chocolate1", "coin", "30");
         plugin.PrefetchRewardAd(SSP_KEY);
     }
 }
Exemplo n.º 2
0
 public void showRewardAd()           //called when btnShowReward Clicked
 {
     Debug.Log("Show Reward...");
     //Make sure Ad is loaded before call this method
     if (Application.platform == RuntimePlatform.Android && chocoPlugin != null)
     {
         //Parma 1: Secret Key (Get it from Vdopia Portal: Required if server-to-server callback enabled)
         //Parma 2: User name – this is the user ID of your user account system
         //Param 3: Reward Currency Name or Measure
         //Param 4: Reward Amount
         chocoPlugin.ShowRewardAd("qj5ebyZ0F0vzW6yg", "Chocolate1", "coin", "30");
     }
 }
    public void showReward()               //called when btnShowReward Clicked
    {
        Debug.Log("Show Reward...");

        //Make sure Ad is loaded before call this method
        if (Application.platform == RuntimePlatform.Android && plugin != null)
        {
            //Parma 1: Secret Key (Get it from Vdopia Portal: Required if server-to-server callback enabled)
            //Parma 2: User name – this is the user ID of your user account system
            //Param 3: Reward Currency Name or Measure
            //Param 4: Reward Amount
            plugin.ShowRewardAd("qj5ebyZ0F0vzW6yg", "Chocolate1", "coin", "30");

            //Pre-fetch:  Silently pre-fetch the next reward ad without making
            //any callbacks.  The pre-fetched ad will remain in cache until you call
            //the next LoadRewardAd.
            plugin.PrefetchRewardAd("JB9dhz");
        }
    }