Esempio n. 1
0
    public void ShowAdvertisment(VungleAdsCallback callback)
    {
        onAdsCallback = callback;
#if UNITY_EDITOR
        Log("Cannot play ads on editor.");
        return;
#elif UNITY_ANDROID
        Log("ShowAdvertisment");
        VungleAndroid.playAdEx(true, (int)VungleAdOrientation.MatchVideo, true);
#endif
    }
Esempio n. 2
0
 // Displays an ad with the given options. The user option is only supported for incentivized ads.
 public static void playAdWithOptions(Dictionary <string, object> options)
 {
     if (options == null)
     {
         throw new ArgumentException("You can not call this method with null parameter");
     }
             #if UNITY_IPHONE
     VungleBinding.playAdEx(options);
             #elif UNITY_ANDROID
     VungleAndroid.playAdEx(options);
             #elif UNITY_WSA_10_0
     VungleWin.playAdEx(options);
             #endif
 }
Esempio n. 3
0
    // Displays an ad with the given options. The user option is only supported for incentivized ads.
    public static void playAdWithOptions(Dictionary <string, object> options)
    {
#if (!VUNGLE_AD_OFF)
#if UNITY_EDITOR
        return;
#endif
        if (options == null)
        {
            throw new ArgumentException("You can not call this method with null parameter");
        }
#if UNITY_IPHONE
        VungleBinding.playAdEx(options);
#elif UNITY_ANDROID
        VungleAndroid.playAdEx(options);
#elif UNITY_WSA_10_0 || UNITY_WINRT_8_1 || UNITY_METRO
        VungleWin.playAdEx(options);
#endif
#endif
    }