コード例 #1
0
ファイル: LuviVungleAds.cs プロジェクト: LuviKunG/LuviTools
    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
    }
コード例 #2
0
ファイル: Vungle.cs プロジェクト: bangaruraju/MonkeyGod
 // 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
 }
コード例 #3
0
ファイル: Vungle.cs プロジェクト: Veryphone/VeryFarmBusiness
    // 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
    }