CompanionAd
类 公共
表示动态广告插入期间伴生广告对象的类。此类公开了 ima.CompanionAd 属性的一部分。
构造函数
CompanionAd
new CompanionAd(companion)
构造函数。
参数 |
|
---|---|
companion |
值不得为 null。 |
方法
getAdSlotId
getAdSlotId() 返回(null 或字符串)
- 返回
-
(null or string)
getContent
getContent() 返回字符串
- 返回
-
string
getContentType
getContentType() returns (null or string)
- 返回
-
(null or string)
getHeight
getHeight() 返回数字
- 返回
-
number
getWidth
getWidth() 会返回数字
- 返回
-
number