Revmob differentiate video or static interstitial in AdDidReceive

39 views Asked by At

How to differentiate whether or not cached video is static interstitial fullscreen or video ad in AdDidReceive delegate method???

public void AdDidReceive (string revMobAdType)
{
    if( revMobAdType == ?? ) {} //video or static interstitial
}
1

There are 1 answers

3
Thiago Murakami On

The interstitial ad can receive static images or videos (you can configure this behaviour if you go to Media -> Click your Media -> Ad Units -> Click on your "Fullscreen" ad unit "Edit" button -> Check if it accepts video).

The possible values for revMobAdType may be: "Link", "Banner" and "Fullscreen", so I'd recommend doing something like:

switch (revMobAdType) {
    case "Link":
        break;
    case "Fullscreen":
        break;
    case "Banner":
        break;
    default:
        break;
}

To check for Video or RewardedVideo, use:

public void VideoLoaded () {
    Debug.Log("VideoLoaded.");
}
public void RewardedVideoLoaded () {
    Debug.Log("RewardedVideoLoaded.");
}

Check RevMob's Unity Listener docs for more information.