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
}
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
}
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.