0
votes

I am facing an error in unity while implementing adcolony's sdk. I have attached a screenshot showing the errors. I can not seem to figure out whats wrong since, the platform settings in unity are iOS, I am developing on a mac, and there are no errors while the unity player is not active. I really need help.Error Screenshot

void Start(){
    if (!CUtils.IsBuyItem() && !CUtils.IsAdsRemoved())
    {
        RequestBanner();
        RequestInterstitial();
    }

    ConfigureVideoAds();
    RegisterForAdsCallbacks();
}

private void ConfigureVideoAds()
{
    appOptions.UserId = "";
    appOptions.AdOrientation = AdColony.AdOrientationType.AdColonyOrientationAll;

    string[] zoneIds = new string[] { iOSRewardedVideoID, iOSRewardedVideoID };

    AdColony.Ads.Configure(iOSAppKey, appOptions, zoneIds);
}


void RegisterForAdsCallbacks(){
    AdColony.Ads.OnRequestInterstitial += (AdColony.InterstitialAd ad) =>
    {
        _videoAd = ad;
    };

    AdColony.Ads.OnExpiring += (AdColony.InterstitialAd ad) =>
    {
        AdColony.Ads.RequestInterstitialAd(ad.ZoneId, null);
    };

    AdColony.Ads.OnRewardGranted += (string zoneId, bool success, string name, int amount) =>
    {
    };
}
Hi. Please start by adding the code that throws the error, your AdManager.Start()Fredrik Widerberg
Hi, I have updated the post with the codeHussain Mustafa