unity3d - Revmob differentiate video or static interstitial in AdDidReceive -


how differentiate whether or not cached video 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 behaviour if go media -> click media -> ad units -> click on "fullscreen" ad unit "edit" button -> check if accepts video).

the possible values revmobadtype may be: "link", "banner" , "fullscreen", i'd recommend doing like:

switch (revmobadtype) {     case "link":         break;     case "fullscreen":         break;     case "banner":         break;     default:         break; } 

to check video or rewardedvideo, use:

public void videoloaded () {     debug.log("videoloaded."); } public void rewardedvideoloaded () {     debug.log("rewardedvideoloaded."); } 

check revmob's unity listener docs more information.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -