Configure() public static method

public static Configure ( string app_version, string app_id ) : void
app_version string
app_id string
return void
Example #1
0
    //---------------------------------------------------------------------------

    // Use this for initialization
    public override void Start()
    {
        base.Start();
        ConfigureZoneString();
        AdColony.Configure(appVersion, appId, zoneString);
        AdColony.OnAdAvailabilityChange = OnAdAvailabilityChange;
    }
Example #2
0
    private void InitAdvertising()
    {
                #if UNITY_ANDROID
        // Initialize Admob client and set advertisements ids
        AndroidAdMob.Client.Init(ProjectManager.bannerId);
        AndroidAdMob.Client.SetInterstisialsUnitID(ProjectManager.intersticialId);
        for (int i = 0; i < ProjectManager.adKeywords.Length; i++)
        {
            AndroidAdMob.Client.AddKeyword(ProjectManager.adKeywords[i]);
        }
        AndroidAdMob.Client.TagForChildDirectedTreatment(false);
                #if VIDEO_ADMOB
        AndroidAdMob.Client.SetRewardedVideoAdUnitID(ProjectManager.rewardedId);
        AndroidAdMob.Client.OnRewardedVideoAdClosed += OnRewardedVideoAdClosed;
                #elif VIDEO_ADCOLONY
        // Initialize AdColony client and advertisements ids
        AdColony.OnVideoStarted += OnVideoStarted;
        AdColony.OnV4VCResult    = OnV4VCResult;
        AdColony.Configure(ProjectManager.adVersion, ProjectManager.adAppId, ProjectManager.adZoneId);
                #endif
                #endif

                #if DEBUG_INFO
        Debug.Log("AndroidManager: advertising initialized successfully");
                #endif
    }
Example #3
0
    //---------------------------------------------------------------------------

    // Use this for initialization
    public override void Start()
    {
        base.Start();
        ConfigureZoneString();
        AdColony.Configure(appVersion, appId, zoneId);
        AdColony.OnAdAvailabilityChange = OnAdAvailabilityChange;
        AdColony.OnV4VCResult           = UpdateCurrencyText;
    }
Example #4
0
 public void InitAdColony()
 {
     AdColony.Configure
     (
         "version:1.0,store:google",
         AdsConfig.AdsAdColonyAppId,              // app id
         AdsConfig.AdsColonyAdPlacement           // zone id
     );
 }
    public void ConfigureADCPlugin()
    {
        //THIS MUST BE RUN BEFORE ADCOLONY.CONFIGURE() IN ORDER FOR THE AD MANAGER TO BE AWARE OF WHAT INFORMATION TO PASS TO THE ADCOLONY PLUGIN
        ConfigureZones();

        // This configures the AdColony SDK so that the application is targetting the correct zone for generating ads
        AdColony.Configure(version, // Arbitrary app version
                           appId,   // ADC App ID from adcolony.com
                           GetVideoZoneIdsAsStringArray());
    }
    //end of vars


    public void Awake()
    {
        //Google play services activate



        //Ad initialization
        AdColony.Configure(
            "version:2.0,store:google",
            "app0c620af3b8854f0eaa",
            "vzff120c3f1c414eae9c"
            );
    }
 void Start()
 {
     #if UNITY_ANDROID
     appId      = Global.ADCOLONY_APP_ID;
     zoneString = Global.ADCOLONY_ZONE;
     #elif UNITY_IPHONE
     appId      = appId_Ios;
     zoneString = zoneString_Ios;
     #endif
     AdColony.Configure("1.0", appId, zoneString);
     AdColony.OnVideoStarted  = OnVideoStarted;
     AdColony.OnVideoFinished = OnVideoFinished;
 }
    public void InitializeAdColony()
    {
        // Assign any AdColony Delegates before calling Configure
        AdColony.OnVideoFinished = this.OnVideoFinished;
        AdColony.OnV4VCResult    = this.OnV4VCResult;

        // If you wish to use a the customID feature, you should call that now.
        // Then, configure AdColony:
        AdColony.Configure(
            "version:1.0,store:google",             // Arbitrary app version and Android app store declaration.
            ADCOL_APP_ID,                           // ADC App ID from adcolony.com
            ADCOL_ZONE_ID                           // A zone ID from adcolony.com
            );
    }
Example #9
0
    public void Initialize()
    {
        // Assign any AdColony Delegates before calling Configure
        AdColony.OnVideoFinished = this.OnVideoFinished;

        // If you wish to use a the customID feature, you should call  that now.
        // Then, configure AdColony:
        AdColony.Configure
        (
            "2.0",                             // Arbitrary app version and Android app store declaration.
            "appd6bb55f42e354847b2",           // ADC App ID from adcolony.com
            "vzc731a439072747168a",            // A zone ID from adcolony.com
            "vzc731a439072747168a",            // Any number of additional Zone IDS
            "vzc731a439072747168a"
        );
    }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_rewarded_ad);

            progress = FindViewById <ProgressBar>(Resource.Id.progress);

            // Construct optional app options object to be sent with configure
            AdColonyAppOptions appOptions = new AdColonyAppOptions()
                                            .SetUserID("unique_user_id")
                                            .SetKeepScreenOn(true);

            // Configure AdColony in your launching Activity's onCreate() method so that cached ads can
            // be available as soon as possible.
            AdColony.Configure(this, appOptions, APP_ID, ZONE_ID);

            // Optional user metadata sent with the ad options in each request
            AdColonyUserMetadata metadata = new AdColonyUserMetadata()
                                            .SetUserAge(26)
                                            .SetUserEducation(AdColonyUserMetadata.UserEducationBachelorsDegree)
                                            .SetUserGender(AdColonyUserMetadata.UserMale);

            // Ad specific options to be sent with request
            adOptions = new AdColonyAdOptions()
                        .EnableConfirmationDialog(true)
                        .EnableResultsDialog(true)
                        .SetUserMetadata(metadata);

            // Create and set a reward listener
            AdColony.SetRewardListener(this);

            // Set up listener for interstitial ad callbacks. You only need to implement the callbacks
            // that you care about. The only required callback is onRequestFilled, as this is the only
            // way to get an ad object.
            listener = new MyAdColonyInterstitialListener(this);

            // Set up button to show an ad when clicked
            showButton        = FindViewById <Button>(Resource.Id.showbutton);
            showButton.Click += ShowButton_Click;

            // GDPR
            AdColony.AppOptions.SetGDPRConsentString("0");
            AdColony.AppOptions.SetGDPRRequired(false);
        }
Example #11
0
    void Start()
    {
        #if !UNITY_WEBGL
        // Initialize
        AdColony.Configure(Application.version.ToString(), GetAdColonyIDs(), new string[] { GetZoneId(AdNetwork.AdColony) });
        Chartboost.setAutoCacheAds(true);

        // AdColony
        AdColony.OnVideoFinished        += AdColonyReward;
        AdColony.OnVideoFinished        += (bool b) => { onAdClose.Invoke(); };
        AdColony.OnAdAvailabilityChange += OnAdAvailabilityChange;

        // Chartboost
        Chartboost.didCloseInterstitial += ChartboostReward;
        Chartboost.didCloseInterstitial += (CBLocation loc) => { onAdClose.Invoke(); };
        Chartboost.didCacheInterstitial += CBDownloadComplete;

        // AdMob
        AdMob_Interstitial = new InterstitialAd(GetAdMobIDs());
        #endif
    }
Example #12
0
    // Use this for initialization
    void Start()
    {
        // Flurry Ads
        FlurryAnalytics.startSession(flurryAppId, true);
        FlurryAds.fetchAdsForSpace(adsSpaceBanner, FlurryAdPlacement.BannerBottom);
        FlurryAds.fetchAdsForSpace(adsSpaceFullScreen, FlurryAdPlacement.FullScreen);

        // AdColony Ads

        AdColony.OnVideoStarted         = this.OnVideoStarted;
        AdColony.OnVideoFinished        = this.OnVideoFinished;
        AdColony.OnAdAvailabilityChange = this.OnAdAvailabilityChange;
        AdColony.OnV4VCResult           = this.OnV4VCResult;

        AdColony.Configure
        (
            "version:1.0,store:google",
            AdColonyAppId,             // app id
            AdColonyZoneId             // zone id
        );
    }
Example #13
0
    // Obtem o video
    public override void fetchVideo(bool force)
    {
        try
        {
            if (!force && tried_fetching_video)
            {
                return;
            }

            base.fetchVideo(force);

            if (!Info.IsEditor() && !Info.IsWeb())
            {
                AdColony.Configure(version, key, zone);
            }
        }
        catch
        {
            Error(API, ERROR_STARTUP_OBJECT);
        }
    }
    public void Initialize()
    {
        // Assign any AdColony Delegates before calling Configure
        AdColony.OnVideoFinished = this.OnVideoFinished;

        AdColony.OnV4VCResult = this.OnV4VCResult;


        // If you wish to use a the customID feature, you should call  that now.
        // Then, configure AdColony:
        AdColony.Configure
        (
            "version:1.0,store:google", // Arbitrary app version and Android app store declaration.
            "app5a1cbea0794348bd95",    // ADC App ID from adcolony.com
            "vz9d141739db9c4e4db4",
            "vz219b65d3d9a542d3bd"
            // A zone ID from adcolony.com

            /*"vzf8fb4670a60e4a139d01b5", // Any number of additional Zone IDS
             * "vz1fd5a8b2bf6841a0a4b826"*/
        );
    }
Example #15
0
    // Use this for initialization
    void OnEnable()
    {
        AdColony.OnV4VCResult = UpdateCurrencyText;

        AdColony.Configure("1.0", "app62487d99abf64742a2", "vzbf5bd67a56cb4d35bf");
        if (Banco.TotalDeEstrelas() >= 20)
        {
            portao1 = true;
            Sprite tex = Resources.Load("GateOpen", typeof(Sprite)) as Sprite;

            gate1.GetComponent <SpriteRenderer>().sprite = tex;
        }
        else
        {
            portao1 = false;
        }
        if (Banco.TotalDeEstrelas() >= 40)
        {
            portao2 = true;
            Sprite tex = Resources.Load("GateOpen", typeof(Sprite)) as Sprite;

            gate2.GetComponent <SpriteRenderer>().sprite = tex;
        }
        else
        {
            portao2 = false;
        }
        if (PlayerPrefs.GetInt("Vidas") < 1)
        {
            PlayerPrefs.SetInt("Vidas", 0);

            //LevelsMap.ChangeIsClickEnabled(false);
            Confirmacao2.SetActive(true);
        }


        //	Debug.Log("Subscribe to events.");
        LevelsMap.LevelSelected += OnLevelSelected;
    }
    public void Initialize(string version, string appId, string zoneId1)
    {
        this.version = version;
        this.appId   = appId;
        this.zoneId1 = zoneId1;


        //Assign any AdColony Delegates before calling Configure
        AdColony.OnVideoStarted         = this.OnVideoStarted;
        AdColony.OnVideoFinished        = this.OnVideoFinished;
        AdColony.OnV4VCResult           = this.OnV4VCResult;
        AdColony.OnAdAvailabilityChange = this.OnAdAvailabilityChange;

        // Replace these values with data for your own app and zones
        // The values are in the Main object in the Hierarchy of the ACUBasic scene
        AdColony.Configure
        (
            this.version,                       // Arbitrary app version
            this.appId,                         // ADC App ID from adcolony.com
            this.zoneId1                        // A zone ID from adcolony.com
        );
    }
Example #17
0
    public void Initialize()
    {
        // Assign any AdColony Delegates before calling Configure
        AdColony.OnVideoFinished = this.OnVideoFinished;

        AdColony.OnV4VCResult = this.OnV4VCResult;


        // If you wish to use a the customID feature, you should call  that now.
        // Then, configure AdColony:
        AdColony.Configure
        (
            "version:1.0,store:google", // Arbitrary app version and Android app store declaration.
            "appdc2913c7cdb040d98b",    // ADC App ID from adcolony.com
            "v4vc251c95abb8644927ac",   // video
            "vz9604946b51ff4e109f"
            // A zone ID from adcolony.com

            /*"vzf8fb4670a60e4a139d01b5", // Any number of additional Zone IDS
             * "vz1fd5a8b2bf6841a0a4b826"*/
        );
    }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_banner_ad);

            adContainer       = FindViewById <RelativeLayout>(Resource.Id.ad_container);
            progressBar       = FindViewById <ProgressBar>(Resource.Id.progress);
            buttonLoad        = FindViewById <Button>(Resource.Id.load_button);
            buttonLoad.Click += ButtonLoad_Click;

            // Construct optional app options object to be sent with configure
            AdColonyAppOptions appOptions = new AdColonyAppOptions();

            // Configure AdColony in your launching Activity's onCreate() method so that cached ads can
            // be available as soon as possible.
            AdColony.Configure(this, appOptions, APP_ID, ZONE_ID);

            listener = new MyAdColonyAdViewListener(this);

            // GDPR
            AdColony.AppOptions.SetGDPRConsentString("0");
            AdColony.AppOptions.SetGDPRRequired(false);
        }
Example #19
0
        public override void init(string platformId, string unitId, AdDelegate adDelegate = null)
        {
            Adzones = new string[] { unitId };
            AdColony.Configure(Application.version, platformId, Adzones);

            AdColony.OnVideoStarted += AdManager.onAdStartedEvent;

            AdColony.OnVideoFinished += (isShown) => {
                if (isShown)
                {
                    if (AdManager.AdShowSucessed != null)
                    {
                        AdManager.AdShowSucessed();
                    }
                }
                else
                {
                    if (AdManager.AdShowFailed != null)
                    {
                        AdManager.AdShowFailed();
                    }
                }
            };
        }
    public void Initialize(string version, string appId, string zoneId1, string zoneId2, string v4vcId)
    {
        this.version = version;
        this.appId   = appId;
        this.zoneId1 = zoneId1;
        this.zoneId2 = zoneId2;
        this.v4vcId  = v4vcId;

        this.findAudio();

        //Assign any AdColony Delegates before calling Configure
        AdColony.OnVideoStarted         = this.OnVideoStarted;
        AdColony.OnVideoFinished        = this.OnVideoFinished;
        AdColony.OnV4VCResult           = this.OnV4VCResult;
        AdColony.OnAdAvailabilityChange = this.OnAdAvailabilityChange;

        // Replace these values with data for your own app and zones
        // The values are in the Main object in the Hierarchy of the ACUBasic scene
        AdColony.Configure
        (
            this.version,               // Arbitrary app version
            this.appId,                 // ADC App ID from adcolony.com
            this.zoneId1,               // A zone ID from adcolony.com
            this.zoneId2,               // Any number of additional Zone IDS
            this.v4vcId
        );

        // Init UI - Not related to AdColony
        this.currency = 0;

        this.currencyBarRect        = new Rect(0.0f, 0.0f, Camera.main.pixelWidth, 0.0f);
        this.currencyBarRect.height = fontSize + gutter;
        this.currencyBarRect.y      = Camera.main.pixelHeight - this.currencyBarRect.height;

        this.brandStampRect   = new Rect(0.0f, 0.0f, this.brandStamp.width, this.brandStamp.height);
        this.brandStampRect.x = Camera.main.pixelWidth - this.brandStampRect.width;
        this.brandStampRect.y = Camera.main.pixelHeight - this.brandStampRect.height;

        this.v4vcRect        = new Rect(0.0f, 0.0f, 0.0f, 0.0f);
        this.v4vcRect.width  = Camera.main.pixelWidth * 0.9f;
        this.v4vcRect.height = Camera.main.pixelHeight * 0.075f;
        this.v4vcRect.x      = (Camera.main.pixelWidth - this.v4vcRect.width) * 0.5f;
        this.v4vcRect.y      = this.currencyBarRect.y - this.v4vcRect.height - gutter;

        this.v4vcIconRect   = new Rect(this.v4vcRect.x, 0.0f, this.v4vcRect.height, this.v4vcRect.height);
        this.v4vcIconRect.y = this.v4vcRect.y - this.v4vcIconRect.height;

        this.v4vcLabelRect       = new Rect(0.0f, this.v4vcIconRect.y, 0.0f, this.v4vcIconRect.height);
        this.v4vcLabelRect.x     = this.v4vcIconRect.x + this.v4vcIconRect.width + gutter;
        this.v4vcLabelRect.width = this.v4vcRect.width - this.v4vcIconRect.width - gutter;

        this.videoRect2   = new Rect(this.v4vcRect.x, 0.0f, this.v4vcRect.width, this.v4vcRect.height);
        this.videoRect2.x = (Camera.main.pixelWidth - this.videoRect2.width) * 0.5f;
        this.videoRect2.y = this.v4vcIconRect.y - this.videoRect2.height - gutter;

        this.statusIconRect2   = new Rect(this.videoRect2.x, 0.0f, this.videoRect2.height, this.videoRect2.height);
        this.statusIconRect2.y = this.videoRect2.y - this.statusIconRect2.height;

        this.statusLabelRect2       = new Rect(0.0f, this.statusIconRect2.y, 0.0f, this.statusIconRect2.height);
        this.statusLabelRect2.x     = this.statusIconRect2.x + this.statusIconRect2.width + gutter;
        this.statusLabelRect2.width = this.videoRect2.width - this.statusIconRect2.width - gutter;

        this.videoRect1   = new Rect(this.videoRect2.x, 0.0f, this.v4vcRect.width, this.v4vcRect.height);
        this.videoRect1.y = this.statusIconRect2.y - this.videoRect1.height - gutter;

        this.statusIconRect1   = new Rect(this.videoRect1.x, 0.0f, this.v4vcIconRect.width, this.v4vcIconRect.height);
        this.statusIconRect1.y = this.videoRect1.y - this.statusIconRect1.height;

        this.statusLabelRect1       = new Rect(0.0f, this.statusIconRect1.y, 0.0f, this.statusIconRect1.height);
        this.statusLabelRect1.x     = this.statusIconRect1.x + this.statusIconRect1.width + gutter;
        this.statusLabelRect1.width = this.videoRect1.width - this.statusIconRect1.width - gutter;

        this.changeSceneRect   = new Rect(this.videoRect1.x, 0.0f, this.v4vcRect.width, this.v4vcRect.height);
        this.changeSceneRect.y = this.statusIconRect1.y - this.changeSceneRect.height - gutter;

        this.paused = false;
    }
Example #21
0
		void Start() {
#if UNITY_IOS
			_store = GameStore.iOS;
#endif
#if UNITY_ANDROID
			_store = GameStore.GooglePlay;
#endif
			#region Ad Ids
			adLocations = new List<AdLocation>();
			adLocations.Add(new AdLocation {
				Name = "GameStart",
				storeInfo = new List<StoreInfo>() {
					new StoreInfo(){
						Store = GameStore.iOS,
						ShowAdsFrom = Provider.AdMob,
						//
						CBLoation = "GameStart",
						AdMobUnitID = "ca-app-pub-5424743688820683/3340989927"
					},
					new StoreInfo(){
						Store = GameStore.GooglePlay,
						ShowAdsFrom = Provider.AdMob,
						//
						CBLoation = "GameStart",
						AdMobUnitID = ""
					}

				}
			});
			adLocations.Add(new AdLocation {
				Name = "GameOver",
				storeInfo = new List<StoreInfo>() {
					new StoreInfo(){
						Store = GameStore.iOS,
						ShowAdsFrom = Provider.AdMob,
						//
						showAtEveryFrequency = 1,
						//
						CBLoation = "GameOver",
						AdMobUnitID = "ca-app-pub-5424743688820683/7312024522"
					},
					new StoreInfo(){
						Store = GameStore.GooglePlay,
						ShowAdsFrom = Provider.AdMob,
						//
						showAtEveryFrequency = 1,
						//
						CBLoation = "GameOver",
						AdMobUnitID = "",
					}
				}
			});
			adLocations.Add(new AdLocation {
				Name = "BackFromBG",
				storeInfo = new List<StoreInfo>() {
					new StoreInfo(){
						Store = GameStore.iOS,
						ShowAdsFrom = Provider.AdMob,
						//
						CBLoation = "BackFromBG",
						AdMobUnitID = "ca-app-pub-5424743688820683/9766797470"
					},
					new StoreInfo(){
						Store = GameStore.GooglePlay,
						ShowAdsFrom = Provider.AdMob,
						//
						CBLoation = "BackFromBG",
						AdMobUnitID = ""
					}
				}
			});
			adLocations.Add(new AdLocation {
				Name = "FreeContinue",
				storeInfo = new List<StoreInfo>() {
					new StoreInfo(){
						Store = GameStore.iOS,
						ShowAdsFrom = Provider.AdMob,
						Type = AdType.RewardVideo,
						//
						CBLoation = "FreeContinue",
						AdMobUnitID = "ca-app-pub-5424743688820683/9126280010"
					},
					new StoreInfo(){
						Store = GameStore.GooglePlay,
						ShowAdsFrom = Provider.AdMob,
						Type = AdType.RewardVideo,
						//
						CBLoation = "FreeContinue",
						AdMobUnitID = ""
					}
				}
			});
			//adLocations.Add(new AdLocation {
			//	Name = "Pause",
			//	storeInfo = new List<StoreInfo>() {
			//		new StoreInfo(){
			//			Store = GameStore.iOS,
			//			ShowAdsFrom = Provider.AdMob,
			//			//
			//			CBLoation = "Pause",
			//			AdMobUnitID = "",
			//			AdColonyZone = ""
			//		},
			//		new StoreInfo(){
			//			Store = GameStore.GooglePlay,
			//			ShowAdsFrom = Provider.AdMob,
			//			//
			//			CBLoation = "Pause",
			//			AdMobUnitID = ""
			//		}
			//	}
			//});
			//adLocations.Add(new AdLocation {
			//	Name = "Main Menu",
			//	storeInfo = new List<StoreInfo>() {
			//		new StoreInfo(){
			//			Store = GameStore.iOS,
			//			ShowAdsFrom = Provider.AdMob,
			//			//
			//			CBLoation = "Main Menu",
			//			AdMobUnitID = ""
			//		},
			//		new StoreInfo(){
			//			Store = GameStore.GooglePlay,
			//			ShowAdsFrom = Provider.AdMob,
			//			//
			//			CBLoation = "Main Menu",
			//			AdMobUnitID = ""
			//		}
			//	}
			//});
			//adLocations.Add(new AdLocation {
			//	Name = "Game Win",
			//	storeInfo = new List<StoreInfo>() {
			//		new StoreInfo(){
			//			Store = GameStore.iOS,
			//			ShowAdsFrom = Provider.AdMob,
			//			//
			//			CBLoation = "Game Win",
			//			AdMobUnitID = ""
			//		},
			//		new StoreInfo(){
			//			Store = GameStore.GooglePlay,
			//			ShowAdsFrom = Provider.AdMob,
			//			//
			//			CBLoation = "Game Win",
			//			AdMobUnitID = ""
			//		}
			//	}
			//});
			//adLocations.Add(new AdLocation {
			//	Name = "Change Mode",
			//	storeInfo = new List<StoreInfo>() {
			//		new StoreInfo(){
			//			Store = GameStore.iOS,
			//			ShowAdsFrom = Provider.AdMob,
			//			//
			//			CBLoation = "Change Mode",
			//			AdMobUnitID = ""
			//		},
			//		new StoreInfo(){
			//			Store = GameStore.GooglePlay,
			//			ShowAdsFrom = Provider.AdMob,
			//			//
			//			CBLoation = "Change Mode",
			//			AdMobUnitID = ""
			//		}
			//	}
			//});		
			//adLocations.Add(new AdLocation {
			//	Name = "FreeCash",
			//	storeInfo = new List<StoreInfo>() {
			//		new StoreInfo(){
			//			Store = GameStore.iOS,
			//			ShowAdsFrom = Provider.AdMob,
			//			Type = AdType.RewardVideo,
			//			//
			//			CBLoation = "FreeCash",
			//			AdMobUnitID = ""
			//		},
			//		new StoreInfo(){
			//			Store = GameStore.GooglePlay,
			//			ShowAdsFrom = Provider.AdMob,
			//			Type = AdType.RewardVideo,
			//			//
			//			CBLoation = "FreeCash",
			//			AdMobUnitID = ""
			//		}
			//	}
			//});
			//adLocations.Add(new AdLocation {
			//	Name = "FreeLevel",
			//	storeInfo = new List<StoreInfo>() {
			//		new StoreInfo(){
			//			Store = GameStore.iOS,
			//			ShowAdsFrom = Provider.AdMob,
			//			Type = AdType.RewardVideo,
			//			//
			//			CBLoation = "FreeLevel",
			//			AdMobUnitID = ""
			//		},
			//		new StoreInfo(){
			//			Store = GameStore.GooglePlay,
			//			ShowAdsFrom = Provider.AdMob,
			//			Type = AdType.RewardVideo,
			//			//
			//			CBLoation = "FreeLevel",
			//			AdMobUnitID = ""
			//		}
			//	}
			//});
			#endregion

			#region Chartboost SDK
#if CHARTBOOST
			//Chartboost.setAutoCacheAds(true);
			//Chartboost.setMediation(CBMediation.AdMob, "1.0");
			Chartboost.CreateWithAppId(CHARTBOOST_APPID, CHARTBOOST_APPSECRET);
#endif
			#endregion

			#region AdColony
#if ADCOLONY
		adColonyZones = GetAdColonhyZone ();
		MyDebug.Log ("------------------");
		MyDebug.Log (adColonyZones.toJson ());
		AdColony.Configure (GUtility.Me.AppVersion.ToString (), ADCOLONY_APPID, adColonyZones);
#endif
			#endregion

			StoreInfo storeInfo;
			foreach(AdLocation al in adLocations) {
				storeInfo = al.GetIdsFor(_store);
				if(null == storeInfo) continue;
				if(storeInfo.Type.Equals(AdType.Interstitial)) {
					CacheAdMob(al);
					//TODO: Commnet Bellow line CacheCBInter before final upload.
					//CacheCBInterstitial(al.CBLoation);
				}
				if(storeInfo.Type.Equals(AdType.RewardVideo)) {
					CacheAdMobRewardAd(al);
					//TODO: Commnet Bellow line CacheCBInter before final upload.
					//CacheCBRewardAd(al.CBLoation);
				}
			}
			InvokeRepeating("ShowGameStartAds", 5f, 10f);
		}