Display

Display ads zoneType: Display

  • By binding an id or other attribute identifier, specify a DOM node as the ad container required by renderAds

<div id="test-one"></div>
  • Use window.adsTag.renderAds(dom, width, height, zoneId) to render ads

Parameter Description:

parameter
type
illustrate
Is it necessary to transmit
default value

dom

HtmlElement

The container where the ad is rendered. A good experience requires that the width and height of the container be greater than or equal to the values ​​set by the parameters width and height, and that no elements exist under the DOM.

yes

--

width

number

Specify the width of the ad

yes

--

height

number

Specify the height of the ad

yes

--

zoneId

string

Specify the ad unit group. Use this parameter to distinguish the ad group revenue.

yes

--

Ad size:

Size ID

Dimensions

Name

1

468×60

Banner

2

728×90

Leaderboard

8

120×600

Skyscraper

9

160×600

Wide Skyscraper

10

300×600

Half Page Ad

15

300×250

Medium Rectangle

16

336×280

Large Rectangle

18

180×150

Rectangle

38

930×180

Danish Megaboard

43

320×50

Mobile Banner 1

44

300×50

Mobile Banner 2

54

300×1050

Portrait

55

970×90

Push Down

57

970×250

IAB Billboard

58

1000×90

Leaderboard 2

61

1000×1000

Full Page

67

320×480

Mobile App Interstitial

68

1800×1000

Wallpaper/skin

78

980X240

Double Panorama

Example:

View Demo

// Rendering Display Ads
window.adsTag.renderAds(document.querySelector('#test-one'), 300, 250, zoneId);

// Destroy Display Ads
window.adsTag.stopAds(document.querySelector('#test-one'));

Effect:

Last updated