public void playBanner() { banner = SABannerAd.createInstance(); banner.setConfigurationProduction(); banner.enableTestMode(); banner.disableParentalGate(); banner.load(30989); }
// Banner public void playBanner() { Debug.Log("Unity: play banner for " + placementIdBanner); if (banner == null) { banner = SABannerAd.createInstance(); } banner.setCallback((placementId, evt) => { Debug.Log("Unity: banner.callback " + placementId + " event: " + evt); if (evt == SAEvent.adLoaded) { banner.setSize_320_50(); banner.setColorGray(); banner.setPositionBottom(); banner.play(); } }); banner.setConfigurationProduction(); banner.load(placementIdBanner); }