我正在开发PhoneGap \ Cordova平台上的应用程序,并愿意整合MobFox视频广告。
我正在尝试播放视频广告,从MobFox广告服务器获取VAST 2.0 XML,但无法弄清楚如何...
欢迎任何帮助或指导!
答案 0 :(得分:0)
只需遵循MobFox官方指南,无需处理XML,只需调用API即可。请参阅android的示例代码:
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();