Package com.naver.ads.video
Interface VideoAdsManager
-
- All Implemented Interfaces:
-
com.naver.ads.video.player.AdProgressProvider
public interface VideoAdsManager implements AdProgressProvider
An object which handles playing ads after they've been received from the server. VideoAdsManager.initialize should be called first.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVideoAdsManager.Companion
-
Method Summary
Modifier and Type Method Description abstract UnitaddAdErrorListener(VideoAdErrorListener adErrorListener)Adds a listener for errors that occur during the ad initialization and playback. abstract UnitremoveAdErrorListener(VideoAdErrorListener adErrorListener)Removes a listener for error events. abstract UnitaddAdEventListener(VideoAdEvent.VideoAdEventListener adEventListener)Adds a listener for ad events that occur during ad initialization and playback. abstract UnitremoveAdEventListener(VideoAdEvent.VideoAdEventListener adEventListener)Removes a listener for ad events. abstract ResolvedAdgetCurrentAd()Returns the currently playing ad. abstract ResolvedAdViewGroupgetCurrentAdControllerView()Returns the currently rendering ResolvedAdViewGroup. abstract ResolvedCompanionAdViewGroupgetCurrentCompanionAdControllerView()Returns the currently rendering ResolvedCompanionAdViewGroup. abstract Unitinitialize(VideoAdsRenderingOptions adsRenderingOptions)Initializes the ad experience on the manager. abstract Unitpause()Pauses the current ad. abstract Unitresume()Resumes the current ad. abstract Unitskip()Skips the current ad. abstract Unitstart()Starts playing the ads. abstract Unitrewind()Resumes at the beginning of the video. abstract Unitdestroy()Stops the ad and all tracking, then releases all assets that were loaded to play the ad. abstract UnittrackVerificationNotExecuted(String vendor, Integer reasonCode)Tracks the failure of verification -
-
Method Detail
-
addAdErrorListener
abstract Unit addAdErrorListener(VideoAdErrorListener adErrorListener)
Adds a listener for errors that occur during the ad initialization and playback.
-
removeAdErrorListener
abstract Unit removeAdErrorListener(VideoAdErrorListener adErrorListener)
Removes a listener for error events.
-
addAdEventListener
abstract Unit addAdEventListener(VideoAdEvent.VideoAdEventListener adEventListener)
Adds a listener for ad events that occur during ad initialization and playback.
-
removeAdEventListener
abstract Unit removeAdEventListener(VideoAdEvent.VideoAdEventListener adEventListener)
Removes a listener for ad events.
-
getCurrentAd
abstract ResolvedAd getCurrentAd()
Returns the currently playing ad.
-
getCurrentAdControllerView
abstract ResolvedAdViewGroup getCurrentAdControllerView()
Returns the currently rendering ResolvedAdViewGroup.
-
getCurrentCompanionAdControllerView
abstract ResolvedCompanionAdViewGroup getCurrentCompanionAdControllerView()
Returns the currently rendering ResolvedCompanionAdViewGroup.
-
initialize
abstract Unit initialize(VideoAdsRenderingOptions adsRenderingOptions)
Initializes the ad experience on the manager.
-
destroy
abstract Unit destroy()
Stops the ad and all tracking, then releases all assets that were loaded to play the ad.
-
trackVerificationNotExecuted
abstract Unit trackVerificationNotExecuted(String vendor, Integer reasonCode)
Tracks the failure of verification
- Parameters:
vendor- Verification vendorreasonCode- Reason code for not executing verification.
-
-
-
-