PRODUCT
Follow

Overview

AdKit supports adding the following creative components to your ads.

Configuration

Component JSON Object Properties

The following table displays the JSON object properties for each component.

Field

Type

Description

id

String

Container ID

type

String

AdKit component type

width

Integer

Width in pixels

height

Integer

Height in pixels

top

Integer

Top position in pixels

left

Integer

Left position in pixels

right

Integer

Right position in pixels

botton

Integer

Bottom Position in pixels

Methods

setDimension(dimensionObj)

Description

Changes the width and height of the component.

Example

 adkit.$(‘component1’).setDimension({width: ‘40px’, height: ‘50px’});
            

Parameters

Name

Mandatory/Optional

Type

Description

dimensionobj

Mandatory

Object

Object that contains width and height values.

setPosition(positionObj)

Description

Changes the position of the component.

Example

 adkit.$(‘component1’).setPosition({top: ‘40px’, left: ‘50px’});            

Parameters

Name

Mandatory/Optional

Type

Description

positionobj

Mandatory

Object

Object that contains top, left, bottom, and right values.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments