Пример #1
0
    private void LoadBannerFromNetwork(BannerAdsNetworks network)
    {
        switch (network)
        {
        case BannerAdsNetworks.FBAudience:
            fbAudienceAdModule.LoadBannerAd();
            break;

        case BannerAdsNetworks.Admob:
            admobAdsModule.RequestBanner();
            break;

        case BannerAdsNetworks.Unity:
            unityAdsModule.LoadBanner();
            break;

        default:
            break;
        }
    }
Пример #2
0
    private void HideBannerFromNetwork(BannerAdsNetworks network)
    {
        isBannerAdLoad = false;
        switch (network)
        {
        case BannerAdsNetworks.FBAudience:
            fbAudienceAdModule.HideBannerAd();
            break;

        case BannerAdsNetworks.Admob:
            admobAdsModule.HideBanner();
            break;

        case BannerAdsNetworks.Unity:
            unityAdsModule.HideBannerAd();
            break;

        default:
            break;
        }
    }
Пример #3
0
    private void ShowBannerFromNetwork(BannerAdsNetworks network)
    {
        StatusShow.instance.ShowAdStatus("**.showing banner: " + network);
        switch (network)
        {
        case BannerAdsNetworks.FBAudience:
            fbAudienceAdModule.ShowBannerAd();
            break;

        case BannerAdsNetworks.Admob:
            admobAdsModule.ShowBanner();
            break;

        case BannerAdsNetworks.Unity:
            unityAdsModule.ShowBannerAd();
            break;

        default:
            break;
        }
    }