AdColony.OfferV4VC C# (CSharp) Метод

OfferV4VC() публичный статический Метод

public static OfferV4VC ( bool popup_result ) : void
popup_result bool
Результат void
    public static void OfferV4VC( bool popup_result )
    {
    }

Same methods

AdColony::OfferV4VC ( bool popup_result, string zone_id ) : void

Usage Example

Пример #1
0
    public static void ShowVideoAdByZoneKey(string zoneIdKey, bool offerV4VCBeforePlay = false, bool showPopUpAfter = false)
    {
        ADCVideoZone videoZone = GetVideoZoneObjectByKey(zoneIdKey);
        string       zoneId    = GetZoneIdByKey(zoneIdKey);

        if (IsVideoAvailableByZoneKey(zoneIdKey))
        {
            if (videoZone.zoneType == ADCVideoZoneType.Interstitial)
            {
                AdColony.ShowVideoAd(zoneId);
            }
            else if (videoZone.zoneType == ADCVideoZoneType.V4VC)
            {
                if (offerV4VCBeforePlay)
                {
                    AdColony.OfferV4VC(showPopUpAfter, zoneId);
                }
                else
                {
                    AdColony.ShowV4VC(showPopUpAfter, zoneId);
                }
            }
            else
            {
                //Check nothing, video zone type isn't correct
                Debug.Log("An incorrect video zone type was requested to play. Please resolve this issue.");
            }
            Debug.Log("The zone '" + zoneId + "' was requested to play.");
        }
        else
        {
            Debug.Log("The zone '" + zoneId + "' was requested to play, but it is NOT ready to play yet.");
        }
    }
All Usage Examples Of AdColony::OfferV4VC