// Use this for initialization void Start() { Screen.orientation = ScreenOrientation.AutoRotation; #if UNITY_ANDROID // Initializing Presage Presage.Initialize("270413"); #endif interstitialStatus = GameObject.Find("InterstitialStatus").GetComponent <Text>(); optinVideoStatus = GameObject.Find("OptinVideoStatus").GetComponent <Text>(); }
// Use this for initialization void Awake() { #if UNITY_ANDROID PresageInterstitialImpl presageInterstitialCallback = new PresageInterstitialImpl(); // Initializing Presage Presage.Initialize("270413"); PresageInterstitial = new PresageInterstitial("82022610-5a50-0135-7016-0242ac120003"); PresageInterstitial.SetPresageInterstitialCallback(presageInterstitialCallback); presageEula = new PresageEula(); presageEula.SetIEulaHandler(new PresageEulaHandler()); presageEula.LaunchWithEula(); #endif }
// Use this for initialization void Start() { #if UNITY_ANDROID // Initializing Ogury Presage.Initialize("270413"); #endif // Initializing MoPub var sdkConfig = new MoPub.SdkConfiguration { AdUnitId = "3fa7d633bf8246f3a4ec0d92f477d3ca" }; MoPub.InitializeSdk(sdkConfig); MoPub.LoadInterstitialPluginsForAdUnits(_InterstitialAdUnits); MoPub.LoadRewardedVideoPluginsForAdUnits(_RewardedAdUnits); }