Esempio n. 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
        }
Esempio n. 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
            }
        }
Esempio n. 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();
        });
    }
Esempio n. 4
0
 public void init(string appKey, params string[] adUnits)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     CFInitWithAdUnits(appKey, adUnits);
 }
Esempio n. 5
0
 public void init(string appKey)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     CFInit(appKey);
 }
Esempio n. 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);
 }
Esempio n. 7
0
 public void init(string appKey)
 {
     CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
     Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
     CFInit(appKey);
 }
Esempio n. 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();
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 12
0
 // Use this for initialization
 void Start()
 {
     Text = GameObject.Find("PluginVersionText");
     Text.GetComponent <UnityEngine.UI.Text> ().text = IronSource.pluginVersion();
 }