Esempio n. 1
0
        void ParseWeightData()
        {
            m_TimeWeight    = TDRemoteConfigTable.QueryFloat(AdsAnalysisDefine.TIME_WEIGHT);
            m_RewardWeight  = TDRemoteConfigTable.QueryFloat(AdsAnalysisDefine.REWARD_WEIGHT);
            m_InterWeight   = TDRemoteConfigTable.QueryFloat(AdsAnalysisDefine.INTER_WEIGHT);
            m_ProcessWeight = TDRemoteConfigTable.QueryFloat(AdsAnalysisDefine.PROCESS_WEIGHT);

            m_ShowInterTime = TDRemoteConfigTable.QueryIntList(AdsAnalysisDefine.SHOW_INTER_TIME);
            m_SecInterTime  = TDRemoteConfigTable.QueryInt(AdsAnalysisDefine.SEC_INTER_TIME, -1);
        }
Esempio n. 2
0
        protected void InitRemoteConfig()
        {
            int maxLoadingCount = TDRemoteConfigTable.QueryInt("ad_max_loading_count");

            if (maxLoadingCount > 0)
            {
                AdInterface.MAX_LOADING_AD_COUNT = maxLoadingCount;
            }

            int maxLoadedCount = TDRemoteConfigTable.QueryInt("ad_max_loaded_count");

            if (maxLoadedCount > 0)
            {
                AdInterface.MAX_LOADED_AD_COUNT = maxLoadedCount;
            }

            float fulladLoadOffset = TDRemoteConfigTable.QueryFloat("ad_fullscreen_load_offset");

            if (fulladLoadOffset > 1)
            {
                AdInterface.FULLSCREEN_AD_LOAD_OFFSET = fulladLoadOffset;
            }
        }