AdCompanionOptions

@objc(AASDKAdCompanionOptions)
public class AdCompanionOptions : NSObject

The options class to configure all AdCompanionView instances.

  • Set how long the banner is supposed to keep its content visible after the ad is ended. The default value is 0, which means the companion content is removed when the ad ends. If extraExposureTime is Double.greatestFiniteMagnitude or negative, then the companion content will be exposed forever or until the next companion is ready to display its content. If fallback companions are active and extraExposureTime is activated, then the fallback companions will be delayed.

    Declaration

    Swift

    @objc
    public var extraExposureTime: TimeInterval
  • Set the preferred resource type for the AdCompanionView instances to select and load when querying through the associated Companion data. When there is no preferred type or no matching resource is found, it defaults to the first found valid resource.

    Declaration

    Swift

    @objc
    public var preferredResourceType: AdCompanionResourceType
  • Set the preferred resource type for the AdCompanionView instances to select and load when querying through the associated Companion data. For tvOS platform the only available resource type is static image.