2014-09-06 45 views
0

我正在開發PhoneGap \ Cordova平臺上的應用程序,並且願意集成MobFox視頻廣告。在Cordova Phonegap應用程序中使用VAST2.0播放視頻廣告

我嘗試播放視頻廣告,獲得來自的MobFox廣告服務器使用VAST 2.0 XML時,卻無法弄清楚如何...

測試廣告網址:
http://my.mobfox.com/request.php?rt=api&r_type=video&r_resp_vast20&s=80187188f458cfde788d961b6882fd53&i=2.122.29.194&u=Mozilla/5.0%20%28iPhone;%20U;%20CPU%20iPhone%20OS%203_0%20like%20Mac%20OS%20X;%20en-us%29%20AppleWebKit/528.18%20%28KHTML,%20like%20Gecko%29%20Version/4.0%20Mobile/7A341%20Safari/528.16&o_iosadvid=68753A44-4D6F-1226-9C60-0050E4C00067

對任何幫助或方向感到高興!

+0

您是否將基於Phonegap的移動應用程序中的巨大標籤集成在一起。 – 2014-12-09 21:20:13

回答

0

只需按照MobFox官方指南,無需處理XML,只需調用API。查看Android的java示例代碼:

mManager = new AdManager(this, "http://my.mobfox.com/request.php","ENTER_PUBLISHER_ID_HERE", true); 
mManager.setListener(this); 
mManager.setInterstitialAdsEnabled(true); //enabled by default. Allows the SDK to request static interstitial ads. 
mManager.setVideoAdsEnabled(true); //disabled by default. Allows the SDK to request video fullscreen ads. 
mManager.setPrioritizeVideoAds(true); //disabled by default. If enabled, indicates that SDK should request video ads first, and only if there is no video request an interstitial (if enabled) 
mManager.requestAd(); 
相關問題