# Interface: PlayerAds
Pixellot web-sdk's ads manager.
Works with preroll and midrolls which were passed to player instance
param
instance of player
# Table of contents
# Methods
# Methods
# playAd
▸ playAd(source
): void
Immediately play ad.
# Parameters
Name | Type | Description |
---|---|---|
source | string | Source of the ad player.ads.playAd('https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator='); |
# Returns
void
# scheduleAds
▸ scheduleAds(ads
): void
Will schedule provided ads to be triggered later on provided time.
# Parameters
Name | Type |
---|---|
ads | AdSource [] |
# Returns
void