Percentage dimensions
A live example of popunder opening, geometry or click selection.
Adok UI
- Popunder type
Popup- Pop width
50 %- Pop height
40 %- Pop position
Center
Backend response
- config.under / config.newTab
"false" / "false"- config.dimensions.width
"50%"- config.dimensions.height
"40%"- config.dimensions.position
"center"
New Adscript
- PopunderConfig.openMode
"popup"- PopunderConfig.popDimensions
Calculated numeric width, height, top and left; see below.
Width and height are relative to the screen, not the page viewport. This API fixture calculates the equivalent pixels when the page starts.
Pixels supplied to the script:
Preparing…
These examples call window.AdScript.start() without a master-spot ID and supply spots through window.AdScript.addSpot(). Backend values above are references; this page does not fetch spots or run the backend-response parser.
Each spot gets one attempt per pageview. Reset this demo to try again. Browsers may block openings or adjust window size, position and focus; “Attempt used” does not confirm ad delivery.