AdColony统一sdk

时间:2016-03-05 13:50:50

标签: sdk adcolony

您好我在安装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.");
    }
}

0 个答案:

没有答案