AdColony集成错误(错误,未设置平台特定的实现)

时间:2018-08-16 17:59:24

标签: c# unity3d adcolony

实施adcolony的SDK时,我在统一方面遇到错误。我已附上显示错误的屏幕截图。 我似乎无法找出问题所在,因为unity的平台设置是iOS,我在Mac上进行开发,并且当unity player处于未激活状态时没有错误。我真的需要帮助。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) =>
    {
    };
}

0 个答案:

没有答案