void Start() { if (instance == null) { instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(this.gameObject); } Debug.Log("unity-script: MyAppStart Start called"); //IronSourceConfig.Instance.setClientSideCallbacks(true); string id = IronSource.Agent.getAdvertiserId(); Debug.Log("unity-script: IronSource.Agent.getAdvertiserId : " + id); Debug.Log("unity-script: IronSource.Agent.validateIntegration"); IronSource.Agent.validateIntegration(); Debug.Log("unity-script: unity version" + IronSource.unityVersion()); // Add Banner Events IronSourceEvents.onBannerAdLoadedEvent += BannerAdLoadedEvent; IronSourceEvents.onBannerAdLoadFailedEvent += BannerAdLoadFailedEvent; IronSourceEvents.onBannerAdClickedEvent += BannerAdClickedEvent; IronSourceEvents.onBannerAdScreenPresentedEvent += BannerAdScreenPresentedEvent; IronSourceEvents.onBannerAdScreenDismissedEvent += BannerAdScreenDismissedEvent; IronSourceEvents.onBannerAdLeftApplicationEvent += BannerAdLeftApplicationEvent; // Add Interstitial Events IronSourceEvents.onInterstitialAdReadyEvent += InterstitialAdReadyEvent; IronSourceEvents.onInterstitialAdLoadFailedEvent += InterstitialAdLoadFailedEvent; IronSourceEvents.onInterstitialAdShowSucceededEvent += InterstitialAdShowSucceededEvent; IronSourceEvents.onInterstitialAdShowFailedEvent += InterstitialAdShowFailedEvent; IronSourceEvents.onInterstitialAdClickedEvent += InterstitialAdClickedEvent; IronSourceEvents.onInterstitialAdOpenedEvent += InterstitialAdOpenedEvent; IronSourceEvents.onInterstitialAdClosedEvent += InterstitialAdClosedEvent; IronSourceEvents.onRewardedVideoAdOpenedEvent += RewardedVideoAdOpenedEvent; IronSourceEvents.onRewardedVideoAdClosedEvent += RewardedVideoAdClosedEvent; IronSourceEvents.onRewardedVideoAvailabilityChangedEvent += RewardedVideoAvailabilityChangedEvent; IronSourceEvents.onRewardedVideoAdStartedEvent += RewardedVideoAdStartedEvent; IronSourceEvents.onRewardedVideoAdEndedEvent += RewardedVideoAdEndedEvent; // Add Interstitial DemandOnly Events IronSourceEvents.onInterstitialAdReadyDemandOnlyEvent += InterstitialAdReadyDemandOnlyEvent; IronSourceEvents.onInterstitialAdLoadFailedDemandOnlyEvent += InterstitialAdLoadFailedDemandOnlyEvent; IronSourceEvents.onInterstitialAdShowFailedDemandOnlyEvent += InterstitialAdShowFailedDemandOnlyEvent; IronSourceEvents.onInterstitialAdClickedDemandOnlyEvent += InterstitialAdClickedDemandOnlyEvent; IronSourceEvents.onInterstitialAdOpenedDemandOnlyEvent += InterstitialAdOpenedDemandOnlyEvent; IronSourceEvents.onInterstitialAdClosedDemandOnlyEvent += InterstitialAdClosedDemandOnlyEvent; // Add Rewarded Interstitial Events // IronSourceEvents.onInterstitialAdRewardedEvent += InterstitialAdRewardedEvent; // SDK init Debug.Log("unity-script: IronSource.Agent.init"); IronSource.Agent.init(appKey); //IronSource.Agent.init (appKey, IronSourceAdUnits.REWARDED_VIDEO, IronSourceAdUnits.INTERSTITIAL, IronSourceAdUnits.OFFERWALL, IronSourceAdUnits.BANNER); //IronSource.Agent.initISDemandOnly (appKey, IronSourceAdUnits.REWARDED_VIDEO, IronSourceAdUnits.INTERSTITIAL); //Set User ID For Server To Server Integration //// IronSource.Agent.setUserId ("UserId"); // Load Banner example LoadBanner(); LoadInterstitial(); }
public void initISDemandOnly(string appKey, params string[] adUnits) { CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); CFInitISDemandOnly(appKey, adUnits); }
public void init(string appKey, params string[] adUnits) { getBridge().Call("setPluginData", "Unity", IronSource.pluginVersion(), IronSource.unityVersion()); Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); getBridge().Call("init", appKey, adUnits); }
public void init(string appKey) { CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); CFInit(appKey); }
public void init(string appKey, params string[] adUnits) { getBridge().Call("setPluginData", "Unity", IronSource.pluginVersion(), IronSource.unityVersion()); getBridge().Call("init", appKey, adUnits); }
public void initISDemandOnly(string appKey, params string[] adUnits) { CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); CFInitISDemandOnly(appKey, adUnits); }
public void init(string appKey) { CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); CFInit(appKey); }
// Use this for initialization void Start() { Text = GameObject.Find("PluginVersionText"); Text.GetComponent <UnityEngine.UI.Text> ().text = IronSource.pluginVersion(); }