实施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) =>
{
};
}