// Starts up the SDK with the given appId public static void init( string appId, string version ) { VungleSDKConfig config = new VungleSDKConfig (); config.SetPluginName ("unity"); config.SetPluginVersion (version); sdk = AdFactory.GetInstance(appId, config); sdk.addOnEvent(VungleManager.onEvent); }
// Starts up the SDK with the given appId public static void init(string appId, string version) { VungleSDKConfig config = new VungleSDKConfig(); config.SetPluginName("unity"); config.SetPluginVersion(version); sdk = AdFactory.GetInstance(appId, config); sdk.addOnEvent(VungleManager.onEvent); }
// Starts up the SDK with the given appId public static void init( string appId, string version, params string[] placements ) { VungleSDKConfig config = new VungleSDKConfig (); config.SetPluginName ("unity"); config.SetPluginVersion (version); config.SetApiEndpoint(new Uri("http://ads.api.vungle.com")); sdk = AdFactory.GetInstance(appId, config, placements); sdk.addOnEvent(VungleManager.onEvent); }