DoubleClick Studio AS3 API Reference

class com.google.ads.studio.vpaid.VpaidAdaptor

Implements com.google.ads.studio.vpaid:IVpaid

An adaptor class that implements the IVpaid interface. It delegates most tasks to the VpaidEnabler. The adaptor class makes sure that the publisher SDK can't access non-VPAID methods and events on the VpaidEnabler class.

Properties

NameTypeDescriptionDefault
adCompanionsString

Returns a VAST-compatible XML snippet for companion ads.

adDurationNumber

Returns the total number of seconds for which the creative is expected to display. A value of -1 indicates that this feature is not supported, as with a non-linear creative. A value of -2 indicates that the duration is unknown, as would be the case if a user were interacting with the creative.

adExpandedBoolean

Returns true if the ad is currently expanded.

adHeightNumber

Returns the height of the ad in pixels.

adIconsBoolean

Returns True if the ad unit includes ad icons. Currently not supported.

adLinearBoolean

Returns true if the ad is currently linear.

adRemainingTimeNumber

Returns the number of seconds remaining in the creative. A return value of -1 indicates that this value is not supported (such as in the case of a non-linear creative). A value of -2 indicates that the remaining time is unknown, as would be the case if a user were interacting with the creative.

adSkippableStateBoolean

Returns true if the ad can currently be skipped.

adVolumeNumber

Gets and sets the volume of the creative. The values should always be between 0 and 1, unless volume is not supported in which case get returns -1.

adWidthNumber

Returns the width of the ad in pixels.

Expand Events

Constructors

Expand
VpaidAdaptor(enablerReference: VpaidEnabler)

Instance Methods

Defined in com.google.ads.studio.vpaid:VpaidAdaptor

collapseAd() : void

Tells the ad to collapse to its smallest state.

expandAd() : void

Tells the ad to expand if expansion is supported.

Expand
handshakeVersion(playerVpaidVersion:String) : String

Initializes the ad to use the correct VPAID version. Returns the supported version of VPAID.

Expand
initAd(width:Number, height:Number, viewMode:String, desiredBitrate:Number, creativeData:String=null, environmentVars:String=null) : void

Initializes the creative with parameters from the VPAID environment.

pauseAd() : void

Tells the ad to pause playback. When the ad is paused, it's possible it will no longer be visible.

Expand
resizeAd(width:Number, height:Number, viewMode:String) : void

Tells the ad to resize to the given dimensions.

resumeAd() : void

Tells the ad to resume playback.

skipAd() : void

Tells the ad that it should stop playing because the user chose to skip it.

startAd() : void

Tells the ad to start playing.

stopAd() : void

Tells the ad to stop playing and unload.

Back to top

  1. com.google.ads.studio
    1. AssetLoader
    2. ContextualDiscovery
    3. F2fEnabler
    4. FullScreenButton
    5. HtmlEnabler
    6. ProxyEnabler
    7. VpaidEnabler
  1. com.google.ads.studio.configurable
    1. Configurable
  1. com.google.ads.studio.display
    1. StudioLoader
  1. com.google.ads.studio.events
    1. StudioEvent
    2. StudioVideoEvent
  1. com.google.ads.studio.expanding
    1. Expanding
  1. com.google.ads.studio.localconnect
    1. LocalConnectWrapper
  1. com.google.ads.studio.video
    1. ConfigurableVideoPlayer
    2. EnhancedVideoController
    3. PlayPauseButton
    4. Playlist
    5. Scrubber
    6. SoundToggleButton
    7. VideoController
    8. VideoEntry
    9. VideoPlayer
    10. VideoPlayerAdvanced
  1. com.google.ads.studio.vpaid
    1. VpaidTimer