Exemplo n.º 1
0
        private void __setOptions(AdMobOptions options)
        {
            if (options == null)
            {
                return;
            }

            if (options.isTesting.HasValue)
            {
                isTesting = options.isTesting.Value;
            }

            if (options.logVerbose.HasValue)
            {
                logVerbose = options.logVerbose.Value;
            }

            if (options.overlap.HasValue)
            {
                overlap = options.overlap.Value;
            }

            //if(options.ContainsKey(OPT_ORIENTATION_RENEW))
            //    orientationRenew = Convert.ToBoolean(options[OPT_ORIENTATION_RENEW]);

            //if (options.ContainsKey (OPT_POSITION))
            //    adPosition = Convert.ToInt32 (options [OPT_POSITION]);
            //if (options.ContainsKey (OPT_X))
            //    posX = Convert.ToInt32 (options [OPT_X]);
            //if (options.ContainsKey (OPT_Y))
            //    posY = Convert.ToInt32 (options [OPT_Y]);

            //if (options.ContainsKey (OPT_BANNER_ID))
            //    bannerId = options [OPT_BANNER_ID];

            //if (options.ContainsKey (OPT_INTERSTITIAL_ID))
            //    interstitialId = options [OPT_INTERSTITIAL_ID];

            //if (options.ContainsKey (OPT_AD_SIZE)) {
            //    adSize = adSizeFromString(options[OPT_AD_SIZE]);
            //}
        }
Exemplo n.º 2
0
        private void __setOptions(AdMobOptions options)
        {
            if (options == null)
            {
                return;
            }

            if (options.isTesting.HasValue)
            {
                isTesting = options.isTesting.Value;
            }

            if (options.logVerbose.HasValue)
            {
                logVerbose = options.logVerbose.Value;
            }

            if (options.overlap.HasValue)
            {
                overlap = options.overlap.Value;
            }

            if (options.orientationRenew.HasValue)
            {
                orientationRenew = options.orientationRenew.Value;
            }

            if (options.position.HasValue)
            {
                adPosition = options.position.Value;
            }

            if (options.x.HasValue)
            {
                posX = options.x.Value;
            }

            if (options.y.HasValue)
            {
                posY = options.y.Value;
            }

            if (options.bannerId != null)
            {
                bannerId = options.bannerId;
            }

            if (options.interstitialId != null)
            {
                interstitialId = options.interstitialId;
            }

            if (options.adSize != null)
            {
                adSize = adSizeFromString(options.adSize);
            }

            if (options.width.HasValue)
            {
                adWidth = options.width.Value;
            }

            if (options.height.HasValue)
            {
                adHeight = options.height.Value;
            }
        }