Interface CompanionAd
Stay organized with collections
Save and categorize content based on your preferences.
A companion ad object for DAI streams. This class exposes a subset of the
ima.CompanionAd interface properties.
Methods
getAdSlotId
getAdSlotId(): string
| Returns |
string
|
the ad slot ID. |
getContent
getContent(): string
| Returns |
string
|
the content of the companion ad. |
getContentType
getContentType(): string
| Returns |
string
|
the content type of the companion ad. |
getHeight
getHeight(): number
| Returns |
number
|
the height of the companion ad. |
getWidth
getWidth(): number
| Returns |
number
|
the width of the companion ad. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.
[null,null,["Last updated 2026-05-27 UTC."],[],[]]