Exemplo n.º 1
0
 public void playBanner()
 {
     banner = SABannerAd.createInstance();
     banner.setConfigurationProduction();
     banner.enableTestMode();
     banner.disableParentalGate();
     banner.load(30989);
 }
Exemplo n.º 2
0
    // 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);
    }