ima。 伴侶
class static
建構函式
夥伴
新的 Companion()
包含廣告相關內容的資訊。
屬性
adSlotId
static
字串
配套廣告位的 ID。如果不可用,則留空。
apiFramework
static
(字串或無效)
執行此廣告所需的 API,如果不可用,則為無效。
companionClickThrough
static
字串
點擊配套網站的 URL 連結。
creativeType
static
字串
代表創意型人物,通常是模仿人物。
高度
static
整數
隨播廣告的高度 (以像素為單位)。如果無法使用,則為 0。
trackingEvents
static
字串數組的數組
事件追蹤圖,其中鍵是事件,值是該事件發生時要 ping 的 URL 清單。
網址
static
字串
這個隨播廣告的靜態資源網址。
寬度
static
整數
伴侶的寬度(以像素為單位)。如果不可用,則為 0。
方法
createCompanion
static
createCompanion() 回傳 ima.Companion