void Start() { requestBtn.onClick.AddListener(RequestAd); presentBtn.onClick.AddListener(PresentAd); requestInterstitialBtn.onClick.AddListener(RequestInterstitial); presentInterstitialBtn.onClick.AddListener(PresentInterstitial); #if UNITY_IOS PlayableAdsBridge.Init(gameObject.name, iOSDemoAppId); PlayableAdsBridge.ChannelId("channel_id"); #endif #if UNITY_ANDROID PlayableAdsAdapter.Init(gameObject.name, androidDemoAppId); PlayableAdsAdapter.ChannelId("channel_id"); #endif }
void Start() { requestBtn.onClick.AddListener(RequestAd); presentBtn.onClick.AddListener(PresentAd); PlayableAdsAdapter.Init(gameObject.name, androidTestAppId); }