예제 #1
0
        private static void IronSourceImpressionHandler(string json)
        {
#if gameanalytics_ironsource_enabled
            // Remove potential label/tag from version number
            string v     = IronSource.pluginVersion();
            int    index = v.IndexOf("-");
            if (index >= 0)
            {
                v = v.Substring(0, index);
            }

            GA.CallStatic("addImpressionIronSourceEvent", v, json);
#endif
        }
예제 #2
0
        private static void IronSourceImpressionHandler(string json)
        {
            if (!string.IsNullOrEmpty(json))
            {
#if gameanalytics_ironsource_enabled
                // Remove potential label/tag from version number
                string v     = IronSource.pluginVersion();
                int    index = v.IndexOf("-");
                if (index >= 0)
                {
                    v = v.Substring(0, index);
                }

                addImpressionEvent("ironsource", v, json);
#endif
            }
        }
예제 #3
0
    public override void Init()
    {
#if IRONSOURCE
        IronSource.Agent.init(appKey, IronSourceAdUnits.REWARDED_VIDEO, IronSourceAdUnits.INTERSTITIAL, IronSourceAdUnits.BANNER);
        IronSource.Agent.shouldTrackNetworkState(true);
        IronSource.Agent.setConsent(true);
#if DEBUG
        IronSource.Agent.validateIntegration();
        IronSource.Agent.setAdaptersDebug(true);
        LDebug.Log(IronSource.pluginVersion());
        LDebug.Log(IronSource.unityVersion());
#endif
#endif

        LitFramework.LitTool.LitTool.DelayPlayFunction(0.1f, () =>
        {
            //if (AdManager.Instance.UseAds)
            //    CreateBanner();
            CreateInterstitial();
            CreateRewarded();
        });
    }
예제 #4
0
 public void init(string appKey, params string[] adUnits)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     CFInitWithAdUnits(appKey, adUnits);
 }
예제 #5
0
 public void init(string appKey)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     CFInit(appKey);
 }
예제 #6
0
 public void initISDemandOnly(string appKey, params string[] adUnits)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
     CFInitISDemandOnly(appKey, adUnits);
 }
예제 #7
0
 public void init(string appKey)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
     CFInit(appKey);
 }
예제 #8
0
 public void init(string appKey, params string[] adUnits)
 {
     getBridge().Call("setPluginData", "Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     getBridge().Call("init", appKey, adUnits);
 }
 private void Start()
 {
     Text = GameObject.Find("PluginVersionText");
     Text.GetComponent <Text>().text = IronSource.pluginVersion();
 }
예제 #10
0
 public void init(string appKey)
 {
     getBridge().Call("setPluginData", "Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
     getBridge().Call("init", appKey);
 }
예제 #11
0
 public void initISDemandOnly(string appKey, params string[] adUnits)
 {
     getBridge().Call("setPluginData", "Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
     getBridge().Call("initISDemandOnly", appKey, adUnits);
 }
예제 #12
0
 // Use this for initialization
 void Start()
 {
     Text = GameObject.Find("PluginVersionText");
     Text.GetComponent <UnityEngine.UI.Text> ().text = IronSource.pluginVersion();
 }