The content of
a
PTAdAsset describes a companion banner.
The
PTMediaPlayerAdStartedNotification notification returns an
PTAd
instance that contains a
companionAssets property (array of
PtAdAsset).
The instance includes several properties; here are some that are
useful for displaying banner ads.
| Property
|
Description
|
| width
|
Width of the companion banner in pixels.
|
| height
|
Height of the companion banner in pixels.
|
| resourceType
|
The resource type for this companion
banner:
- html : The data
is in HTML code
- iframe : The
data is an iframe URL (src)
- static: The data is a staticURL that is a direct URL to an
image.
|
|
data
|
The data (of the type specified by
resourceType) for this companion banner.
|