private void setupFreeWheel() { //change this to new FrameLayout based constructor. freeWheelController = new FreeWheelController(this, brightcoveVideoView, eventEmitter); //configure your own IAdManager or supply connection information freeWheelController.AdURL = "http://demo.v.fwmrm.net/"; freeWheelController.AdNetworkId = 90750; freeWheelController.Profile = "3pqa_android"; /* * Choose one of these to determine the ad policy (basically server or client). * - 3pqa_section - uses FW server rules - always returns a preroll and a postroll. It should return whatever midroll slots you request though. * - 3pqa_section_nocbp - returns the slots that you request. */ //freeWheelController.setSiteSectionId("3pqa_section"); freeWheelController.SiteSectionId = "3pqa_section_nocbp"; eventEmitter.on(FreeWheelEventType.SHOW_DISPLAY_ADS, new EventListenerAnonymousInnerClassHelper(this)); eventEmitter.on(FreeWheelEventType.WILL_SUBMIT_AD_REQUEST, new EventListenerAnonymousInnerClassHelper2(this)); freeWheelController.enable(); }
private void setupFreeWheel() { //change this to new FrameLayout based constructor. freeWheelController = new FreeWheelController(this, brightcoveVideoView, eventEmitter); //configure your own IAdManager or supply connection information freeWheelController.AdURL = "http://demo.v.fwmrm.net/"; freeWheelController.AdNetworkId = 90750; freeWheelController.Profile = "3pqa_android"; /* * Choose one of these to determine the ad policy (basically server or client). * - 3pqa_section - uses FW server rules - always returns a preroll and a postroll. It should return whatever midroll slots you request though. * - 3pqa_section_nocbp - returns the slots that you request. */ //freeWheelController.setSiteSectionId("3pqa_section"); freeWheelController.SiteSectionId = "3pqa_section_nocbp"; eventEmitter.on(FreeWheelEventType.SHOW_DISPLAY_ADS, new EventListenerAnonymousInnerClassHelper(this)); eventEmitter.on(FreeWheelEventType.WILL_SUBMIT_AD_REQUEST, new EventListenerAnonymousInnerClassHelper2(this)); freeWheelController.enable(); }