Screenad Property Details: Banner, Browser, and Environment

Screenad Property Details

Environment

bannerheight: {Number}
Current height of the banner that is related to this ad position (in pixels)

Environment

bannerwidth: {Number}
Current width of the banner that is related to this ad position (in pixels)

Environment

bannerx: {Number}
Horizontal banner offset, relative to this element

Environment

bannery: {Number}
Vertical banner offset, relative to this element

Environment

browser: {Object}
This browser information object contains information about the operating system and browser that is being used to view this element.
The following properties are available:
  • screenad.browser.os; a string that represents the current operating system.
  • screenad.browser.os.version; a number representing the version of the operating system.
  • screenad.browser.browser.*; where * represents the browser engine, e.g. ‘webkit’, ‘msie’.
  • screenad.browser.browser.version; a number representing the version of the browser.

Environment

browserheight: {Number}
Represents the height of the viewport

Environment

browserwidth: {Number}
Represents the width of the viewport

Screenad

command
Sends raw screenad command to be processed by the Weborama Display Scripts.
conf_autopreload: {Boolean}
Set this to false if you wish to manually give the ‘preloaded’ signal, which indicates that this ad is ready for synchronous activities.
Default Value:
true
conf_autozoom: {Boolean}
If set to true, the Screenad Interface will automatically try to scale your ad’s content when antizoom is set to true.
Default Value:
false

Environment

deviceType: {String}
The parameter indicates the (presumed) device type.
See:
screenad#DEVICE_TABLET
screenad#DEVICE_MOBILE
screenad#DEVICE_DESKTOP

Environment

hasVisibility: {Boolean}
Will be set to true if the ad has visibility, meaning: when more than 50% is visible inside the viewport

Screenad

isPreloaded: {Boolean}
Will be set to true automatically when the document has loaded. For Edge we listen to the ‘compositionReady’ event.

Environment

isPreviewer: {Number}
This variable is set to true when the ad is launched from the Previewer

Environment

isShowing: {Boolean}
Will be set to true if the ad is shown; visibility is not taken into account (see screenad#hasVisibility).

Screenad

isSynced: {Boolean}
Will be set to true when all ad elements have preloaded.

Environment

mousex: {Number}
Last recorded horizontal mouse position, relative to the top-left corner of this ad unit. To start tracking the mouse from outside of the viewport, set `screenad.settings.trackExternalMouse` to true.

Environment

mousey: {Number}
Last recorded vertical mouse position, relative to the top-left corner of this ad unit. To start tracking the mouse from outside of the viewport, set `screenad.settings.trackExternalMouse` to true.

Environment

originalHeight: {Number}
Represents the height of this ad’s canvas. These value is assigned once, initially, by the ad management system, which uses the meta data SCRWIDTH and SCRHEIGHT to detect these dimensions.

Environment

originalWidth: {Number}
Represents the width of this ad’s canvas. This value is assigned once, initially, by the ad management system, which uses the meta data SCRWIDTH and SCRHEIGHT to detect these dimensions.

Environment

pagex: {Number}
Horizontal distance from the top of the ad unit to the top of the browser viewport

Environment

pagey: {Number}
Vertical distance from the top of the ad unit to the top of the browser viewport

Environment

screenorientation: {String}
Represents the current screen orientation (portrait/landscape)
See:
screenad#SCREEN_ORIENTATION_LANDSCAPE
screenad#SCREEN_ORIENTATION_PORTRAIT

Environment

scrollx: {Number}
Horizontal scroll level of the viewport, relative to the top left of the web page

Environment

scrolly: {Number}
Vertical scroll level of the viewport, relative to the top left of the web page

Screenad

settings: {Object}
Namespace for several ad configuration settings.

Communication

shared: {screenad.shared}
Allows for communication between ad elements to take place. See screenad.shared for more information.
See:
screenad.shared

Environment

state: {String}
Represents the current ‘in-app’ state. (in-app only!)
See:
screenad#STATE_DEFAULT
screenad#STATE_EXPANDED

Communication

vars: {Object}
This object is used to store variables that are set on initialization, but also variables that were sent to this element through thescreenad#setVariable method.

Environment

zoom: {Float}
Represents the current zoom level of the browser