protected void loadAdFromVAST(String VASTXML,int width,int height) { // load an ad directly from VASTXML loadedOffscreen = true; AdWebView output = new AdWebView(this, null); RTBVASTAdResponse response = new RTBVASTAdResponse(width,height,AdType.VIDEO.toString(), null,null,"1"); response.setAdContent(VASTXML); response.setContentSource(UTConstants.RTB); response.addToExtras(UTConstants.EXTRAS_KEY_MRAID, true); output.loadAd(response); display(output); }
void start() { Clog.d("BannerAdView", getAdType().name()); /* * To check if it does not triggers AUTO_REFRESH * for video Ads (rendered using BannerAdView) */ if (getAdType() != AdType.VIDEO) { Clog.d(Clog.publicFunctionsLogTag, Clog.getString(R.string.start)); mAdFetcher.start(); loadAdHasBeenCalled = true; } }
protected void loadAdFromVAST(String VASTXML,int width,int height) { // load an ad directly from VASTXML VideoWebView output = new VideoWebView(this.getContext(),this, null); RTBVASTAdResponse response = new RTBVASTAdResponse(width,height, AdType.VIDEO.toString(), null,null,"1"); response.setAdContent(VASTXML); response.setContentSource(UTConstants.RTB); response.addToExtras(UTConstants.EXTRAS_KEY_MRAID, true); getVideoAdView().setVideoWebView(output); output.loadAd(response); }