google.ima. CompanionAd
Represents a companion ad.
- Implements
- CompanionAdInterface
Methods
getAdSlotId
getAdSlotId() returns string
- Returns
-
nullable string
Returns the ad slot id for this companion.
getContent
getContent() returns string
Returns the HTML content for the companion ad that can be added to the publisher page.
- Returns
-
string
The HTML content.
getContentType
getContentType() returns string
- Returns
-
nullable string
The content type of the Companion Ad. This may return null if the content type is not known (such as in the case of a VAST HTMLResource or IFrameResource).
getHeight
getHeight() returns number
- Returns
-
number
Returns the height of the companion in pixels.
getWidth
getWidth() returns number
- Returns
-
number
Returns the width of the companion in pixels.