Make sure the ads module is activated when the SDK is loaded.
Add the property ads.displayAds to the miniclipSDK initialization config.
The above snippet initializes the SDK with a two display ads slots. When declared in the sdk initialization config, the slots will be created in the DOM.
By default they will be positioned in the top left corner.
Call MC.ads.updateSlot to set their position in the page.
MC.ads.showAd(<slot_id>) to show the ad slot.
Mc.ads.hideAd(<slot_id>) to hide the slot.
Mc.ads.refreshSlot (<slot_id>) to refresh the ad in the slot.
Add the property ads.videoAds to the miniclipSDK initialization config.
By default, if available, a preroll will always be played.
The video ads will centered in the window above every other content.
Call ‘MC.ads.requestVideoAd( slotId )’ to show a new video ad.
The slot Id is one of the slots declared on the initialization config.