您好,我在安装 AdColony SDK for Unity 时遇到问题。我只是按照说明设置了代码,但它仍然显示我的区域中没有任何广告。我不知道是我做错了什么还是我忘记了执行某些操作。
public void Initialize()
{
// Assign any AdColony Delegates before calling Configure
AdColony.OnV4VCResult = 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.
APPID, // ADC App ID from adcolony.com
zoneID
);
}
public void PlayV4VC(string zoneID, bool prePopup, bool postPopup){
if (AdColony.IsV4VCAvailable (zoneID)) {
Debug.Log ("Video is avaiable!");
} else {
Debug.Log ("Video is NOT avaiable!");
}
}
private void OnV4VCResult (bool success,string name, int amount){
if (success) {
Debug.Log ("Video watched!");
} else {
Debug.Log ("Failed.");
}
}