Companion banner data

The content of an AdBannerAsset describes a companion banner.

The AdobePSDK.PSDKEventType.AD_STARTED event returns an Ad instance that contains a companionAssets property ( Array<AdBannerAsset>).
Each AdBannerAsset provides information about displaying the asset.

Available information Description
width Width of the companion banner in pixels.
height Height of the companion banner in pixels.
resource type 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 static image URL (src).
      banner data
The data of the type that is specified by resourceType for this companion banner.
static URL

Sometimes the companion banner might also have a staticURL that is a direct URL to the image.

If you do not want to use html or iframe, you can use a direct URL to an image. In this case, you can use the staticURL to display the banner.

Important: You must check whether the static URL is a valid string, because this property might not always be available.

On this page