Class: CompanionAd

  • CompanionAd is a class within dynamic ad insertion representing a companion ad, providing access to a subset of ima.CompanionAd properties.

  • It includes a constructor to create a CompanionAd object and methods to retrieve details like ad slot ID, content, content type, height, and width.

Constructor

CompanionAd

new CompanionAd(companion)

Constructor.

Parameter

companion

Value must not be null.

Methods

getAdSlotId

getAdSlotId() returns (null or string)

Returns

(null or string) 

getContent

getContent() returns string

Returns

string 

getContentType

getContentType() returns (null or string)

Returns

(null or string) 

getHeight

getHeight() returns number

Returns

number 

getWidth

getWidth() returns number

Returns

number