Exemplo n.º 1
0
    void ShowAdInsert()
    {
        if (Config.main.channel == Source.HUAWEI)
        {
            // return;
        }
        string source = Source.GDT;//GDT

        if (Common.isiOS)
        {
            source = Source.CHSJ;
        }
        AdInsert.InitAd(source);
        AdKitCommon.main.ShowAdInsert(100);
    }
Exemplo n.º 2
0
    public void AdInsertDidFail(string adsource)
    {
        int    type = AdConfigParser.SOURCE_TYPE_INSERT;
        AdInfo info = AdConfig.main.GetNextPriority(type);

        if (info != null)
        {
            AdInsert.InitAd(info.source);
            AdInsert.ShowAd();
        }
        else
        {
            if (callbackFinish != null)
            {
                callbackFinish(AdType.INSERT, AdStatus.FAIL, null);
            }
        }
    }
Exemplo n.º 3
0
    public void InitAdInsert()
    {
        if (Common.noad)
        {
            return;
        }

        bool isShowAdInsert = false;

        if (AppVersion.appCheckHasFinished)
        {
            isShowAdInsert = true;
        }
        if (isShowAdInsert)
        {
            AdInsert.SetObjectInfo(this.gameObject.name);
            int    type   = AdConfigParser.SOURCE_TYPE_INSERT;
            string source = AdConfig.main.GetAdSource(type);
            AdInsert.InitAd(source);
        }
    }