// Use this for initialization void Awake() { #if UNITY_IPHONE || UNITY_ANDROID IMobileSdkAdsUnityPlugin.registerFullScreen(partnerID, mediaID, spotID); IMobileSdkAdsUnityPlugin.start(spotID); IMobileSdkAdsUnityPlugin.addObserver(gameObject.name); adViewId = IMobileSdkAdsUnityPlugin.show(spotID, IMobileSdkAdsUnityPlugin.AdType.BANNER, IMobileSdkAdsUnityPlugin.AdAlignPosition.CENTER, IMobileSdkAdsUnityPlugin.AdValignPosition.BOTTOM); #endif }